CN111124774B - Method and related device for testing stability of server in starting process - Google Patents

Method and related device for testing stability of server in starting process Download PDF

Info

Publication number
CN111124774B
CN111124774B CN201911161182.XA CN201911161182A CN111124774B CN 111124774 B CN111124774 B CN 111124774B CN 201911161182 A CN201911161182 A CN 201911161182A CN 111124774 B CN111124774 B CN 111124774B
Authority
CN
China
Prior art keywords
server
tested
post
post stage
starting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911161182.XA
Other languages
Chinese (zh)
Other versions
CN111124774A (en
Inventor
张锟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911161182.XA priority Critical patent/CN111124774B/en
Publication of CN111124774A publication Critical patent/CN111124774A/en
Application granted granted Critical
Publication of CN111124774B publication Critical patent/CN111124774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/2284Detection 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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application discloses a method for testing the starting stability of a server, which comprises the steps of starting the server to be tested; judging whether the POST codes corresponding to the current POST stage in the sample set can be detected in the standard running time corresponding to the current POST stage or not in the process of carrying out power-on self-test on the server to be tested; if not, determining that the starting process of the server to be tested is abnormal; if so, intercepting the image displayed on the screen of the server to be tested in the current POST stage, and judging whether the intercepted image is consistent with the image corresponding to the current POST stage in the sample set; if the two are not consistent, determining that the starting process of the server to be tested is abnormal; and if the POST phases are consistent, starting the analysis of the next POST phase until the server to be tested enters the operating system. The method can effectively improve the testing efficiency and the testing accuracy. The application also discloses a testing device, equipment and a storage medium for the starting stability of the server, and the testing device, the equipment and the storage medium all have the technical effects.

Description

Method and related device for testing stability of server in starting process
Technical Field
The application relates to the technical field of servers, in particular to a method for testing the stability of a server startup process; the utility model also relates to a testing arrangement, equipment and the readable storage medium of calculation of server boot process stability.
Background
With the rapid development of the IT industry and the expansion of the business scale of Internet enterprises, the demand of the server is increasing. One of the advantages of the server is its high stability, and stability testing is required during the development process to ensure the stability. Currently, in a server stability Test mode, a Test of starting up a server and entering an operating system is the most common, however, a stability Test in a Power-On-Self-Test (POST) process of the server is also an important link. The power-on self-test is a main function of a BIOS (Basic Input Output System), and is to detect a CPU, a main board, a memory, a disk subsystem, a display subsystem, a serial/parallel port, and a keyboard after a server is powered on to check whether hardware is abnormal. The server has various possible abnormalities in the process of starting, such as screen-up picture screen-changing, unexpected information printed on a screen, trademark deformation or disappearance of a server manufacturer, even server downtime and the like. Although the probability of the occurrence of the abnormality is small, once the occurrence of the abnormality has a serious influence on the subsequent overall operation quality of the server, a large number of repeated starting operations need to be performed on the server in the research and development process, and whether the abnormality exists in the power-on self-test process after each restart is identified, wherein the process is the stability test of the server starting process. However, in the conventional server boot process stability test, when the server is powered on for self-checking each time, a manual watch checks whether there is an abnormality, which not only takes time but also consumes a lot of manpower, and fine abnormality problems are easily missed.
Therefore, how to provide a method for testing the stability of the server boot process to improve the testing efficiency and the testing accuracy has become a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The method for testing the stability of the server in the starting process is provided, so that the testing efficiency and the testing accuracy can be effectively improved; another objective of the present application is to provide a device, a system and a computer-readable storage medium for testing the stability of the server boot process, which all have the above technical effects.
In order to solve the above technical problem, the present application provides a method for testing stability of a server boot process, including:
starting a server to be tested;
judging whether the POST codes corresponding to the current POST stage in a sample set can be detected in the standard running time corresponding to the current POST stage or not in the process of carrying out power-on self-test on the server to be tested;
if not, determining that the starting process of the server to be tested is abnormal;
if yes, intercepting the image displayed on the screen of the server to be tested in the current POST stage, and judging whether the intercepted image is consistent with the image corresponding to the current POST stage in the sample set;
if the starting process of the server to be tested is inconsistent with the starting process of the server to be tested, determining that the starting process of the server to be tested is abnormal;
and if the two POST phases are consistent, starting the analysis of the next POST phase until the server to be tested enters an operating system.
Optionally, the standard running time corresponding to the current POST stage is the sum of the running time of the current POST stage and a preset time margin.
Optionally, the method further includes:
and acquiring POST codes corresponding to all POST stages and standard running time in a normal starting process to obtain the sample set.
Optionally, the obtaining the POST code corresponding to each POST stage and the standard runtime in the normal boot process to obtain the sample set includes:
recording the time point of the start of the power-on self-test and the time point of each time when the BIOS prints the POST information on a server screen;
obtaining the running time of the corresponding POST stage according to two adjacent time points, and summing the running time and a preset time allowance to obtain the standard running time;
and when the BIOS prints the POST information on a screen of the server, pausing the power-on self-test process, recording POST codes corresponding to POST stages, and reading the POST codes through an IPMITOOL OEM command.
Optionally, the method further includes:
and when the starting process of the server to be tested is judged to be abnormal, stopping the power-on self-test process of the server to be tested.
Optionally, the method further includes:
and when the POST codes corresponding to the current POST stage in the sample set and the intercepted images are consistent with the images corresponding to the current POST stage in the sample set in the standard running time corresponding to the current POST stage, emptying the buffer of the counter.
In order to solve the above technical problem, the present application further provides a testing apparatus for stability of a server boot process, including:
the first starting module is used for starting the server to be tested;
the first judgment module is used for judging whether the POST codes corresponding to the current POST stage in a sample set can be detected in the standard running time corresponding to the current POST stage or not in the process of carrying out power-on self-test on the server to be tested;
the first determining module is used for determining that the starting process of the server to be tested is abnormal if the starting process of the server to be tested cannot be judged to be abnormal;
the second judgment module is used for intercepting the image displayed on the screen of the server to be tested in the current POST stage if the image is consistent with the image corresponding to the current POST stage in the sample set;
the second determining module is used for determining that the starting process of the server to be tested is abnormal if the starting process of the server to be tested is inconsistent;
and the second starting module is used for starting the analysis of the next POST stage if the two POST stages are consistent with each other until the server to be tested enters the operating system.
Optionally, the method further includes:
and the acquisition module is used for acquiring POST codes corresponding to all POST stages and standard running time in a normal starting process to obtain the sample set.
In order to solve the above technical problem, the present application further provides a testing apparatus, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the method for testing the stability of the server boot process when the computer program is executed.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method for testing the stability of the server boot process are implemented.
The method for testing the starting stability of the server comprises the steps of starting the server to be tested; judging whether the POST codes corresponding to the current POST stage in a sample set can be detected in the standard running time corresponding to the current POST stage or not in the process of carrying out power-on self-test on the server to be tested; if not, determining that the starting process of the server to be tested is abnormal; if yes, intercepting the image displayed on the screen of the server to be tested in the current POST stage, and judging whether the intercepted image is consistent with the image corresponding to the current POST stage in the sample set; if the starting process of the server to be tested is inconsistent with the starting process of the server to be tested, determining that the starting process of the server to be tested is abnormal; and if the two POST phases are consistent, starting the analysis of the next POST phase until the server to be tested enters an operating system. Therefore, the method for testing the stability of the server startup process provided by the application automatically identifies the abnormality of the server startup process by monitoring the operation time of each POST stage in the server power-on self-test process in real time and analyzing the images output by the server screen of each POST stage, is suitable for unattended automatic testing, can effectively reduce the human input cost, and improves the testing efficiency and the testing accuracy.
The testing device, the equipment and the computer readable storage medium for the stability of the server boot process have the technical effects.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the prior art and the embodiments are briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for testing stability of a server boot process according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a device for testing stability of a server boot process according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a device for testing stability of a server boot process according to an embodiment of the present disclosure.
Detailed Description
The core of the application is to provide a method for testing the stability of the starting process of the server, which can effectively improve the testing efficiency and the testing accuracy; another core of the present application is to provide a device, a system and a computer readable storage medium for testing the stability of the server boot process, all having the above technical effects.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for testing stability of a server boot process according to an embodiment of the present disclosure; referring to fig. 1, the testing method includes:
s101: starting a server to be tested;
s102: judging whether the POST codes corresponding to the current POST stage in the sample set can be detected in the standard running time corresponding to the current POST stage or not in the process of carrying out power-on self-test on the server to be tested;
specifically, the BMC (Baseboard Management Controller) controls the start of the server to be tested by out-of-band control, so that the server performs power-on self-test. The process of the server power-on self-test is the process of testing the devices such as a CPU, a mainboard, a memory, a soft disk subsystem, a display subsystem, a serial-parallel port, a keyboard and the like in the server, the testing aiming at different devices is a different POST stage, the POST codes corresponding to the POST stages are different, and the running time may also be different. Starting a timer to time by using the timer, and when the power-on self-test is performed on a server to be tested and the power-on self-test is operated to a POST stage aiming at a certain device, namely a current POST stage, firstly, judging whether a POST code corresponding to the current POST stage shown by a sample set can be detected in a standard operation time corresponding to the current POST stage. The sample set is a set of standard running time and POST codes corresponding to each POST stage in the power-on self-test process under the condition that the server boot-up process is normal. In a specific implementation manner, the standard running time corresponding to the current POST stage is the sum of the running time of the current POST stage and the preset time margin, and for the specific duration of the preset time margin, the detailed description is not repeated herein, and the difference setting can be performed according to the actual situation. For example, in the power-on self-test process, the time interval of each screen output is not fixed, and the difference is small, so the preset time margin can be 10 s.
Since the sample set is the basis for implementing step S102, the method may further include obtaining POST codes corresponding to POST stages and obtaining the sample set from the standard runtime in a normal boot process. In a specific embodiment, the obtaining of the POST code corresponding to each POST stage and the sample set obtained by the standard running time in the normal boot process may include recording a time point when the power-on self-test starts and a time point when the BIOS prints the POST information on a screen of the server each time; obtaining the running time of the corresponding POST stage according to the two adjacent time points, and summing the running time and the preset time allowance to obtain standard running time; and when the BIOS prints the POST information on a screen of the server, pausing the power-on self-test process, recording POST codes corresponding to POST stages, and reading the POST codes through IPMITOOL OEM commands.
Specifically, the time point is recorded after the server is started, including the time point when the power-on self-test is started and the time point when the BIOS prints the POST information on the screen of the server each time, so that the running time of the corresponding POST stage is obtained according to two adjacent time points, and the running time and the preset time margin are summed to obtain the standard running time. When BIOS prints POST information on a server screen, the power-on self-test process is suspended by pressing a pause key of a keyboard, then the POST code at the moment is recorded, and then an Enter key is pressed to enable the power-on self-test process to be continuously executed. And repeating the operations until the power-on self-test is finished and the operation system is entered. On the basis of recording the POST codes of all POST stages, further reading the recorded POST codes of all POST stages through an IPMITOOL OEM command.
For example, after the server is powered on, a time point T0 is recorded, until a server screen displays POST information for the first time, a pause key is pressed to pause the power-on self-test process, the current time T1 is recorded, and a current POST code C0 is obtained, where T0 to T1 are P0 in a POST stage, and T0-T1-T0 +10s are standard running time in the P0 stage. Pressing an Enter key, continuing the power-on self-test process, pressing a pause key to pause the power-on self-test process when the server screen displays POST information for the second time, recording the current time T2, and acquiring the current POST code C1, wherein the time from T1 to T2 is a POST stage P1, and the time from T1 to T2 to T1+10s is the standard running time of the P1 stage. By analogy, POST codes C2 and C3 … Cn and standard running times T2 and T3 … Tn of P2 and P3 … Pn in subsequent POST phases are recorded.
It can be understood that the POST information displayed by the server each time is directed to a different device, for example, the information displayed by the server screen performing the POST information for the first time is directed to the CPU, and the information displayed by the server screen performing the POST information for the second time is directed to the hard disk. Naturally, the number of times the server displays the POST information, that is, the specific number of times the BIOS prints the POST information on the server screen during the power-on self-test, is related to the number of the devices of the server itself, and is specifically changed according to the number of the devices of the server itself.
S103: if not, determining that the starting process of the server to be tested is abnormal;
s104: if so, intercepting the image displayed on the screen of the server to be tested in the current POST stage, and judging whether the intercepted image is consistent with the image corresponding to the current POST stage in the sample set;
specifically, if the POST code corresponding to the current POST stage in the sample set cannot be detected within the standard running time corresponding to the current POST stage, it is determined that the startup process of the server to be tested is abnormal, and the test failure may be output. On the contrary, if the POST code corresponding to the current POST stage in the sample set can be detected in the standard running time corresponding to the current POST stage, the image displayed on the screen of the server to be detected in the current POST stage is further intercepted, and the intercepted image is compared with the image corresponding to the current POST stage in the sample set, so that the image displayed on the screen of the server to be detected in the current POST stage is judged to be intercepted, and whether the intercepted image is consistent with the image corresponding to the current POST stage in the sample set is judged.
For example, if the current POST stage is P1, the image s1 of the P1 stage captured by the images P0 and P1 … Pn corresponding to the POST stages P0 and P1 … Pn recorded in the sample set is compared with the image P1 to determine whether the two are consistent.
S105: if the two are not consistent, determining that the starting process of the server to be tested is abnormal;
s106: and if the POST phases are consistent, starting the analysis of the next POST phase until the server to be tested enters the operating system.
Specifically, through image comparison, if the intercepted image is inconsistent with the image corresponding to the current POST stage in the sample set, the abnormal starting process of the server to be tested is determined, and the test can be output to fail; on the contrary, if the intercepted image is consistent with the image corresponding to the current POST stage in the sample set, the analysis of the next POST stage is started, and the steps S102 to S106 are repeated, wherein the current POST stage at this time is the next POST stage. And circulating in this way, and realizing the test of each POST stage in each power-on self-test process.
Further, on the basis of the foregoing embodiment, as a specific implementation manner, the method may further include stopping the power-on self-test process of the server to be tested when it is determined that the boot process of the server to be tested is abnormal.
Specifically, when the POST code corresponding to the current POST stage in the sample set cannot be detected within the standard running time corresponding to the current POST stage, the power-on self-test process is stopped. And when the POST code corresponding to the current POST stage in the sample set can be detected in the standard running time corresponding to the current POST stage, but the subsequently intercepted image is inconsistent with the image corresponding to the current POST stage in the sample set, stopping the power-on self-detection process. Furthermore, the BIOS performs exception prompting after detecting that the power-on self-test process is stopped, so that research and development personnel can analyze and solve the problem.
Further, on the basis of the foregoing embodiment, as a specific implementation manner, when the POST code corresponding to the current POST stage in the sample set can be detected in the standard running time corresponding to the current POST stage, and the captured image is consistent with the image corresponding to the current POST stage in the sample set, the counter buffer is cleared, so as to facilitate the next time counting by the counter.
In summary, the method for testing the boot stability of the server provided by the present application includes starting the server to be tested; judging whether the POST codes corresponding to the current POST stage in a sample set can be detected in the standard running time corresponding to the current POST stage or not in the process of carrying out power-on self-test on the server to be tested; if not, determining that the starting process of the server to be tested is abnormal; if yes, intercepting an image displayed on a screen of the server to be tested in the current POST stage, and judging whether the intercepted image is consistent with an image corresponding to the current POST stage in the sample set; if the starting process of the server to be tested is inconsistent with the starting process of the server to be tested, determining that the starting process of the server to be tested is abnormal; and if the two POST phases are consistent, starting the analysis of the next POST phase until the server to be tested enters an operating system. Therefore, the method for testing the stability of the server startup process provided by the application automatically identifies the abnormality of the server startup process by monitoring the operation time of each POST stage in the server power-on self-test process in real time and analyzing the images output by the server screen of each POST stage, is suitable for unattended automatic testing, can effectively reduce the human input cost, and improves the testing efficiency and the testing accuracy.
The application also provides a testing device for the stability of the server startup process, and the testing device described below can be referred to in correspondence with the method described above. Referring to fig. 2, the testing apparatus includes:
the first starting module 10 is used for starting the server to be tested;
the first judging module 20 is configured to judge whether a POST code corresponding to a current POST stage in a sample set can be detected in a standard running time corresponding to the current POST stage in a process of performing power-on self-test on a server to be tested;
the first determining module 30 is configured to determine that an abnormal condition exists in the boot process of the server to be tested if the abnormal condition does not exist;
the second judging module 40 is configured to, if yes, intercept an image displayed on a screen of the server to be tested at the current POST stage, and judge whether the intercepted image is consistent with an image corresponding to the current POST stage in the sample set;
the second determining module 50 is used for determining that the starting process of the server to be tested is abnormal if the starting process is inconsistent;
and a second starting module 60, configured to start analysis of the next POST stage if the results are consistent, until the server to be tested enters the operating system.
On the basis of the above embodiment, optionally, the method further includes:
and the acquisition module is used for acquiring POST codes corresponding to all POST stages and standard running time in a normal starting process to obtain a sample set.
On the basis of the above embodiment, optionally, the acquisition module includes:
the first recording unit is used for recording the time point when the power-on self-test starts and the time point when the BIOS prints the POST information on a server screen each time;
the computing unit is used for obtaining the running time of the corresponding POST stage according to the two adjacent time points, and summing the running time and the preset time allowance to obtain standard running time;
and the second recording unit is used for pausing the power-on self-test process every time the BIOS prints the POST information on the screen of the server, recording POST codes corresponding to POST stages, and reading the POST codes through IPMITOOL OEM commands.
On the basis of the above embodiment, optionally, the method further includes:
and the stopping module is used for stopping the power-on self-detection process of the server to be detected when the starting process of the server to be detected is judged to be abnormal.
On the basis of the above embodiment, optionally, the method further includes:
and the clearing module is used for clearing the counter cache when the POST codes corresponding to the current POST stage in the sample set and the intercepted images are consistent with the images corresponding to the current POST stage in the sample set can be detected in the standard running time corresponding to the current POST stage.
Please refer to fig. 3, where fig. 3 is a schematic diagram of a testing apparatus for server boot stability according to an embodiment of the present application; referring to fig. 3, the test apparatus includes a memory 1 and a processor 2. Wherein, the memory 1 is used for storing computer programs; a processor 2, configured to implement the following steps when executing the computer program:
starting a server to be tested; judging whether the POST codes corresponding to the current POST stage in a sample set can be detected in the standard running time corresponding to the current POST stage or not in the process of carrying out power-on self-test on the server to be tested; if not, determining that the starting process of the server to be tested is abnormal; if yes, intercepting the image displayed on the screen of the server to be tested in the current POST stage, and judging whether the intercepted image is consistent with the image corresponding to the current POST stage in the sample set; if the starting process of the server to be tested is inconsistent with the starting process of the server to be tested, determining that the starting process of the server to be tested is abnormal; and if the two POST phases are consistent, starting the analysis of the next POST phase until the server to be tested enters an operating system.
For the introduction of the data set caching device provided in the present application, please refer to the above embodiment of the method for implementing the user customized function, which is not described herein again.
The present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
starting a server to be tested; judging whether the POST codes corresponding to the current POST stage in a sample set can be detected in the standard running time corresponding to the current POST stage or not in the process of carrying out power-on self-test on the server to be tested; if not, determining that the starting process of the server to be tested is abnormal; if yes, intercepting the image displayed on the screen of the server to be tested in the current POST stage, and judging whether the intercepted image is consistent with the image corresponding to the current POST stage in the sample set; if the starting process of the server to be tested is inconsistent with the starting process of the server to be tested, determining that the starting process of the server to be tested is abnormal; and if the two POST phases are consistent, starting the analysis of the next POST phase until the server to be tested enters an operating system.
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.
For the introduction of the computer-readable storage medium provided in the present application, please refer to the above method embodiments, which are not described herein again.
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 by the embodiments correspond to the method disclosed by the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The method, the apparatus, the device and the computer readable storage medium for testing the stability of the server boot process provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (9)

1. A method for testing the stability of a server boot process is characterized by comprising the following steps:
starting a server to be tested;
judging whether the POST codes corresponding to the current POST stage in a sample set can be detected in the standard running time corresponding to the current POST stage or not in the process of carrying out power-on self-test on the server to be tested;
if not, determining that the starting process of the server to be tested is abnormal;
if yes, intercepting the image displayed on the screen of the server to be tested in the current POST stage, and judging whether the intercepted image is consistent with the image corresponding to the current POST stage in the sample set;
if the starting process of the server to be tested is inconsistent with the starting process of the server to be tested, determining that the starting process of the server to be tested is abnormal;
if the server to be tested is consistent with the POST, starting the analysis of the next POST stage until the server to be tested enters an operating system;
the current POST stage is a POST stage corresponding to the currently tested equipment; and the standard running time corresponding to the current POST stage is the sum of the running time of the current POST stage and a preset time allowance.
2. The test method of claim 1, further comprising:
and acquiring POST codes corresponding to all POST stages and standard running time in a normal starting process to obtain the sample set.
3. The method of claim 2, wherein obtaining the set of samples by obtaining the POST code corresponding to each POST stage and the standard runtime during normal boot-up comprises:
recording the time point of the start of the power-on self-test and the time point of each time when the BIOS prints the POST information on a server screen;
obtaining the running time of the corresponding POST stage according to two adjacent time points, and summing the running time and a preset time allowance to obtain the standard running time;
and when the BIOS prints the POST information on a screen of the server, pausing the power-on self-test process, recording POST codes corresponding to POST stages, and reading the POST codes through an IPMITOOL OEM command.
4. The testing method of claim 3, further comprising:
and when the starting process of the server to be tested is judged to be abnormal, stopping the power-on self-test process of the server to be tested.
5. The test method of claim 4, further comprising:
and when the POST codes corresponding to the current POST stage in the sample set and the intercepted images are consistent with the images corresponding to the current POST stage in the sample set in the standard running time corresponding to the current POST stage, emptying the buffer of the counter.
6. A testing device for the stability of a server boot process is characterized by comprising:
the first starting module is used for starting the server to be tested;
the first judgment module is used for judging whether the POST codes corresponding to the current POST stage in a sample set can be detected in the standard running time corresponding to the current POST stage or not in the process of carrying out power-on self-test on the server to be tested;
the first determining module is used for determining that the starting process of the server to be tested is abnormal if the starting process of the server to be tested cannot be performed;
the second judgment module is used for intercepting the image displayed on the screen of the server to be tested in the current POST stage if the image is consistent with the image corresponding to the current POST stage in the sample set;
the second determining module is used for determining that the starting process of the server to be tested is abnormal if the starting process of the server to be tested is inconsistent;
the second starting module is used for starting the analysis of the next POST stage if the server to be tested is consistent with the POST stage until the server to be tested enters the operating system;
the current POST stage is a POST stage corresponding to the currently tested equipment; and the standard running time corresponding to the current POST stage is the sum of the running time of the current POST stage and a preset time allowance.
7. The apparatus for testing the stability of the server boot process according to claim 6, further comprising:
and the acquisition module is used for acquiring POST codes corresponding to all POST stages and standard running time in a normal starting process to obtain the sample set.
8. A test apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for testing the stability of the server boot process according to any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps of the method for testing the stability of a server boot process according to any one of claims 1 to 5.
CN201911161182.XA 2019-11-24 2019-11-24 Method and related device for testing stability of server in starting process Active CN111124774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911161182.XA CN111124774B (en) 2019-11-24 2019-11-24 Method and related device for testing stability of server in starting process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911161182.XA CN111124774B (en) 2019-11-24 2019-11-24 Method and related device for testing stability of server in starting process

Publications (2)

Publication Number Publication Date
CN111124774A CN111124774A (en) 2020-05-08
CN111124774B true CN111124774B (en) 2022-08-05

Family

ID=70496473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911161182.XA Active CN111124774B (en) 2019-11-24 2019-11-24 Method and related device for testing stability of server in starting process

Country Status (1)

Country Link
CN (1) CN111124774B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258477B (en) * 2020-10-22 2023-08-18 孝感华中精密仪器有限公司 High-precision thermal infrared imager start-up time testing system and method
CN114816961A (en) * 2022-05-16 2022-07-29 宝德计算机系统股份有限公司 Server pressure testing method and device and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850485A (en) * 2015-05-25 2015-08-19 深圳国鑫恒宇技术有限公司 BMC based method and system for remote diagnosis of server startup failure
CN104881341A (en) * 2015-06-16 2015-09-02 深圳市金泰克半导体有限公司 Server as well as testing method and system for computer hard disk
CN108376107A (en) * 2018-03-01 2018-08-07 郑州云海信息技术有限公司 A kind of method, apparatus, equipment and the storage medium of server failure detection
CN109947612A (en) * 2019-03-26 2019-06-28 苏州浪潮智能科技有限公司 A kind of method and device reading BIOS POST code by setting BMC SDR

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850485A (en) * 2015-05-25 2015-08-19 深圳国鑫恒宇技术有限公司 BMC based method and system for remote diagnosis of server startup failure
CN104881341A (en) * 2015-06-16 2015-09-02 深圳市金泰克半导体有限公司 Server as well as testing method and system for computer hard disk
CN108376107A (en) * 2018-03-01 2018-08-07 郑州云海信息技术有限公司 A kind of method, apparatus, equipment and the storage medium of server failure detection
CN109947612A (en) * 2019-03-26 2019-06-28 苏州浪潮智能科技有限公司 A kind of method and device reading BIOS POST code by setting BMC SDR

Also Published As

Publication number Publication date
CN111124774A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
US6532552B1 (en) Method and system for performing problem determination procedures in hierarchically organized computer systems
CN110704304B (en) Application program testing method and device, storage medium and server
CN112948157A (en) Server fault positioning method, device and system and computer readable storage medium
US10866852B2 (en) Image based fault state determination
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
CN114168222B (en) Method and device for acquiring time consumption during starting, terminal equipment and storage medium
CN111124774B (en) Method and related device for testing stability of server in starting process
KR100985959B1 (en) Quantitative measurement of the autonomic capabilities of computing systems
CN110609778A (en) Method and system for storing server downtime log
JP2010086364A (en) Information processing device, operation state monitoring device and method
CN108572895B (en) Stability test method for automatically checking software and hardware configuration under Linux
JP2010256997A (en) Error reproduction system and error reproduction investigation method for field trouble, and scenario execution program
CN117891671A (en) Medical service terminal supervision method, system, electronic equipment and storage medium
CN109656761A (en) Server HT automatic test approach and system based on Linux system
CN111597111A (en) Application program starting speed monitoring method and device
CN105786679A (en) Automatic test monitoring system and method and mobile terminal
CN115599645B (en) Method and device for testing stability of linux driving module
CN112437348A (en) State information acquisition method, storage medium and smart television
CN105760264A (en) Method and device for detecting faulty hardware equipment of server
CN115757138A (en) Method and device for determining script abnormal reason, storage medium and electronic equipment
CN107402883B (en) A kind of data test treating method and apparatus
CN111858208B (en) Standby function testing method, device, equipment and medium of processor chip
CN115080326A (en) Method, system, equipment and storage medium for BIOS (basic input output System) execution test
CN112181744A (en) Fault detection method, system, terminal and storage medium of converter interface
JP2020086606A (en) Information processing unit and control program

Legal Events

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