CN111414285A - Test method, test device and test equipment for starting function of server system - Google Patents

Test method, test device and test equipment for starting function of server system Download PDF

Info

Publication number
CN111414285A
CN111414285A CN202010108910.7A CN202010108910A CN111414285A CN 111414285 A CN111414285 A CN 111414285A CN 202010108910 A CN202010108910 A CN 202010108910A CN 111414285 A CN111414285 A CN 111414285A
Authority
CN
China
Prior art keywords
tested
server
starting
test
operating system
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.)
Withdrawn
Application number
CN202010108910.7A
Other languages
Chinese (zh)
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 CN202010108910.7A priority Critical patent/CN111414285A/en
Publication of CN111414285A publication Critical patent/CN111414285A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

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 invention discloses a method for testing a starting function of a server system, which generates and executes a first IPMI instruction according to the information of a target BMC (baseboard management controller) of a server to be tested and a starting type to be tested to set a starting item of the server to be tested, calls and executes a second preset IPMI instruction to restart the system of the server to be tested, replaces manual work for setting the starting item and restarting the system, executes ping operation on an operating system of the server to be tested based on the IP (Internet protocol) of the operating system of the server to be tested, generates a test result of the system starting function of the server to be tested according to the starting type to be tested and the ping operation result, and replaces manual work for judging whether the starting process is correct, thereby improving the automation level of the starting function test of the server system, reducing the human participation and reducing the test error rate. The invention also discloses a testing device, a testing device and a computer readable storage medium for the starting function of the server system, which have the beneficial effects.

Description

Test method, test device and test equipment for starting function of server system
Technical Field
The present invention relates to the technical field of server testing, and in particular, to a method, an apparatus, a device and a computer readable storage medium for testing a start function of a server system.
Background
Bmc (baseboard Management controller), which is an embedded Management microcontroller, is equivalent to the "brain" managed by the whole platform, and can monitor the data of each sensor of the server system and record the log of each event, and also can control the starting mode of the server system. The server system has a plurality of starting modes, and in order to verify whether the system starting function of the BMC in the server is normal, the conventional test method usually executes a starting process manually according to different starting modes, such as setting the system starting mode, restarting, observing whether the system starting process is correct, and the like. This approach relies heavily on manual operations, is prone to error and is time consuming when repeated testing in large batches.
Disclosure of Invention
The invention aims to provide a test method, a test device, test equipment and a computer readable storage medium for a starting function of a server system, which are used for improving the automation level of the starting function test of the server system and reducing the participation of manpower, thereby reducing the test error rate and saving the test time.
In order to solve the above technical problem, the present invention provides a method for testing a start function of a server system, which is based on a test host, and comprises:
generating and executing a first IPMI instruction according to a preset rule according to the target BMC information and the to-be-tested starting type of the to-be-tested server so as to set a starting item of the to-be-tested server;
calling and executing a second preset IPMI instruction to restart the system of the server to be tested;
and executing ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested, and generating a test result of the system starting function of the server to be tested according to the starting type to be tested and the result of the ping operation.
Optionally, the boot types to be tested include BIOS boot and hard disk boot.
Optionally, when the boot type to be tested is the BIOS boot, the first IPMI instruction specifically includes:
setting a starting item of the server to be tested as permanent BIOS starting so as to enter a BIOS setting interface during starting;
correspondingly, the IP based on the operating system of the server to be tested executes ping operation on the operating system of the server to be tested, and generates a test result of the starting function of the server system to be tested according to the starting type to be tested and the result of the ping operation, and specifically includes:
after restarting the system of the server to be tested and a first preset time length passes, executing the ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested, and judging whether the ping is on;
if so, the test fails;
if not, the test passes.
Optionally, when the to-be-tested boot type is the hard disk boot, the first IPMI instruction specifically includes:
setting a starting item of the server to be tested as a permanent hard disk starting item, and defaulting to starting from a hard disk during starting;
correspondingly, the IP based on the operating system of the server to be tested executes ping operation on the operating system of the server to be tested, and generates a test result of the starting function of the server system to be tested according to the starting type to be tested and the result of the ping operation, and specifically includes:
after restarting the system of the server to be tested and a second preset time length passes, executing the ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested, and judging whether the ping is on;
if yes, the test is passed;
if not, the test fails.
Optionally, the method further includes:
when the test result is that the test is successful, judging whether the test frequency reaches a preset frequency;
if so, the server to be tested starts a function test through the system;
and if not, returning to the step of generating and executing a first IPMI instruction according to a preset rule to set a starting item of the server to be tested according to the information of the target BMC of the server to be tested and the starting type to be tested.
Optionally, the generating and executing a first IPMI instruction according to a preset rule to set a start item of the server to be tested according to the information of the target BMC of the server to be tested and the start type to be tested specifically includes:
judging whether the input information of the target BMC is received or not;
if so, generating the first IPMI instruction according to the input information of the target BMC and the to-be-tested starting type according to the preset rule, and executing the first IPMI instruction to set a starting item of the to-be-tested server;
if not, calling default information of the target BMC and the to-be-tested starting type to generate the first IPMI instruction according to the preset rule, and executing the first IPMI instruction to set a starting item of the to-be-tested server.
Optionally, the information of the target BMC specifically includes:
the IP of the target BMC, the user name of the target BMC and the password of the target BMC.
In order to solve the above technical problem, the present invention further provides a testing apparatus for a server system start function, including:
the generating unit is used for generating and executing a first IPMI instruction according to a preset rule according to the information of the target BMC of the server to be tested and the starting type to be tested so as to set a starting item of the server to be tested;
the calling unit is used for calling and executing a second preset IPMI instruction so as to restart the system of the server to be tested;
and the test unit is used for executing ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested and generating a test result of the system starting function of the server to be tested according to the starting type to be tested and the result of the ping operation.
In order to solve the above technical problem, the present invention further provides a test apparatus for a server system start function, including:
a memory for storing instructions, wherein the instructions comprise any one of the steps of the method for testing the start-up function of the server system;
a processor to execute the instructions.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method for testing the start-up function of the server system according to any one of the above.
The method for testing the starting function of the server system is realized based on a test host, combines a test script and an IPMI command, firstly generates and executes a first IPMI command according to the information of a target BMC of the server to be tested and the starting type to be tested to set the starting item of the server to be tested, then calls and executes a second preset IPMI command to restart the system of the server to be tested, replaces manual setting of the starting item and system restart, finally executes ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested, generates a test result of the system starting function of the server to be tested according to the starting type to be tested and the ping operation result, replaces manual work to judge whether the starting process is correct, thereby improving the automation level of the starting function test of the server system, reducing the human participation, therefore, the test error rate is reduced, and the test time is saved. The invention also provides a testing device, a testing device and a computer readable storage medium for the starting function of the server system, which have the beneficial effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for testing a start function of a server system according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for testing a start function of a server system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a testing apparatus for a server system start function according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a test device for a server system start-up function according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a test method, a test device, test equipment and a computer readable storage medium for the starting function of the server system, which are used for improving the automation level of the starting function test of the server system and reducing the participation of manpower, thereby reducing the error rate of the test and saving the test time.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for testing a start function of a server system according to an embodiment of the present invention.
As shown in fig. 1, based on the test host, the method for testing the start function of the server system provided by the embodiment of the present invention includes:
s101: and according to the target BMC information and the to-be-tested starting type of the to-be-tested server, generating and executing a first IPMI instruction according to a preset rule so as to set a starting item of the to-be-tested server.
In specific implementation, the shell script can be adopted to call the IPMI command to realize the automation of the starting function test process of the server system.
When the test is executed, a test host is connected with the server to be tested in advance, and the test host accesses and controls the target BMC through the information of the target BMC of the server to be tested. And loading the pre-written shell script into a test host, and executing the automatic test flow provided by the embodiment of the invention. The first IPMI instruction is an instruction for setting a startup item of the server to be tested.
Step S101 may specifically include:
judging whether the input information of the target BMC is received;
if so, generating a first IPMI instruction according to the input information of the target BMC and the to-be-tested starting type according to a preset rule, and executing the first IPMI instruction to set a starting item of the to-be-tested server;
if not, calling default information of the target BMC and the to-be-tested starting type to generate a first IPMI instruction according to a preset rule, and executing the first IPMI instruction to set a starting item of the to-be-tested server.
In particular implementations, the information of the target BMC generally includes an IP of the target BMC, a username of the target BMC, and a password of the target BMC. When the target BMC is tested in batch, in order to facilitate the testing, it is expected that the information of the target BMC of each server to be tested is set to be consistent, so that the first IPMI instruction can be generated by directly adopting the default information of the target BMC. When a new server to be tested is tested, the following format commands can be received by the test host to receive the input information of the target BMC:
./test.sh IP BMC_User_Name BMC_Password
sh is the name of the test item, and can also be other names; "IP" is the IP of the target BMC; the 'BMC _ User _ Name' is a User Name of the target BMC; "BMC _ passed" is the Password for the target BMC.
S102: and calling and executing a second preset IPMI instruction to restart the system of the server to be tested.
After the starting item of the server to be tested is set, the restarting operation is executed, specifically, the shell script calls a second preset IPMI command to execute, and the format of the second IPMI command can refer to the prior art.
S103: and executing ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested, and generating a test result of the system starting function of the server to be tested according to the starting type to be tested and the result of the ping operation.
In a traditional server system starting function test, after a server to be tested is restarted, a tester needs to observe the action of the server to be tested after the server to be tested is restarted, for example, when the starting type to be tested is BIOS starting, after the system is restarted, the system automatically enters BIOS and waits for the next operation under normal conditions, and an operating system cannot be started continuously; and when the starting type to be tested is hard disk starting, after the system is restarted, the hard disk can be directly accessed and the operating system can be guided to start under normal conditions.
In order to realize the automation of the process, the embodiment of the invention determines whether to enter the operating system by checking whether the operating system of the server to be tested can be ping-passed, and judges whether the starting process is normal or not according to the difference of the starting types to be tested.
The method for testing the starting function of the server system provided by the embodiment of the invention is realized based on a test host, combines a test script and an IPMI command, firstly generates and executes a first IPMI command according to the information of a target BMC (baseboard management controller) of a server to be tested and the starting type to be tested so as to set the starting item of the server to be tested, then calls and executes a second preset IPMI command so as to restart the system of the server to be tested, replaces manual setting of the starting item and system restart, finally executes ping operation on the operating system of the server to be tested based on the IP (Internet protocol) of the operating system of the server to be tested, generates a test result of the system starting function of the server to be tested according to the starting type to be tested and the result of the ping operation, replaces manual work to judge whether the starting process is correct or not, thereby improving the automation level of the starting function test of the server system, therefore, the test error rate is reduced, and the test time is saved.
In practical applications, there are two main ways of starting a system executed by the BMC of the server, i.e., BIOS start and hard disk start.
When the boot type to be tested is BIOS boot, the first IPMI instruction is specifically:
setting the starting item of the server to be tested as permanent BIOS starting so as to enter a BIOS setting interface during starting. The first IPMI instruction may be specifically represented in the following format:
ipmitool-I lan plus-H<BMC IP>-U<BMC User Name>-P<BMC Password>chassisbootdev bios options=persistent
the 'BMC IP' is an IP of a target BMC, 'BMC User Name' is a User Name of the target BMC, 'BMCPassword' is a password of the target BMC, and 'sessions boot BIOS options ═ persistence' indicates that a boot item of a server to be tested is set to be permanent BIOS boot.
The system is restarted, and the second IPMI command may be specifically represented in the following format:
ipmitool-I lanplus-H<BMC IP>-U<BMC User Name>-P<BMC Password>chassispower reset
accordingly, step S103: the IP based on the operating system of the server to be tested executes ping operation on the operating system of the server to be tested, and generates a test result of the starting function of the server system to be tested according to the starting type to be tested and the result of the ping operation, and the method specifically comprises the following steps:
after restarting a system of a server to be tested and a first preset time length, executing ping operation on an operating system of the server to be tested based on the IP of the operating system of the server to be tested, and judging whether ping is conducted or not;
if so, the test fails;
if not, the test passes.
The first preset time period may be 5 minutes.
The determination process can be specifically expressed by the following format:
if (Ping can not)
{
The test is passed;
}
else
{
the test fails;
}
when the BIOS is started, the operating system cannot be ping-enabled normally, i.e. connection timeout, because the system automatically enters the BIOS option page to wait after the system is restarted without continuing to start the operating system, so after 5 minutes, the IP of the ping operating system is still ping-disabled.
When the to-be-tested boot type is hard disk boot, the first IPMI instruction specifically is:
and setting the starting item of the server to be tested as the permanent hard disk starting so as to default to start from the hard disk when starting.
The first IPMI instruction may be specifically represented in the following format:
ipmitool-I lan plus-H<BMC IP>-U<BMC User Name>-P<BMC Password>chassisbootdev diskoptions=persistent
the 'BMC IP' is an IP of a target BMC, 'BMC User Name' is a User Name of the target BMC, 'BMCPassword' is a password of the target BMC, and 'sessions boot disk options ═ persistence' indicates that a starting item of the server to be tested is set to be permanent hard disk starting.
The system is restarted, and the second IPMI command may be specifically represented in the following format:
ipmitool-I lanplus-H<BMC IP>-U<BMC User Name>-P<BMC Password>chassispower reset
accordingly, step S103: the IP based on the operating system of the server to be tested executes ping operation on the operating system of the server to be tested, and generates a test result of the starting function of the server system to be tested according to the starting type to be tested and the result of the ping operation, and the method specifically comprises the following steps:
after restarting the system of the server to be tested and a second preset time length, executing ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested, and judging whether ping is conducted or not;
if yes, the test is passed;
if not, the test fails.
Wherein, the second preset time period may be 5 minutes.
When starting up the hard disk, the operating system can be ping-connected normally, because the system enters the hard disk after restarting and guides the operating system to start up, and the operating system is successfully started up in 5 minutes, so the IP of ping the operating system can be ping-connected after 5 minutes.
Fig. 2 is a flowchart of another method for testing a start function of a server system according to an embodiment of the present invention.
On the basis of the foregoing embodiment, in the method for testing a server system start function according to the embodiment of the present invention, in order to improve the test reliability, after step S103, the method further includes:
s201: when the test result is that the test is successful, judging whether the test frequency reaches a preset frequency; if yes, go to step S202; if not, the process returns to step S101.
S202: and the server to be tested starts the function test through the system.
In a specific implementation, the initial value of the preset number is 0, and when the test result of step S103 is that the test is successful, the preset number is increased by 1.
For each type of boot to be tested, 3 tests may be performed.
On the basis of the above detailed description of the embodiments corresponding to the method for testing the starting function of the server system, the invention also discloses a device, equipment and a computer readable storage medium for testing the starting function of the server system corresponding to the method.
Fig. 3 is a schematic structural diagram of a testing apparatus for a server system start function according to an embodiment of the present invention.
As shown in fig. 3, a testing apparatus for a server system start-up function according to an embodiment of the present invention includes:
the generating unit 301 is configured to generate and execute a first IPMI instruction according to a preset rule to set a start item of the server to be tested, according to the information of the target BMC of the server to be tested and the start type to be tested;
a calling unit 302, configured to call and execute a second preset IPMI instruction to restart the system of the server to be tested;
the testing unit 303 is configured to execute a ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested, and generate a test result of the system starting function of the server to be tested according to the start type to be tested and the result of the ping operation.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 4 is a schematic structural diagram of a test device for a server system start-up function according to an embodiment of the present invention.
As shown in fig. 4, the test apparatus for a server system start function provided in the embodiment of the present invention includes:
a memory 410 for storing instructions, the instructions including the steps of the method for testing the start-up function of the server system according to any one of the above embodiments;
a processor 420 for executing the instructions.
The processor 420 may also include a main processor, which is a processor for Processing data in a wake-up state, also called a CPU (Central Processing Unit), and a coprocessor, which is a low power processor for Processing data in a standby state, the processor 420 may be integrated with a GPU (Graphics Processing Unit) for rendering and rendering content to be displayed on a display screen, in some embodiments, the processor 420 may also include an AI (intelligent processor, AI) for learning operations related to Artificial Intelligence (AI) Processing.
Memory 410 may include one or more computer-readable storage media, which may be non-transitory. Memory 410 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 410 is at least used for storing the following computer program 411, wherein after the computer program 411 is loaded and executed by the processor 420, the relevant steps in the test method for the server system start-up function disclosed in any of the foregoing embodiments can be implemented. In addition, the resources stored by the memory 410 may also include an operating system 412, data 413, and the like, and the storage may be transient storage or permanent storage. Operating system 412 may be Windows, among others. The data 413 may include, but is not limited to, data involved in the above-described methods.
In some embodiments, the server system startup function testing device may further include a display 430, a power supply 440, a communication interface 450, an input output interface 460, a sensor 470, and a communication bus 480.
Those skilled in the art will appreciate that the configuration shown in FIG. 4 does not constitute a limitation of the testing device for the server system startup function and may include more or fewer components than those shown.
The test equipment for the starting function of the server system provided by the embodiment of the application comprises the memory and the processor, and the processor can realize the test method for the starting function of the server system when executing the program stored in the memory, and the effect is the same as that of the test equipment.
It should be noted that the above-described embodiments of the apparatus and device are merely illustrative, for example, the division of modules is only one division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form. Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods according to the embodiments of the present invention, or all or part of the technical solution.
To this end, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the test method such as the server system startup function.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer program contained in the computer-readable storage medium provided in this embodiment can implement the steps of the method for testing the server system start-up function described above when executed by the processor, and the effect is the same as above.
The present invention provides a method, an apparatus, a device and a computer readable storage medium for testing a start function of a server system. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for testing a starting function of a server system is characterized in that based on a test host, the method comprises the following steps:
generating and executing a first IPMI instruction according to a preset rule according to the target BMC information and the to-be-tested starting type of the to-be-tested server so as to set a starting item of the to-be-tested server;
calling and executing a second preset IPMI instruction to restart the system of the server to be tested;
and executing ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested, and generating a test result of the system starting function of the server to be tested according to the starting type to be tested and the result of the ping operation.
2. The method of claim 1, wherein the boot types to be tested include BIOS boot and hard disk boot.
3. The method of claim 2, wherein when the boot type to be tested is the BIOS boot, the first IPMI instruction is specifically:
setting a starting item of the server to be tested as permanent BIOS starting so as to enter a BIOS setting interface during starting;
correspondingly, the IP based on the operating system of the server to be tested executes ping operation on the operating system of the server to be tested, and generates a test result of the starting function of the server system to be tested according to the starting type to be tested and the result of the ping operation, and specifically includes:
after restarting the system of the server to be tested and a first preset time length passes, executing the ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested, and judging whether the ping is on;
if so, the test fails;
if not, the test passes.
4. The testing method according to claim 2, wherein when the boot type to be tested is the hard disk boot, the first IPMI command is specifically:
setting a starting item of the server to be tested as a permanent hard disk starting item, and defaulting to starting from a hard disk during starting;
correspondingly, the IP based on the operating system of the server to be tested executes ping operation on the operating system of the server to be tested, and generates a test result of the starting function of the server system to be tested according to the starting type to be tested and the result of the ping operation, and specifically includes:
after restarting the system of the server to be tested and a second preset time length passes, executing the ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested, and judging whether the ping is on;
if yes, the test is passed;
if not, the test fails.
5. The test method of claim 1, further comprising:
when the test result is that the test is successful, judging whether the test frequency reaches a preset frequency;
if so, the server to be tested starts a function test through the system;
and if not, returning to the step of generating and executing a first IPMI instruction according to a preset rule to set a starting item of the server to be tested according to the information of the target BMC of the server to be tested and the starting type to be tested.
6. The method according to claim 1, wherein the generating and executing a first IPMI instruction according to a preset rule to set a start item of the server to be tested according to the information of the target BMC of the server to be tested and the start type to be tested specifically comprises:
judging whether the input information of the target BMC is received or not;
if so, generating the first IPMI instruction according to the input information of the target BMC and the to-be-tested starting type according to the preset rule, and executing the first IPMI instruction to set a starting item of the to-be-tested server;
if not, calling default information of the target BMC and the to-be-tested starting type to generate the first IPMI instruction according to the preset rule, and executing the first IPMI instruction to set a starting item of the to-be-tested server.
7. The testing method according to claim 1, wherein the information of the target BMC specifically includes:
the IP of the target BMC, the user name of the target BMC and the password of the target BMC.
8. A test apparatus for a server system startup function, comprising:
the generating unit is used for generating and executing a first IPMI instruction according to a preset rule according to the information of the target BMC of the server to be tested and the starting type to be tested so as to set a starting item of the server to be tested;
the calling unit is used for calling and executing a second preset IPMI instruction so as to restart the system of the server to be tested;
and the test unit is used for executing ping operation on the operating system of the server to be tested based on the IP of the operating system of the server to be tested and generating a test result of the system starting function of the server to be tested according to the starting type to be tested and the result of the ping operation.
9. A test apparatus for a server system startup function, comprising:
a memory for storing instructions comprising the steps of the method for testing the start-up functionality of the server system according to any one of claims 1 to 7;
a processor to execute the instructions.
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 for testing a start-up function of a server system according to any one of claims 1 to 7.
CN202010108910.7A 2020-02-21 2020-02-21 Test method, test device and test equipment for starting function of server system Withdrawn CN111414285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010108910.7A CN111414285A (en) 2020-02-21 2020-02-21 Test method, test device and test equipment for starting function of server system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010108910.7A CN111414285A (en) 2020-02-21 2020-02-21 Test method, test device and test equipment for starting function of server system

Publications (1)

Publication Number Publication Date
CN111414285A true CN111414285A (en) 2020-07-14

Family

ID=71490917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010108910.7A Withdrawn CN111414285A (en) 2020-02-21 2020-02-21 Test method, test device and test equipment for starting function of server system

Country Status (1)

Country Link
CN (1) CN111414285A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199272A (en) * 2020-09-08 2021-01-08 深圳市金锐显数码科技有限公司 Intelligent terminal testing method and device, terminal equipment and medium
CN112835755A (en) * 2021-02-05 2021-05-25 西人马(西安)测控科技有限公司 Test data acquisition method, device and equipment and computer storage medium
CN112968800A (en) * 2021-02-20 2021-06-15 山东英信计算机技术有限公司 Switch batch test method, system and equipment based on Loongson platform
CN113722181A (en) * 2021-08-30 2021-11-30 苏州浪潮智能科技有限公司 BMC process monitoring method, device, system and medium of server
CN113961257A (en) * 2021-10-29 2022-01-21 苏州浪潮智能科技有限公司 Automatic detection method, system and storage medium for activation of server operating system
CN113986635A (en) * 2021-10-31 2022-01-28 苏州浪潮智能科技有限公司 BIOS (basic input output System) testing method, system, storage medium and equipment
CN116955208A (en) * 2023-09-18 2023-10-27 荣耀终端有限公司 Test method, terminal equipment, chip and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201799A (en) * 2016-07-14 2016-12-07 浪潮电子信息产业股份有限公司 A kind of service based on ipmi carries out, to server, the method for testing that DC is restarted
CN106933710A (en) * 2017-02-19 2017-07-07 郑州云海信息技术有限公司 The method of testing that DC is restarted is carried out to server based on WOL functions
CN107870840A (en) * 2016-09-27 2018-04-03 佛山市顺德区顺达电脑厂有限公司 The multiple test instruction automatic execution methods of server based on IPMI
CN110162435A (en) * 2019-04-24 2019-08-23 苏州浪潮智能科技有限公司 A kind of server PXE starting test method, system, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201799A (en) * 2016-07-14 2016-12-07 浪潮电子信息产业股份有限公司 A kind of service based on ipmi carries out, to server, the method for testing that DC is restarted
CN107870840A (en) * 2016-09-27 2018-04-03 佛山市顺德区顺达电脑厂有限公司 The multiple test instruction automatic execution methods of server based on IPMI
CN106933710A (en) * 2017-02-19 2017-07-07 郑州云海信息技术有限公司 The method of testing that DC is restarted is carried out to server based on WOL functions
CN110162435A (en) * 2019-04-24 2019-08-23 苏州浪潮智能科技有限公司 A kind of server PXE starting test method, system, terminal and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199272A (en) * 2020-09-08 2021-01-08 深圳市金锐显数码科技有限公司 Intelligent terminal testing method and device, terminal equipment and medium
CN112835755A (en) * 2021-02-05 2021-05-25 西人马(西安)测控科技有限公司 Test data acquisition method, device and equipment and computer storage medium
CN112968800A (en) * 2021-02-20 2021-06-15 山东英信计算机技术有限公司 Switch batch test method, system and equipment based on Loongson platform
CN113722181A (en) * 2021-08-30 2021-11-30 苏州浪潮智能科技有限公司 BMC process monitoring method, device, system and medium of server
CN113722181B (en) * 2021-08-30 2023-07-14 苏州浪潮智能科技有限公司 BMC process monitoring method, device, system and medium of server
CN113961257A (en) * 2021-10-29 2022-01-21 苏州浪潮智能科技有限公司 Automatic detection method, system and storage medium for activation of server operating system
CN113961257B (en) * 2021-10-29 2023-07-18 苏州浪潮智能科技有限公司 Automatic detection method, system and storage medium for activation of server operating system
CN113986635A (en) * 2021-10-31 2022-01-28 苏州浪潮智能科技有限公司 BIOS (basic input output System) testing method, system, storage medium and equipment
CN113986635B (en) * 2021-10-31 2024-01-09 苏州浪潮智能科技有限公司 BIOS testing method, system, storage medium and device
CN116955208A (en) * 2023-09-18 2023-10-27 荣耀终端有限公司 Test method, terminal equipment, chip and storage medium
CN116955208B (en) * 2023-09-18 2024-03-15 荣耀终端有限公司 Test method, terminal equipment, chip and storage medium

Similar Documents

Publication Publication Date Title
CN111414285A (en) Test method, test device and test equipment for starting function of server system
CN109542744B (en) Method, device, storage medium and terminal for detecting abnormal starting problem of terminal
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
CN111552486B (en) SSD firmware burning method and related components
CN110569158A (en) method and device for testing abnormal power failure in SSD random scene and computer equipment
CN111124509B (en) Server starting method and device
CN110413328B (en) PXE function enabling method and device for network card port and related equipment
CN110851297A (en) Method, device, system and medium for processing interface jitter state
CN111181781A (en) Vdbench test configuration method, system, terminal and storage medium
CN112256560A (en) Application program testing method and device and electronic equipment
CN111753309A (en) Display card switching method, server and storage medium
CN107870840B (en) IPMI-based server multi-test instruction automatic execution method
CN114461458A (en) Server memory test method, system, terminal and storage medium
CN115221092A (en) Method, device and equipment for determining distributable bus of PCI-E card and storage medium
CN111142954B (en) Startup control method and device and computer readable storage medium
CN114780316A (en) Memory test method, device and system
CN109684134B (en) Method and server for rapidly deploying firmware settings among multiple devices
TW202238382A (en) Mainboard, external device of mainboard, and booting method of mainboard
CN111694587A (en) Server PNOR firmware upgrading method, device, equipment and storage medium
CN111414201A (en) PCIe card loading method, device, equipment and storage medium
CN111488250A (en) High-density multi-node server testing method, system, terminal and storage medium
CN111104271A (en) Stability testing method, device and equipment for in-band firmware updating process
CN111090557A (en) Management method, device and equipment for abnormal bandwidth reduction of PCIE (peripheral component interface express) equipment
CN117311890B (en) Picture display method and device in starting process of server
CN116594819A (en) Self-recovery method, device, equipment and medium

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200714