CN114297009B - Method and device for testing server and electronic equipment - Google Patents

Method and device for testing server and electronic equipment Download PDF

Info

Publication number
CN114297009B
CN114297009B CN202111625676.6A CN202111625676A CN114297009B CN 114297009 B CN114297009 B CN 114297009B CN 202111625676 A CN202111625676 A CN 202111625676A CN 114297009 B CN114297009 B CN 114297009B
Authority
CN
China
Prior art keywords
target server
target
server
test
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111625676.6A
Other languages
Chinese (zh)
Other versions
CN114297009A (en
Inventor
张萍萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111625676.6A priority Critical patent/CN114297009B/en
Publication of CN114297009A publication Critical patent/CN114297009A/en
Application granted granted Critical
Publication of CN114297009B publication Critical patent/CN114297009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention relates to the field of equipment detection, in particular to a method and a device for testing a server and electronic equipment. By introducing the storage medium, the full-flow automation is realized, the related test files can be introduced into the storage medium, the timely adjustment of the test files can be realized through the configuration under the normal mode, the test results can be stored in the storage medium after the test is finished, and the full-flow automation is realized after the test is finished and the working efficiency is greatly improved.

Description

Method and device for testing server and electronic equipment
Technical Field
The invention relates to the field of equipment detection, in particular to a method and a device for testing a server and electronic equipment.
Background
A server is a type of computer that runs faster, is more loaded, and is more expensive than a normal computer. The server provides computing or application services to other clients in the network, such as smart phones, terminals such as automated teller machines (Automated Teller Machine, ATM), and even large devices such as train systems. The server has high-speed central processing unit (central processing unit, CPU) operation capability, long-time reliable operation, powerful INPUT/OUTPUT (I/O) external data throughput capability, and better expandability.
In general, a server has the ability to afford to respond to a service request, to afford to service, and to secure service, depending on the service provided by the server. The server is used as electronic equipment, and the internal structure of the server is quite complex, but is not quite different from the internal structure of a common computer, such as: cpu, hard disk, memory, system bus, etc.
With the continuous acceleration of the product scale and the product diversification of the server, the running condition of the server also needs to be tested, and in the prior art, no automatic test method exists, so that the server is tested.
Therefore, a server testing method and apparatus, and an electronic device are needed to overcome the above-mentioned drawbacks.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method and apparatus for testing a server, and an electronic device, so as to solve the problem that the server cannot be automatically tested.
According to a first aspect, an embodiment of the present invention provides a method for testing a server, including:
the target server enters a basic input and output system;
reading a test file in the target storage device, and testing the target server to obtain a test result;
storing the test result into the target storage device;
the target server enters a normal working system;
and reading the test result recorded in the target storage device.
According to the server testing method provided by the embodiment of the invention, the whole process is automated by introducing the storage medium, the related test files can be introduced into the storage medium, the timely adjustment of the test files can be realized by configuration in the normal mode, the test results can be stored in the storage medium after the test is completed, and the normal mode can be re-entered after the test is completed, so that the whole process is automated, and the working efficiency is greatly improved.
With reference to the first aspect, in a first implementation manner of the first aspect, before the step of entering the basic input output system by the target server, the method further includes:
adjusting the name of the test script in the test file to be the name of the item to be tested of the target server;
and determining target configuration options of the target server in response to an adjustment operation of the configuration options of the target server.
According to the server testing method provided by the embodiment of the invention, through the configuration of the testing files in advance, the specific testing files are determined in the later testing process, the accuracy of the testing result is ensured, and the working efficiency is further improved.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the determining, in response to an adjustment operation on the configuration option of the target server, the target configuration option of the target server further includes:
restarting the target server;
judging whether the configuration options of the target server are adjusted to the target configuration options or not;
if yes, determining that the target configuration options of the target server are successful;
otherwise, determining that the target configuration option of the target server fails.
According to the server testing method provided by the embodiment of the invention, through setting the target configuration options, the smooth completion of the test under the basic input/output system is ensured, the smooth operation of the subsequent test files is ensured, the accuracy of the test results is further ensured, and the working efficiency is further improved.
With reference to the first aspect, in a third implementation manner of the first aspect, the entering, by the target server, a normal working system includes:
the target server is restarted and enters a normal working system;
the target server entering the basic input and output system comprises restarting the target server and entering the basic input and output system.
According to the server testing method provided by the embodiment of the invention, through modifying the startup mode, the smooth entering into the basic input and output system is ensured, the environment support is provided for the subsequent testing flow, the smooth proceeding of the testing steps is ensured, the accuracy of the testing result is further ensured, and the working efficiency is further improved.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the method further includes:
the basic input output system comprises a command line interface for realizing user and system interaction under a novel extensible firmware interface (Extensible Firmware Interface, EFI) interface.
The normal operating system includes an operating system (Linux operating system, linuxos).
According to the server testing method provided by the embodiment of the invention, after restarting, the state of the self equipment is detected by trying, so that the self equipment is ensured to be successfully restored to a normal working system, the acquired testing result can be ensured to be output under a normal and proper environment, the safety of the testing result is ensured, and the working efficiency is further improved.
With reference to the first aspect, in a fifth implementation manner of the first aspect, the method further includes:
and under the normal working system, detecting the communication state of the target server, and if the network of the target server is unobstructed, obtaining a detection result.
The server testing method provided by the embodiment of the invention can achieve the purpose of detecting the state of the self device by definitely detecting whether the network of the self device is unobstructed, ensure that the self device is successfully restored to a normal working system, ensure that the collected testing result can be output under a normal and proper environment, ensure the safety of the testing result and further improve the working efficiency.
With reference to the fifth implementation manner of the first aspect, in a sixth implementation manner of the first aspect, the method further includes:
and if the network of the target server is not smooth, ending the test.
According to the server testing method provided by the embodiment of the invention, the purpose of detecting the state of the server is achieved by definitely detecting whether the network of the server is unobstructed, so that when the server finds out the abnormality of the server, the detection result is output, and related personnel can be prompted to process the fault in time, and the working efficiency is further improved.
According to a second aspect, an embodiment of the present invention provides an apparatus for testing a server, including:
the first processing module is used for enabling the target server to enter a basic input and output system;
the second processing module is used for reading the test file in the target storage device, testing the target server and obtaining a test result;
the third processing module is used for storing the test result into the target storage device;
the fourth processing module is used for enabling the target server to enter a normal working system;
and the fifth processing module is used for reading the test result recorded in the target storage device.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: the server test system comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, so that the server test method in the first aspect or any implementation manner of the first aspect is executed.
According to a fourth aspect, an embodiment of the present invention provides a computer readable storage medium storing computer instructions for causing a computer to perform the method of the first aspect or any implementation of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of server testing according to an embodiment of the invention;
FIG. 2 is a flow chart of a method of server testing according to an embodiment of the invention;
FIG. 3 is a flow chart of a method of server testing according to an embodiment of the invention;
FIG. 4 is a block diagram of an apparatus for server testing according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; the two components can be directly connected or indirectly connected through an intermediate medium, or can be communicated inside the two components, or can be connected wirelessly or in a wired way. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
In the description of the invention, it is to be noted that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
According to the server testing method provided by the embodiment of the invention, the whole process is automated by introducing the storage medium, the related test files can be introduced into the storage medium, the timely adjustment of the test files can be realized by configuration in the normal mode, the test results can be stored in the storage medium after the test is completed, and the normal mode can be re-entered after the test is completed, so that the whole process is automated, and the working efficiency is greatly improved.
In accordance with an embodiment of the present invention, there is provided a method embodiment of server testing, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
In this embodiment, a method for testing a server is provided, which may be used for an electronic device, such as a computer, a server, a tablet computer, etc., fig. 1 is a flowchart of a method for testing a server according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
s11, the target server enters a basic input and output system;
specifically, the corresponding boot configuration options are set so that the target server successfully enters the basic input and output system.
Specifically, assuming that the target server A exists, the option of the basic input output system (Basic Input Output System, BOIS) is exported Cheng Wenben by a debugging tool, the exported file is assumed to be BOIS_A.txt, and the modification of the boot configuration of the target server A is realized by modifying the corresponding character in the BOIS_A.txt.
This step will be described in detail later in detail.
S12, reading a test file in the target storage device, and testing the target server to obtain a test result;
specifically, the test is performed according to the test file name recorded in the storage medium.
For example, assume that in practical application, a test file num. Nsh exists in the storage medium, where the test file num. Nsh contains a parameter name, and aa is assumed to be the content to be tested, and aa is further assumed to refer to: for obtaining the value of BIT10 in model specific register (Model Specific Register, MSR) 0x1b in the target server, let it be assumed that at this time the value of BIT10 in model specific register 0x1b is 1, denoted MSR _bit10=1.
Further, assuming that the parameter name is set to aa at this time, the test result can be obtained by performing an automated test procedure: msr _bit10=1.
S13, storing the test result into the target storage device;
specifically, after the test result is obtained, the target server stores the test result in a target file of the target storage device.
Specifically, taking the above parameter name as aa as an example, as well, aa refers to: for obtaining the value of BIT10 in model specific register 0x1b in the target server, it is assumed that the value of BIT10 in model specific register 0x1b is 1, denoted msr _bit10=1.
Further, after obtaining the test result: after msr _bit10=1, the test results are: msr _bit10=1 is stored in the log file aa.log to the target storage medium.
S14, the target server enters a normal working system;
specifically, after restarting, the state of the target server needs to be detected.
Assuming that a target server A exists, after restarting, if the state of the target server A is normal, the target server A is ready to start executing logic of the next step, if the self test result is abnormal, the target server A stops reading data, and outputs self abnormality.
This step will be described in detail later in detail.
S15, reading the test result recorded in the target storage device.
Specifically, taking the server a as an example, similarly, taking the log file of the target storage medium as aa.log as an example, after determining that the state of the target storage medium is normal, further analysis and processing are performed by reading the test result recorded in aa.log.
According to the server testing method provided by the embodiment of the invention, the whole process is automated by introducing the storage medium, the related test files can be introduced into the storage medium, the timely adjustment of the test files can be realized by configuration in the normal mode, the test results can be stored in the storage medium after the test is completed, and the normal mode can be re-entered after the test is completed, so that the whole process is automated, and the working efficiency is greatly improved.
In this embodiment, a method for testing a server is provided, which may be used for an electronic device, such as a computer, a server, a tablet computer, etc., fig. 2 is a flowchart of a method for testing a server according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
s11, the target server enters a basic input and output system;
specifically, the step S21 includes:
s211, adjusting the name of the test script in the test file to be the name of the item to be tested of the target server;
in the target storage medium, a test file num.nsh is assumed, and a test script name corresponding to the test file num.nsh is assumed to be bb, but in the actual test process, the item to be tested is aa and is not an initial value bb, so that the name= [ "bb" ] is modified into name= [ "aa" ] by modifying a corresponding value of a name parameter in num.nsh, and adjustment of the test item name is realized.
S212, determining target configuration options of the target server in response to adjustment operations on the configuration options of the target server;
for setting configuration options, a debugging tool can be used to export the configuration options of the BIOS into text files BIOS.txt, and if the configuration options to be modified are configuration options Option and configuration options APIC, the corresponding words Option and APIC are found in the corresponding text files BIOS.txt, and the corresponding values are modified as follows: enabled.
In some optional implementations of this embodiment, the step S212 may include:
(1) Restarting the target server;
specifically, after the configuration option modification is completed, the target server is restarted to effect the modification.
For example, suppose that the above-described modification is made to the target server SUR, the target server SUR is restarted to ensure that the above-described modification is effective in the target server SUR.
(2) Judging whether the configuration options of the target server are adjusted to the target configuration options or not;
specifically, the debugging tool is used again, the configuration options of the BIOS are exported to be text files BIOS.txt, corresponding words Option and APIC are found in the corresponding text files BIOS.txt, and whether the corresponding values are modified to be: enabled.
(3) If yes, determining that the target configuration options of the target server are successful;
specifically, still taking the above configuration as an example, assume that the corresponding words Option and APIC are found in the corresponding text file BIOS.txt, looking at their correspondence as: enabled. The modification of the configuration options is proved successful and the next setup can be performed.
(4) Otherwise, determining that the target configuration option of the target server fails.
Specifically, still taking the above configuration as an example, assume that the corresponding words Option and APIC are found in the corresponding text file BIOS.txt, looking at their correspondence as: disabled. It proves that the modification of the configuration options fails and the modification of the configuration options needs to be re-performed.
S213, responding to the modification operation of the startup mode, and modifying the startup mode from the normal working system to the basic input and output system.
Specifically, the modification of the boot mode may be achieved through the setting of a pre-code.
For example, under operating system Linux, the boot-mode may be modified by entering the following code at the Terminal (Terminal) and/or Console (Console):
systemctl reboot–firmware-setup
s12, reading a test file in the target storage device, and testing the target server to obtain a test result;
please refer to the embodiment S12 shown in fig. 1 in detail, which is not described herein.
S23, storing the test result into the target storage device;
please refer to the embodiment S13 shown in fig. 1 in detail, which is not described herein.
S24, the target server enters a normal working system;
specifically, the step S24 includes:
s241, detecting the state of the target server under the normal working system to obtain a detection result;
specifically, after the test flow is completed, the state of the target server needs to be confirmed first, so that the state of the target server is ensured to be normal, and further the next operation is performed.
For example, taking the above server SUR as an example, after the detection is completed, the target server is restarted, and the system returns to the normal operating system. After returning to the normal operation system, in order to ensure that the test data is not damaged by the abnormality of the target service, the target server is required to detect the state first, and if no abnormality is transmitted to the state of the target server, the next reading operation is started.
In some optional implementations of this embodiment, the step S241 may include:
(1) Judging whether the network of the target server is unobstructed or not;
specifically, the target server can check the network state of the target server for multiple times at a preset frequency in a specified time.
For example, in practical application, still taking the target server SUR as an example, the target server SUR may check whether its own network is smooth by adopting a manner of accessing (ping) its own internet protocol address (Internet Protocol Address, IPAddress), and assuming that the predetermined frequency is 2 times per minute, the target server SUR needs to ping its own IP address 2 times per minute.
Further, before the first ping of the IP address of the target server, a certain preset time needs to be waited, so as to ensure that the complete restart of the target server is completed.
For example, assuming that the preset waiting time is 30 seconds, if there is a target server sur_2 that is restarted immediately after the test is completed, the target server sur_2 needs to wait for 30 seconds before it can ping its own IP address.
(2) If the network of the target server is unobstructed, outputting a detection result as normal;
specifically, taking the above-mentioned SUR as an example, assuming that the target server pings its own IP address 2 times per minute and can successfully access its own IP address during the ping, it is assumed that its own network is clear.
(3) If the network of the target server is not smooth, outputting a detection result to be abnormal.
Specifically, taking the above-mentioned target server SUR as an example, assuming that the target server pings its own IP address 2 times per minute, and during the ping, it is not possible to successfully access its own IP address, it is determined that its own network is not smooth.
(4) When the detection result is abnormal, outputting the detection result
Specifically, taking the above-mentioned target server SUR as an example, assuming that the target server pings its own IP address 2 times per minute and can not successfully access its own IP address during the ping, it is determined that its own network is not clear, and then the next data reading operation is canceled and information about the test abnormality is output.
S242, outputting a test result when the detection result is normal.
Specifically, taking the above-mentioned target server SUR as an example, assuming that the target server pings its own IP address 2 times per minute, and can successfully access its own IP address during the ping period, it is assumed that its own network is unobstructed, and the output detection result is normal. S25, reading the test result recorded in the target storage device.
Please refer to the embodiment S15 shown in fig. 1 in detail, which is not described herein.
According to the server testing method provided by the embodiment of the invention, the whole process is automated by introducing the storage medium, the related test files can be introduced into the storage medium, the timely adjustment of the test files can be realized by configuration in the normal mode, the test results can be stored in the storage medium after the test is completed, and the normal mode can be re-entered after the test is completed, so that the whole process is automated, and the working efficiency is greatly improved.
As a specific application example of the present embodiment, as shown in fig. 3, the method for testing a server includes:
s1, connecting the target storage medium to a target server.
S2, under the normal working system, modifying the name of the test script in the target storage medium, and modifying the configuration options.
S3, restarting the target server, and verifying the configuration option modification result.
S4, modifying the starting-up mode of the target server.
S5, restarting the target server, and entering the basic input and output system.
S6, executing the test script in the storage medium, and recording the test result into the designated file in the target storage medium.
S7, modifying the starting-up mode of the target server.
S8, restarting the target server to enter a normal working system.
S9, after waiting for a preset time, the IP address of the target server is ping.
S10, judging whether the communication can be performed by pinning. If yes, go to step S11, otherwise go to step S12.
S11, reading the test result from the target storage medium, and analyzing the test result.
S12, outputting the abnormal result of the state of the self
And S13, summarizing the results, and returning to the test platform.
The embodiment also provides a device for testing a server, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The embodiment provides a device for testing a server, as shown in fig. 4, including:
a first processing module 41, configured to enter the bios through the target server;
the second processing module 42 is configured to read the test file in the target storage device, and test the target server to obtain a test result;
a third processing module 43, configured to store the test result into the target storage device;
a fourth processing module 44, configured to enter a normal working system by the target server;
and a fifth processing module 45, configured to read the test result recorded in the target storage device. The firmware refreshing means in this embodiment are presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that can provide the above-mentioned functions.
Further functional descriptions of the above respective modules are the same as those of the above corresponding embodiments, and are not repeated here.
The embodiment of the invention also provides electronic equipment, which is provided with the server testing device shown in the figure 4.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 5, the electronic device may include: at least one processor 51, such as a CPU (Central Processing Unit ), at least one communication interface 53, a memory 54, at least one communication bus 52. Wherein the communication bus 52 is used to enable connected communication between these components. The communication interface 53 may include a Display screen (Display) and a Keyboard (Keyboard), and the selectable communication interface 53 may further include a standard wired interface and a wireless interface. The memory 54 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 54 may alternatively be at least one memory device located remotely from the aforementioned processor 51. Wherein the processor 51 may be in conjunction with the apparatus described in fig. 5, the memory 54 stores an application program, and the processor 51 invokes the program code stored in the memory 54 for performing any of the method steps described above.
The communication bus 52 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The communication bus 52 may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus.
Wherein the memory 54 may include volatile memory (english) such as random-access memory (RAM); the memory may also include a nonvolatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated as HDD) or a solid state disk (english: solid-state drive, abbreviated as SSD); memory 54 may also include a combination of the types of memory described above.
The processor 51 may be a central processor (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of CPU and NP.
The processor 51 may further include a hardware chip, among others. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof (English: programmable logic device). The PLD may be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), a field programmable gate array (English: field-programmable gate array, abbreviated: FPGA), a general-purpose array logic (English: generic array logic, abbreviated: GAL), or any combination thereof.
Optionally, the memory 54 is also used for storing program instructions. Processor 51 may invoke program instructions to implement the method of server testing as shown in any of the embodiments of the present application.
The embodiments of the present invention also provide a non-transitory computer storage medium storing computer executable instructions that can perform the method of server testing in any of the method embodiments described above. Wherein the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (9)

1. A method of server testing, applied to a target server, the target server configured to connect with a target storage device, the method comprising:
the target server enters a basic input and output system;
reading a test file in the target storage device, and testing the target server to obtain a test result;
storing the test result into the target storage device;
the target server enters a normal working system;
reading the test result recorded in the target storage device;
after the test flow is completed, confirming the state of the target server;
before the target server enters the basic input/output system, the method further comprises the following steps:
adjusting the name of the test script in the test file to be the name of the item to be tested of the target server;
determining target configuration options of the target server in response to an adjustment operation of the configuration options of the target server;
restarting the target server after the configuration option modification is completed, so that the configuration option modification is effective;
and in response to the modification operation of the startup mode, modifying the startup mode from the normal operation system to the basic input output system.
2. The method of claim 1, wherein the determining the target configuration option for the target server in response to the adjusting the target server configuration option further comprises:
judging whether the configuration options of the target server are adjusted to the target configuration options or not;
if yes, determining that the target configuration options of the target server are successful;
otherwise, determining that the target configuration option of the target server fails.
3. The method of claim 1, wherein the target server entering a normal operating system comprises:
the target server is restarted and enters a normal working system;
the target server entering the basic input and output system comprises restarting the target server and entering the basic input and output system.
4. The method of claim 1, wherein the basic input output system comprises an EFI shell and the normal operating system comprises Linuxos.
5. The method as recited in claim 1, further comprising:
and under the normal working system, detecting the communication state of the target server, and if the network of the target server is unobstructed, obtaining a detection result.
6. The method as recited in claim 5, further comprising:
and if the network of the target server is not smooth, ending the test.
7. An apparatus for server testing, applied to a target server, the target server being configured to connect with a target storage device, comprising:
the first processing module is used for the target server to enter a basic input and output system, and comprises the following components:
adjusting the name of the test script in the test file to be the name of the item to be tested of the target server;
determining target configuration options of the target server in response to an adjustment operation of the configuration options of the target server;
restarting the target server after the configuration option modification is completed, so that the configuration option modification is effective;
responding to the modification operation of the startup mode, and modifying the startup mode from a normal working system to the basic input and output system;
the second processing module is used for reading the test file in the target storage device, testing the target server and obtaining a test result;
the third processing module is used for storing the test result into the target storage device;
the fourth processing module is used for enabling the target server to enter a normal working system;
and the fifth processing module is used for reading the test result recorded in the target storage device and confirming the state of the target server after the test flow is completed.
8. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the method of any of claims 1-6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-6.
CN202111625676.6A 2021-12-28 2021-12-28 Method and device for testing server and electronic equipment Active CN114297009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111625676.6A CN114297009B (en) 2021-12-28 2021-12-28 Method and device for testing server and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111625676.6A CN114297009B (en) 2021-12-28 2021-12-28 Method and device for testing server and electronic equipment

Publications (2)

Publication Number Publication Date
CN114297009A CN114297009A (en) 2022-04-08
CN114297009B true CN114297009B (en) 2024-01-16

Family

ID=80970944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111625676.6A Active CN114297009B (en) 2021-12-28 2021-12-28 Method and device for testing server and electronic equipment

Country Status (1)

Country Link
CN (1) CN114297009B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766240A (en) * 2017-09-29 2018-03-06 郑州云海信息技术有限公司 UEFI Shell internal command automatic running detection methods and system
CN107957936A (en) * 2017-12-14 2018-04-24 郑州云海信息技术有限公司 Stabilization of equipment performance test method and device based on EFI Shell
WO2020164263A1 (en) * 2019-02-11 2020-08-20 平安科技(深圳)有限公司 Librgw performance test method and apparatus, and computer device
CN113377586A (en) * 2021-05-20 2021-09-10 新华三技术有限公司合肥分公司 Automatic server detection method and device and storage medium
WO2021189852A1 (en) * 2020-09-07 2021-09-30 平安科技(深圳)有限公司 Method, apparatus and device for automatically testing private zone, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766240A (en) * 2017-09-29 2018-03-06 郑州云海信息技术有限公司 UEFI Shell internal command automatic running detection methods and system
CN107957936A (en) * 2017-12-14 2018-04-24 郑州云海信息技术有限公司 Stabilization of equipment performance test method and device based on EFI Shell
WO2020164263A1 (en) * 2019-02-11 2020-08-20 平安科技(深圳)有限公司 Librgw performance test method and apparatus, and computer device
WO2021189852A1 (en) * 2020-09-07 2021-09-30 平安科技(深圳)有限公司 Method, apparatus and device for automatically testing private zone, and storage medium
CN113377586A (en) * 2021-05-20 2021-09-10 新华三技术有限公司合肥分公司 Automatic server detection method and device and storage medium

Also Published As

Publication number Publication date
CN114297009A (en) 2022-04-08

Similar Documents

Publication Publication Date Title
CN109510742B (en) Server network card remote test method, device, terminal and storage medium
CN110058920B (en) Virtual machine performance detection method and device, electronic equipment and storage medium
CN114064208A (en) Method and device for detecting application service state, electronic equipment and storage medium
US11442831B2 (en) Method, apparatus, device and system for capturing trace of NVME hard disc
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN114510381A (en) Fault injection method, device, equipment and storage medium
CN115061871A (en) Computer performance test method, device and medium
US20210274573A1 (en) Abnormality Processing Method, Terminal Device and Storage Medium
CN113157504A (en) Touch screen equipment testing method and touch screen equipment testing system
CN114297009B (en) Method and device for testing server and electronic equipment
CN112015587B (en) Method and device for enhancing reliability of operating system
CN106130815B (en) Board level testing method and device
CN115168146A (en) Anomaly detection method and device
CN115168119A (en) PCIE (peripheral component interface express) link detection method, device and medium for server
US8631211B2 (en) Disk drive diagnosis apparatus
CN115129378A (en) Intelligent network card starting method and device capable of being actively adjusted, storage medium and equipment
CN109086179B (en) Processing method and device under program exception condition
CN111597101A (en) SDK access state detection method, computer device and computer readable storage medium
CN111400113A (en) Complete machine self-checking method, device and system of computer system
US20240159812A1 (en) Method for monitoring in a distributed system
CN115883822B (en) Method and device for debugging camera of online examination system and storage medium
CN113868128B (en) Method and device for testing PXE (PCI express) guide function and storage medium
CN116382968B (en) Fault detection method and device for external equipment
CN115454752A (en) Verification method, device, terminal and medium for detecting PCIe equipment speed reduction by BIOS
CN115548836A (en) Fault confirmation method and device, excimer laser and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant