CN115454744A - Test control method, system, device, computer equipment and storage medium - Google Patents
Test control method, system, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN115454744A CN115454744A CN202211043177.0A CN202211043177A CN115454744A CN 115454744 A CN115454744 A CN 115454744A CN 202211043177 A CN202211043177 A CN 202211043177A CN 115454744 A CN115454744 A CN 115454744A
- Authority
- CN
- China
- Prior art keywords
- server host
- network card
- intelligent network
- test
- shutdown
- 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.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 128
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000004590 computer program Methods 0.000 claims description 17
- 230000008569 process Effects 0.000 abstract description 11
- 230000005540 biological transmission Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000002028 premature Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 3
- 239000000758 substrate Substances 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000003862 health status Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2289—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2284—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The embodiment of the disclosure relates to a test control method, a system, a device, a computer device and a storage medium. When the test control method is implemented, when the first test program and the second test program are both executed, the server host is controlled to execute shutdown operation, then the intelligent network card is instructed to execute shutdown, then the control equipment is instructed to execute power-off operation on the server host, and the running stability of the test programs of the server host and the test programs of the intelligent network card in the test process is ensured by reasonably arranging the shutdown time of the server host, the shutdown time of the intelligent network card and the power-off time of the server host.
Description
Technical Field
The present disclosure relates to the technical field of server testing, and in particular, to a test control method, system, apparatus, computer device, and storage medium.
Background
With the continuous improvement of internet technology and the improvement of user demand, more and more internet companies are biased to purchase and upgrade high-performance and high-stability servers in large quantities so as to support own internet services.
Under the push of the increasing network flow and the increasing complexity of the computation of the data center, the intelligent network card provides a processing framework, computation is provided for certain workloads through the intelligent network card, and the workloads are unloaded from a general computation kernel, so that the efficiency of the whole solution is improved.
If servers carrying the intelligent network cards are deployed in a machine room in batches, due to the fact that the servers are numerous, the traditional single-machine management mode is obviously not suitable for management, most Internet companies adopt a remote mode for unified management, and the servers and the intelligent network cards are required to have high stability.
Therefore, a server and an intelligent network card need to be tested. The test generally includes a power on/off test, that is, tests of power on, power off, and power off are performed on the server and the intelligent network card for multiple rounds, so as to evaluate the stability of the server and the intelligent network card. Certainly, in the startup and shutdown test process, the server and the intelligent network card may also run other test programs to obtain more test data for evaluating performance.
In the existing testing technology of the server and the intelligent network card, the power-on and power-off time of the server and the power-on and power-off time of the intelligent network card are independently determined by respective independently operated testing programs, and the problem that the normal operation of the testing program of the other party can be influenced by the power failure of one party exists.
Disclosure of Invention
In view of the above, it is necessary to provide a test control method, a test control apparatus, a computer device, and a storage medium, which can improve the running stability of the test program of the server and the intelligent network card.
In a first aspect, an embodiment of the present disclosure provides a test control method, including:
when the first test program and the second test program are executed, controlling the server host to execute shutdown operation; the first test program is used for testing the performance of the server host, and the second test program is used for testing the performance of the intelligent network card; the server host is electrically connected with the intelligent network card;
sending a first shutdown signal to the intelligent network card, wherein the first shutdown signal is used for indicating the intelligent network card to execute shutdown operation;
and sending a second shutdown signal to the control equipment, wherein the second shutdown signal is used for indicating the control equipment to execute power-off operation on the server host and the intelligent network card.
In some embodiments, the test control method further comprises the steps of:
receiving a starting signal of the intelligent network card, and controlling a server host to execute starting operation;
after the server host is started, the server host is controlled to execute a first test program.
In some embodiments, the test control method further comprises the steps of:
and after the control equipment executes the power-on operation on the server host and before the startup signal of the intelligent network card is received, the server host is controlled to keep a shutdown state.
In some embodiments, the test control method further comprises the steps of:
acquiring state parameters of a server host;
and writing the script of the first test program into the startup file of the server host when the state parameters of the server host meet the preset test conditions.
In some embodiments, the test control method further comprises the steps of:
sending the starting times of the server host and the intelligent network card to the control equipment;
receiving a task stopping instruction sent by the control equipment according to the starting times of the server host and the intelligent network card;
and ending the test task according to the task stop instruction.
In a second aspect, embodiments of the present disclosure provide a test control system, including:
a baseboard management controller for executing the test control method in any embodiment;
and the control equipment is used for receiving a second shutdown signal sent by the substrate management controller and executing power-off operation on the server host and the intelligent network card according to the second shutdown signal.
In some embodiments, the control device is further configured to: after the power-off operation of the server host is executed, the power-on operation of the server host is executed after a specified time length.
In a third aspect, an embodiment of the present disclosure provides a test control apparatus, including:
the first shutdown control module is used for controlling the server host to execute shutdown operation when the first test program and the second test program are executed; the first test program is used for testing the performance of the server host, and the second test program is used for testing the performance of the intelligent network card; the server host is electrically connected with the intelligent network card;
the first shutdown signal sending module is used for sending a first shutdown signal to the intelligent network card; the first shutdown signal is used for indicating the intelligent network card to execute shutdown operation;
the second shutdown signal sending module is used for sending a second shutdown signal to the control equipment; the second shutdown signal is used for indicating the control equipment to execute power-off operation on the server host and the intelligent network card.
In a fourth aspect, embodiments of the present disclosure provide a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
when the first test program and the second test program are executed, controlling the server host to execute shutdown operation; the first test program is used for testing the performance of the server host, and the second test program is used for testing the performance of the intelligent network card; the server host is electrically connected with the intelligent network card;
sending a first shutdown signal to the intelligent network card, wherein the first shutdown signal is used for indicating the intelligent network card to execute shutdown operation;
and sending a second shutdown signal to the control equipment, wherein the second shutdown signal is used for indicating the control equipment to execute power-off operation on the server host and the intelligent network card.
In a fifth aspect, embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
when the first test program and the second test program are executed, controlling the server host to execute shutdown operation; the first test program is used for testing the performance of the server host, and the second test program is used for testing the performance of the intelligent network card; the server host is electrically connected with the intelligent network card;
sending a first shutdown signal to the intelligent network card, wherein the first shutdown signal is used for indicating the intelligent network card to execute shutdown operation;
and sending a second shutdown signal to the control equipment, wherein the second shutdown signal is used for indicating the control equipment to execute power-off operation on the server host and the intelligent network card.
According to the test control method, the test control system, the test control device, the computer equipment and the storage medium, when the first test program and the second test program are executed completely, the server host is controlled to execute shutdown operation, then the intelligent network card is instructed to execute shutdown, then the control equipment is instructed to execute power-down operation on the server host, and the test program of the server host and the test program of the intelligent network card in the test process are ensured to run stably by reasonably arranging the shutdown time of the server host, the shutdown time of the intelligent network card and the power-down time of the server host.
Drawings
FIG. 1 is a diagram of an application environment of a test control method in some embodiments;
FIG. 2 is a flow chart illustrating a test control method according to some embodiments;
FIG. 3 is a flowchart illustrating steps involved in controlling a server host to perform a boot operation in some embodiments;
FIG. 4 is a block diagram of a test control device in some embodiments;
FIG. 5 is a block diagram that illustrates the internal components of a computing device in some embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present disclosure and are not intended to limit the present disclosure.
The test control method provided by the embodiment of the disclosure is suitable for the on-off test of a server host and an intelligent Network Card (Smart Network Interface Card). The intelligent network card may also be referred to as an intelligent network adapter, and besides the network transmission function of the standard network card, in some optional embodiments, a built-in programmable and configurable hardware acceleration engine may be provided, so as to improve the performance of the application, greatly reduce the consumption of a Central Processing Unit (CPU) in communication, and provide more CPU resources for the application. The server host and the intelligent network card in the embodiment of the disclosure can have independent operating systems, and the intelligent network card can be inserted into the server host, so that electric power can be obtained through the server host. In the embodiment of the present disclosure, the intelligent network card is electrically connected to the server host, which means that the server host supplies power to the intelligent network card, and the intelligent network card provides a network transmission function for the server host.
Typically, the power on and power off test requires multiple rounds of operation. The startup and shutdown test of each round comprises the operations of starting up and shutting down the server host, the operations of starting up and shutting down the intelligent network card, and the operations of powering on and powering off the server host and the intelligent network card. Powering, as referred to herein, may also be referred to as energizing. Powering down, as used herein, may also be referred to as powering down. In the process of the startup and shutdown test, the server host or the intelligent network card can also execute the test of other performances of the server host or the intelligent network card, such as testing whether the network function, the storage function or other data processing functions have problems.
In some optional embodiments, the server host or the smart card may be controlled by a Baseboard Management Controller (BMC) of the server to perform the test.
In some alternative embodiments, the bmc may communicate using IPMI (Intelligent Platform Management Interface) protocol technology.
The IPMI protocol technology is based on a command or response mechanism, and can classify and transmit information such as a chassis, a sensor, firmware, storage, application, and the like through a network, and can classify and manage sensors such as a BIOS (Basic Input Output System), system management software, a remote terminal, and the like through software, and can transmit information in a uniform format for different interfaces. The baseboard management controller may operate independent of the server's processor, BIOS, or operating system, but may be powered and operate independently. The baseboard management controller may have a separate subsystem in which commands for host or remote management are handled by a daemon process of the IPMI.
Generally, the baseboard management controller is a chip or an independent board card externally hung on a server mainboard, when working, all IPMI commands can be sent to the baseboard management controller, the baseboard management controller returns results or executes corresponding operations after receiving the commands, and corresponding data or operation logs can be recorded on the baseboard management controller. In the server, the server host may send a command to the bmc through an LPC (Low pin count Bus) interface or other interfaces to report the log or other information. During remote management, the control device may acquire test information or state information, such as sensor state information of the server host and debugging information of the server host, from the baseboard management controller by a command, and may further control the server host to be powered on or powered off.
In some alternative embodiments, the communication between the baseboard management controller, the server host and the intelligent network card may adopt a transparent transmission technology. The transparent transmission technology is transparent to the outside in the transmission process, no matter what the content and the data protocol form are transmitted, no processing is performed on the data to be transmitted, only the content to be transmitted is taken as a group of binary data to be perfectly transmitted to a destination node, which is equivalent to a data line or a serial port line, and meanwhile, the transmission quality is ensured, and the transmitted service is not processed. Therefore, the server host or the baseboard management controller can manage the intelligent network card or acquire the test information of the intelligent network card through the transparent transmission channel.
The test control method provided by the embodiment of the disclosure can be applied to the application environment shown in fig. 1. The control device 101, the baseboard management controller 102, the server host 103, and the intelligent network card 104 may communicate with each other via a network. The control device 101 may obtain test information of the server host 103 and the intelligent network card 104 from the baseboard management controller 102, and the control device 101 may further send a test instruction to the baseboard management controller 102, so that the baseboard management controller 102 controls the server host 103 or the intelligent network card 104 to execute a corresponding test. The control device 101 may be a server or a terminal, wherein the server may be implemented by a stand-alone server or a server cluster composed of a plurality of servers, and the terminal may be, but is not limited to, various personal computers, notebook computers or other terminals that can be used for testing.
The control device 101 may communicate with the baseboard management controller 102 through a switch, may also communicate with the baseboard management controller 102 without passing through a switch, and may be specifically designed according to actual requirements.
The test control method is described as applied to the bmc 102 in fig. 1, and in some embodiments, as shown in fig. 2, the test control method includes a step S201, a step S202, and a step S203 that can be executed by the bmc 102, and the steps are described below.
In step S201, when the first test program and the second test program are executed, the control server host 103 executes a shutdown operation. The first test program is used for testing the performance of the server host machine 103, and the second test program is used for testing the performance of the intelligent network card 104; the server host 103 is electrically connected with the intelligent network card 104.
The first test program referred to herein is a test program executed by the server host 103 itself, and is used for evaluating the performance of the server host 103, for example, the performance in terms of communication, data processing, and the like. Thus, the test items involved in the first test program may be one or more of the items of testing existing for the server host.
The second test program is a test program executed by the intelligent network card 104 itself, and is used for evaluating the performance of the intelligent network card 104. For example, performance in terms of communication, data processing, etc. may be evaluated. Therefore, the test items involved in the second test program may be one or more items of existing tests for the intelligent network card.
Before step S201 is executed, a step of monitoring an execution state of the first test program may be executed, and a step of monitoring an execution state of the second test program may also be executed.
When monitoring the execution state of the first test program, the bmc 102 may acquire information of the execution state of the first test program from the server host 103.
When the server host 103 finishes executing the first test program, information of the completion of the execution of the first test program may be sent to the bmc 102, and the bmc 102 may confirm that the execution of the first test program is completed. When the smart network card 104 finishes executing the second test program, the information about the completion of the execution of the second test program may be forwarded to the bmc 102 through the server host 103, or the information about the completion of the execution of the second test program may be directly sent to the bmc 102, and at this time, the bmc 102 may confirm that the execution of the second test program is completed.
After determining that the first test program and the second test program are both executed, the bmc 102 controls the server host 103 to execute a shutdown operation. Considering that the time length required for completing the execution of the first test program may be different from the time length required for completing the execution of the second test program, the second test program may need to rely on the data provision or other data service functions of the server host 103, and therefore, the server host 103 is powered off after the execution of the second test program is completed, and the normal operation of the second test program can be ensured.
Step S202, a first shutdown signal is sent to the intelligent network card 104. The first shutdown signal is used to instruct the smart network card 104 to perform a shutdown operation.
The intelligent network card 104 is configured to execute a shutdown operation after receiving the first shutdown signal. Considering that the first test program may need to rely on the data processing or network transmission function of the intelligent network card 104, the shutdown time of the intelligent network card 104 is later than the execution completion time of the first test program, which is beneficial to ensuring the normal operation of the first test program.
Step S203, sends a second shutdown signal to the control device 101. The second shutdown signal is used to instruct the control device 101 to perform power-down operations on the server host and the smart network card.
The second shutdown signal and the first shutdown signal are mainly used to indicate that the objects to be received are different, the object to be received of the second shutdown signal is the control device 101, and the object to be received of the first shutdown signal is the smart network card 104. The specific contents of the transmission of the second shutdown signal and the first shutdown signal may be the same or different. Both the first shutdown signal and the second shutdown signal may be used to indicate that the server host 103 has performed a shutdown operation.
Generally, step S202 may be performed first and then step S203 may be performed. However, in some other embodiments, the execution sequence of step S203 and step S202 may not be particularly limited. In some optional embodiments, the control device 101 may wait for a period of time to perform the power-down operation on the server host after receiving the second power-off signal, so as to ensure that the intelligent network card 104 has been powered off in advance. The control device 101 may directly perform a power-down operation on the motherboard of the server, so that the server host 103 is powered off, and at this time, the smart network card 104 powered by the server motherboard is also naturally powered off. In other alternative embodiments, if the power supplies of the server host 103 and the intelligent network card 104 are two independent power supplies, the control device 101 may also perform power-down operations on the server host 103 and the intelligent network card 104, respectively.
In some embodiments, in step S201, step S202, and step S203, step S202 or step S203 may be performed by the server host 103, and the remaining steps may be performed by the baseboard management controller 102. Because the principle of executing each step has been introduced in the foregoing, even if the execution subject of step S202 or step S203 changes, the effect that the stability of the operation of the test program of the server host and the test program of the intelligent network card in the test process can be ensured on the whole can be still not affected by each step.
In the test control method, when the first test program and the second test program are both executed, the server host is controlled to execute shutdown operation, then the intelligent network card is instructed to execute shutdown operation, then the control device is instructed to execute power-off operation on the server host, and the shutdown time of the server host, the shutdown time of the intelligent network card and the power-off time of the server host are reasonably arranged, so that the situation that the normal operation of the second test program is influenced due to the premature shutdown of the server host is avoided, the situation that the normal operation of the first test program is influenced due to the premature shutdown of the intelligent network card is also avoided, the situation that the normal operation of the second test program is influenced due to the premature power-off of the server host is also avoided, and the situation that the normal operation of the first test program is influenced due to the premature power-off of the intelligent network card is also avoided. In general, the running stability of the test program of the server host and the test program of the intelligent network card in the test process is ensured.
In some embodiments, as shown in fig. 3, the test control method may further include the steps of:
step S301, receiving a starting signal of the intelligent network card 104, and controlling the server host 103 to execute a starting operation;
in step S302, after the server host 103 is powered on, the server host 103 is controlled to execute a first test program.
After the control device 101 executes the power-on operations on the server host 103 and the intelligent network card 104, the power-on operation of the server host 103 needs to be executed after the intelligent network card 104 is powered on, so that the intelligent network card 104 can provide normal network functions for the server host 103, and the server host 103 can smoothly perform state detection of each device or execute a first test program after being powered on. The power-on signal of the intelligent network card 104 is used to indicate that the intelligent network card 104 performs the power-on operation.
Controlling the server host 103 to execute the first test program, which may mean writing a script of the first test program into a boot file of the server host 103, so that the server host 103 automatically runs the script after booting, thereby executing the operation of the first test program; or may indicate an operation of controlling the server host 103 to execute one or more test items by sending a real-time command to the server host 103 after the server host 103 is powered on.
In some embodiments, the test control method may further include the steps of: after the control device 101 performs the power-on operation on the server host 103, and before receiving the power-on signal of the intelligent network card 104, the server host 103 is controlled to maintain the power-off state. The server host 103 keeps the power-off state before the intelligent network card 104 is turned on, so that the intelligent network card 104 is ready to provide normal network functions, and unnecessary waiting time of the server host 103 is reduced.
In some embodiments, the test control method may further include the steps of: acquiring state parameters of the server host 103; when the state parameter of the server host 103 meets the preset test condition, the script of the first test program is written into the boot file of the server host 103.
The status parameter of the server host 103 is used to indicate the health status of the server host 103, and the status parameter may include data used to measure the statuses of whether the network is connected, whether the storage device is normal, whether the CPU is normal, and the like. Therefore, the preset test conditions can be set according to actual requirements. For example, the preset test condition includes that no fault-reporting data exists in the status parameters of the server host 103, and the fault-reporting data generally originates from a self-checking process of the server host 103.
After the server host 103 is powered on, the script in the power-on file may be executed, so as to execute the first test program.
In some embodiments, the state parameters of the smart network card 104 may be obtained; and when the state parameters of the intelligent network card 104 meet the preset test conditions, writing the script of the second test program into the boot file of the intelligent network card 104. The state parameter of the intelligent network card 104 is used to indicate the health status of the intelligent network card 104, and the state parameter may include data for measuring the status of whether the network is connected or not, whether the processor is normal or not, and the like. Therefore, the preset test conditions corresponding to the smart card 104 can be set according to actual requirements. After the intelligent network card 104 is started, the corresponding script in the startup file may be executed, so as to execute the second test program.
In some embodiments, the test control method may further include the steps of: sending the startup times of the server host 103 and the startup times of the intelligent network card 104 to the control device; receiving a task stop instruction sent by the control device 101 according to the startup times of the server host 103 and the startup times of the intelligent network card 104; and ending the test task according to the task stop instruction.
The number of times of booting the server host 103 and the number of times of booting the smart card 104 may be the same or different, and may be specifically set according to actual requirements. Since the power on/off test may be performed for multiple rounds, step S201, step S202, and step S203 may be executed in a loop, and step S301, step S302, or other more related steps may also be executed during each round of the power on/off test. At this time, multiple times of starting up of the server host 103 and the intelligent network card 104 may be involved, and the number of times of starting up the server host 103 and the number of times of starting up the intelligent network card 104 may be determined according to the number of turns required to be performed in the startup and shutdown test.
The control device 101 may compare the boot-up frequency of the server host 103 with a preset first boot-up frequency threshold, compare the boot-up frequency of the intelligent network card 104 with a preset second boot-up frequency threshold, send a task stop instruction to the substrate management controller 102 when the boot-up frequency of the server host 103 reaches the preset first boot-up frequency threshold and the boot-up frequency of the intelligent network card 104 reaches the preset second boot-up frequency threshold, and the substrate management controller 102 ends the test task according to the task stop instruction, for example, after the power-on and power-off test of this round is finished, the steps S201, S202, and S203 are not executed any more.
During the on/off test, the baseboard management controller 102 may send test information generated by the server host 103 or the smart network card 104 to the control device 101. Of course, the control device 101 may also directly collect test information from the server host 103 or the smart network card 104, and may specifically perform setting according to actual needs.
In some embodiments, when the server host 103 fails or obtains abnormal test information during the execution of the first test program by the server host 103, the relevant test information may be sent to the control device 101 and the test may be aborted or stopped. Similarly, when the intelligent network card 104 fails or obtains abnormal test information during the process of executing the second test program by the intelligent network card 104, the related test information may be sent to the control device 101 and the test may be terminated or stopped.
It should be noted that, although the steps of the test control method in the foregoing embodiments may be executed by the bmc 102, it does not mean that all the steps must be executed only by the bmc 102. In other embodiments, a portion of the steps may also be performed by the control device 101 or the server host 103 instead of the baseboard management controller 102, where appropriate.
It should be understood that although the steps in the flowcharts of fig. 2 and 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps illustrated in fig. 2 and 3, as well as other embodiments, relate to steps that are not performed in the exact order unless explicitly stated herein, and may be performed in other orders. Moreover, at least a portion of the steps of the foregoing embodiments may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In some embodiments, the present disclosure also provides a test control system, which may include the control device 101 and the baseboard management controller 102 in fig. 1. The baseboard management controller is used for executing one or more steps in the test control method. The control device 101 may be configured to receive a second shutdown signal sent by the baseboard management controller 102, and execute power-down operation on the server host 103 and the intelligent network card 104 according to the second shutdown signal.
In some embodiments, the control device 101 may further perform a power-on operation for the server host 103 after a specified time period elapses after performing the power-off operation for the server host 103. In some alternative embodiments, the specified duration may be 100 seconds, in other alternative embodiments, the specified duration may be tens of seconds, or other durations.
In some optional embodiments, the control device 101 may be further configured to, after receiving the second shutdown signal sent by the baseboard management controller 102, execute power-down operation on the server host 103 and the intelligent network card 104 after a preset waiting duration according to the second shutdown signal. In some alternative embodiments, the preset waiting time period may be 20 seconds, and in other alternative embodiments, the preset waiting time period may be greater or less than 20 seconds.
In some embodiments, the control device 101 may be further configured to receive the boot-up times of the server host 103 and the boot-up times of the intelligent network card 104, and send a task stop instruction to the baseboard management controller 102 when the boot-up times of the server host 103 reaches the first boot-up time threshold and the boot-up times of the intelligent network card 104 reaches the second boot-up time threshold.
In some embodiments, the present disclosure also provides a test control apparatus, as shown in fig. 4, the test control apparatus 400 includes: the system comprises a first shutdown control module 401, a first shutdown signal sending module 402 and a second shutdown signal sending module 403. Wherein:
the first shutdown control module 401 is configured to control the server host to perform a shutdown operation when the first test program and the second test program are both executed. The first test program is used for testing the performance of the server host, and the second test program is used for testing the performance of the intelligent network card; the server host is electrically connected with the intelligent network card.
A first shutdown signal sending module 402, configured to send a first shutdown signal to the intelligent network card. The first shutdown signal is used for indicating the intelligent network card to execute shutdown operation.
A second shutdown signal sending module 403, configured to send a second shutdown signal to the control device. The second shutdown signal is used for indicating the control equipment to execute power-off operation on the server host and the intelligent network card.
In some embodiments, the test control apparatus 400 may further include:
a startup control module (not shown) for receiving a startup signal of the intelligent network card and controlling the server host to execute startup operation;
the test program execution control module (not shown) is used for controlling the server host to execute the first test program after the server host is started.
In some embodiments, the test control apparatus 400 may further include a power-off state control module (not shown) configured to control the server host to maintain a power-off state after the control device performs a power-on operation on the server host and before the power-on signal of the smart card is received.
In some embodiments, the test control apparatus 400 may further include:
a status parameter acquiring module (not shown) for acquiring status parameters of the server host;
and a script writing module (not shown) for writing the script of the first test program into the boot file of the server host when the state parameter of the server host meets a preset test condition.
In some embodiments, the test control apparatus 400 may further include:
an information sending module (not shown) for sending the startup times of the server host and the startup times of the intelligent network card to the control device;
the instruction receiving module (not shown) is used for receiving a task stopping instruction sent by the control equipment according to the starting times of the server host and the intelligent network card;
and a task stop module (not shown) for ending the test task according to the task stop instruction.
For specific limitations of the test control apparatus 400, reference may be made to the above limitations of the test control method, which are not described herein again. The respective modules in the test control apparatus 400 may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In some embodiments, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device comprises a processor, a memory and a network interface which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement the test control method in any of the embodiments herein.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with embodiments of the present disclosure, and does not constitute a limitation on the computing devices to which embodiments of the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the present disclosure provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the following steps when executing the computer program:
when the first test program and the second test program are executed, controlling the server host to execute shutdown operation; the first test program is used for testing the performance of the server host, and the second test program is used for testing the performance of the intelligent network card; the server host is electrically connected with the intelligent network card;
sending a first shutdown signal to the intelligent network card; the first shutdown signal is used for indicating the intelligent network card to execute shutdown operation;
sending a second shutdown signal to the control device; the second shutdown signal is used for instructing the control device to execute power-down operation on the server host.
In other embodiments, the processor, when executing the computer program, performs the other steps of the test control method in any of the previous embodiments.
The disclosed embodiments provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
when the first test program and the second test program are executed, controlling the server host to execute shutdown operation; the first test program is used for testing the performance of the server host, and the second test program is used for testing the performance of the intelligent network card; the server host is electrically connected with the intelligent network card;
sending a first shutdown signal to the intelligent network card; the first shutdown signal is used for indicating the intelligent network card to execute shutdown operation;
sending a second shutdown signal to the control device; the second shutdown signal is used for instructing the control device to execute power-off operation on the server host.
In other embodiments, the computer program, when executed by the processor, further performs the other steps of the test control method of any of the preceding embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. Any reference to memory, storage, databases, or other media used in the embodiments provided in the disclosure may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples merely represent several embodiments of the present disclosure, which are described in more detail and in greater detail, but are not to be construed as limiting the scope of the present disclosure. It should be noted that various changes and modifications can be made by one skilled in the art without departing from the spirit of the disclosure, and these changes and modifications are all within the scope of the disclosure. Therefore, the protection scope of the present disclosure should be subject to the appended claims.
Claims (10)
1. A test control method, characterized in that the method comprises:
when the first test program and the second test program are executed, controlling the server host to execute shutdown operation; the first test program is used for testing the performance of the server host, and the second test program is used for testing the performance of the intelligent network card; the server host is electrically connected with the intelligent network card;
sending a first shutdown signal to the intelligent network card; the first shutdown signal is used for indicating the intelligent network card to execute shutdown operation;
sending a second shutdown signal to the control device; the second shutdown signal is used for instructing the control device to execute power-down operation on the server host.
2. The method of claim 1, further comprising:
receiving a starting signal of the intelligent network card, and controlling the server host to execute starting operation;
and after the server host is started, controlling the server host to execute the first test program.
3. The method of claim 2, further comprising:
and after the control equipment executes the power-on operation on the server host and before the startup signal of the intelligent network card is received, controlling the server host to keep a shutdown state.
4. The method of claim 1, further comprising:
acquiring state parameters of the server host;
and writing the script of the first test program into a starting file of the server host when the state parameter of the server host meets a preset test condition.
5. The method of claim 1, further comprising:
sending the starting times of the server host and the intelligent network card to the control equipment;
receiving a task stopping instruction sent by the control equipment according to the starting times of the server host and the intelligent network card;
and ending the test task according to the task stop instruction.
6. A test control system, comprising:
a baseboard management controller for executing the test control method of claim 1;
and the control equipment is used for receiving a second shutdown signal sent by the baseboard management controller and executing power-off operation on the server host and the intelligent network card according to the second shutdown signal.
7. The system of claim 6, wherein the control device is further configured to: and after the power-off operation of the server host is executed, the power-on operation of the server host is executed after a specified time length.
8. A test control apparatus, characterized in that the apparatus comprises:
the first shutdown control module is used for controlling the server host to execute shutdown operation when the first test program and the second test program are executed; the first test program is used for testing the performance of the server host, and the second test program is used for testing the performance of the intelligent network card; the server host is electrically connected with the intelligent network card;
the first shutdown signal sending module is used for sending a first shutdown signal to the intelligent network card; the first shutdown signal is used for indicating the intelligent network card to execute shutdown operation;
the second shutdown signal sending module is used for sending a second shutdown signal to the control equipment; the second shutdown signal is used for instructing the control device to execute power-off operation on the server host and the intelligent network card.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 5 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211043177.0A CN115454744A (en) | 2022-08-29 | 2022-08-29 | Test control method, system, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211043177.0A CN115454744A (en) | 2022-08-29 | 2022-08-29 | Test control method, system, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115454744A true CN115454744A (en) | 2022-12-09 |
Family
ID=84300777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211043177.0A Pending CN115454744A (en) | 2022-08-29 | 2022-08-29 | Test control method, system, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115454744A (en) |
-
2022
- 2022-08-29 CN CN202211043177.0A patent/CN115454744A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7293165B1 (en) | BMC-hosted boot ROM interface | |
US8935509B2 (en) | Method for controlling BMC having customized SDR | |
US10831467B2 (en) | Techniques of updating host device firmware via service processor | |
US11048570B2 (en) | Techniques of monitoring and updating system component health status | |
CN106547645B (en) | Method for automatically restoring image file and server system | |
CN111338698A (en) | Method and system for accurately booting server by BIOS (basic input output System) | |
CN111737064A (en) | BMC system control method and device, storage medium and computer equipment | |
CN111367743A (en) | Method and system for diagnosing power failure of server in cycle restart test process | |
CN115658113A (en) | Server self-starting method and device, readable storage medium and electronic equipment | |
TW201944239A (en) | Server and method for restoring a baseboard management controller automatically | |
CN117289963A (en) | Method and equipment for online updating target area of server platform service firmware | |
CN111352662B (en) | Server starting sequence control method, system, terminal and storage medium | |
US11822927B2 (en) | Boot times in an information processing device with externally connected devices | |
US10572435B2 (en) | Techniques of accessing serial console of BMC using host serial port | |
US10509656B2 (en) | Techniques of providing policy options to enable and disable system components | |
CN113986357B (en) | Method, apparatus and storage medium for establishing communication link | |
CN115454744A (en) | Test control method, system, device, computer equipment and storage medium | |
CN114253573A (en) | PCIe device firmware batch upgrading method, system, terminal and storage medium | |
CN113867753B (en) | Firmware updating method and system of server | |
CN114328044B (en) | AIC+box topology testing method, device and system | |
JP7389877B2 (en) | Network optimal boot path method and system | |
TW201327139A (en) | Method for processing node replacement and server system using the same | |
CN112084049B (en) | Method for monitoring resident program of baseboard management controller | |
CN117349062A (en) | BIOS fault processing method, system, device, equipment and medium | |
CN117435255A (en) | System starting method and device, storage medium and electronic device |
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 |