CN111966552A - Test method, system, terminal and storage medium for starting PXE system - Google Patents

Test method, system, terminal and storage medium for starting PXE system Download PDF

Info

Publication number
CN111966552A
CN111966552A CN202010852503.7A CN202010852503A CN111966552A CN 111966552 A CN111966552 A CN 111966552A CN 202010852503 A CN202010852503 A CN 202010852503A CN 111966552 A CN111966552 A CN 111966552A
Authority
CN
China
Prior art keywords
test
restart
target server
setting
pxe
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
CN202010852503.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 CN202010852503.7A priority Critical patent/CN111966552A/en
Publication of CN111966552A publication Critical patent/CN111966552A/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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • 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

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)
  • Stored Programmes (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a test method, a test system, a test terminal and a test storage medium for starting a PXE system, wherein the test method comprises the following steps: setting the test times and the restart type in the test script; setting a target server to start and enter a PXE system; the test script is issued to the target server, and the target server is controlled to be restarted circularly according to the restart type; collecting a system version of a target server after each restart of the target server; and recording the restart times, and terminating the test when the restart times reach the test times. The invention can realize the automatic test of the function of starting the server to enter the PXE system, has traceability in the test process, and saves the test time and the human resources.

Description

Test method, system, terminal and storage medium for starting PXE system
Technical Field
The invention relates to the technical field of server testing, in particular to a testing method, a testing system, a testing terminal and a testing storage medium for starting a PXE system.
Background
With the increasing number of clients in the server market, the general parameter setting of the BIOS cannot satisfy every client, for example, some users prefer to boot to enter the OS system, but some users want to directly enter the PXE system, because the PXE system has its own advantages, it can be implemented remotely: physical installation media such as an optical disk, a U disk and the like are not needed; automation: installing a system and configuring various services; and (3) scale production: the system is provided with a plurality of hosts at the same time, and the unique advantage of the system is that a user can directly enter the PXE system no matter what starting mode is adopted, and the starting is carried out for the second time. However, since the system start-up process is often long and the test process is time-consuming, an automated method is required for testing.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for testing a PXE system during starting up, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a method for testing a PXE system during boot, including:
setting the test times and the restart type in the test script;
setting a target server to start and enter a PXE system;
the test script is issued to the target server, and the target server is controlled to be restarted circularly according to the restart type;
collecting a system version of a target server after each restart of the target server;
and recording the restart times, and terminating the test when the restart times reach the test times.
Further, the setting of the number of tests and the restart type in the test script includes:
and setting the test times of the hot restart and the power-off restart.
Further, the method further comprises:
summarizing the system version of the target server after each restart;
and counting and outputting the occurrence times of various system versions.
In a second aspect, the present invention provides a test system for booting a PXE system, including:
the parameter setting unit is configured for setting the test times and the restart type in the test script;
the starting setting unit is configured for setting a starting-up of a target server to enter the PXE system;
the restarting execution unit is configured to issue the test script to the target server and control the target server to restart circularly according to the restarting type;
the version acquisition unit is configured to acquire the system version of the target server after the target server is restarted each time;
and the frequency monitoring unit is configured to record the restart frequency and terminate the test when the restart frequency reaches the test frequency.
Further, the parameter setting unit includes:
and the parameter setting module is configured for setting the test times of hot restart and the test times of power-off restart.
Further, the system further comprises:
the result summarizing unit is configured to summarize the system version of the target server after each restart;
and the result counting unit is configured for counting and outputting the times of the various system versions.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
the test method, the test system, the test terminal and the test storage medium for starting the PXE system provided by the invention realize the test of the function of starting the target server to enter the PXE system by controlling the target server to restart and setting the target server to automatically enter the PXE system. The invention can realize the automatic test of the function of starting the server to enter the PXE system, has traceability in the test process, and saves the test time and the human resources.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, 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 schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all 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 schematic flow diagram of a method of one embodiment of the invention. The execution main body in fig. 1 may be a test system that is booted into the PXE system.
As shown in fig. 1, the method includes:
step 110, setting test times and restart types in a test script;
step 120, setting a target server to start to enter a PXE system;
step 130, issuing the test script to the target server, and controlling the target server to restart circularly according to the restart type;
step 140, collecting a system version of a target server after the target server is restarted each time;
and 150, recording the restart times, and terminating the test when the restart times reach the test times.
In order to facilitate understanding of the present invention, the following further describes the testing method for the PXE system by using the principle of the testing method for the PXE system according to the present invention and combining the process of testing the function of the PXE system during starting.
Specifically, the method for testing the starting-up of the PXE system comprises the following steps:
and S1, setting the test times and the restart type in the test script.
Firstly, a communication connection is established with a target server, the test focus adopted in the embodiment is mobile equipment, and the mobile equipment establishes a communication connection with the target server by using an NFC function.
And writing the test times and the restart type into the test script, for example, setting the hot restart to be executed 50 times, and the power-off restart to be executed 50 times.
And S2, setting the target server to start to enter the PXE system.
And setting a target server to start by default to enter the PXE system through a remote command (selecting the PXE system in the starting system option).
And S3, issuing the test script to the target server, and controlling the target server to circularly restart according to the restart type.
And issuing the test script to a target server, and setting the test script to be automatically executed after starting. The test script firstly controls the target server to be restarted again, and the target server waits for 10s to be restarted after being restarted successfully each time. And recording the restart times, controlling the target server to be powered off and restarted after the hot restart times reach 50 times, wherein the power-off and restart method is realized by unloading the power supply drive through the test script. Recording the power-off restarting execution times, and if the power-off restarting execution times reach 50 times, not executing the restarting.
And S4, collecting the system version of the target server after the target server is restarted every time.
After the target server is restarted, acquiring the system version of the target server, acquiring a system return parameter by using an operating system version information acquisition function, and determining system version information according to the return parameter, wherein the acquisition method comprises the following steps:
Figure BDA0002645198840000051
summarizing the system versions collected after each restart, and counting the occurrence times of various system versions, wherein if a PXE system occurs 98 times and an OS system occurs twice, the PXE system fails to enter twice. And calling the system logs corresponding to the two restarts, and analyzing the failure reasons.
As shown in fig. 2, the system 200 includes:
a parameter setting unit 210 configured to set a test frequency and a restart type in the test script;
a start setting unit 220 configured to set a target server to start to enter the PXE system;
the restart execution unit 230 is configured to issue the test script to the target server, and control the target server to restart cyclically according to the restart type;
the version acquisition unit 240 is configured to acquire a system version of a target server after the target server is restarted each time;
and a time monitoring unit 250 configured to record the restart times, and terminate the test when the restart times reach the test times.
Optionally, as an embodiment of the present invention, the parameter setting unit includes:
and the parameter setting module is configured for setting the test times of hot restart and the test times of power-off restart.
Optionally, as an embodiment of the present invention, the system further includes:
the result summarizing unit is configured to summarize the system version of the target server after each restart;
and the result counting unit is configured for counting and outputting the times of the various system versions.
Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute a test method for booting a PXE system according to the embodiment of the present invention.
Among them, the terminal 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention realizes the test of the function of starting the target server to enter the PXE system by controlling the target server to restart and setting the target server to automatically enter the PXE system. The invention can realize the automatic test of the function of starting the server to enter the PXE system, the test process has traceability, and the test time and the human resource are saved.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, 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, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units 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, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A test method for starting a PXE system is characterized by comprising the following steps:
setting the test times and the restart type in the test script;
setting a target server to start and enter a PXE system;
the test script is issued to the target server, and the target server is controlled to be restarted circularly according to the restart type;
collecting a system version of a target server after each restart of the target server;
and recording the restart times, and terminating the test when the restart times reach the test times.
2. The method of claim 1, wherein setting the number of tests and the restart type in the test script comprises:
and setting the test times of the hot restart and the power-off restart.
3. The method of claim 1, further comprising:
summarizing the system version of the target server after each restart;
and counting and outputting the occurrence times of various system versions.
4. A test system for starting a PXE system is characterized by comprising:
the parameter setting unit is configured for setting the test times and the restart type in the test script;
the starting setting unit is configured for setting a starting-up of a target server to enter the PXE system;
the restarting execution unit is configured to issue the test script to the target server and control the target server to restart circularly according to the restarting type;
the version acquisition unit is configured to acquire the system version of the target server after the target server is restarted each time;
and the frequency monitoring unit is configured to record the restart frequency and terminate the test when the restart frequency reaches the test frequency.
5. The system according to claim 4, wherein the parameter setting unit comprises:
and the parameter setting module is configured for setting the test times of hot restart and the test times of power-off restart.
6. The system of claim 4, further comprising:
the result summarizing unit is configured to summarize the system version of the target server after each restart;
and the result counting unit is configured for counting and outputting the times of the various system versions.
7. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-3.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN202010852503.7A 2020-08-21 2020-08-21 Test method, system, terminal and storage medium for starting PXE system Withdrawn CN111966552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010852503.7A CN111966552A (en) 2020-08-21 2020-08-21 Test method, system, terminal and storage medium for starting PXE system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010852503.7A CN111966552A (en) 2020-08-21 2020-08-21 Test method, system, terminal and storage medium for starting PXE system

Publications (1)

Publication Number Publication Date
CN111966552A true CN111966552A (en) 2020-11-20

Family

ID=73391143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010852503.7A Withdrawn CN111966552A (en) 2020-08-21 2020-08-21 Test method, system, terminal and storage medium for starting PXE system

Country Status (1)

Country Link
CN (1) CN111966552A (en)

Similar Documents

Publication Publication Date Title
CN103746833B (en) PXE-based RAID automatic configuration method and system
US10162646B2 (en) System for programmably configuring a motherboard
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
CN109542744A (en) Detect method, apparatus, storage medium and the terminal of terminal booting abnormal problem
CN109375956B (en) Method for restarting operating system, logic device and control device
CN111338698A (en) Method and system for accurately booting server by BIOS (basic input output System)
CN111371610A (en) Network card firmware batch refreshing method, system, terminal and storage medium
CN111552486A (en) SSD firmware burning method and related components
CN115658113A (en) Server self-starting method and device, readable storage medium and electronic equipment
CN114138283A (en) Remote automatic deployment method, device, terminal and storage medium for operating system
CN111078305A (en) Information acquisition method and device, server and information management system
CN111506331A (en) Server BMC refreshing method, system, terminal and storage medium
CN108897646B (en) Switching method of BIOS (basic input output System) chips and substrate management controller
CN109471665B (en) Method for automatically installing Windows operating system
CN111966552A (en) Test method, system, terminal and storage medium for starting PXE system
CN111400113B (en) Complete machine self-checking method, device and system of computer system
CN111147400B (en) Method and device for command line configuration synchronization and electronic equipment
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN109684134B (en) Method and server for rapidly deploying firmware settings among multiple devices
CN114090329A (en) Server restarting method under full-unloading architecture and related equipment
CN111858308A (en) Method, system, terminal and storage medium for acquiring test data of diskless system
CN111694587A (en) Server PNOR firmware upgrading method, device, equipment and storage medium
CN111488250A (en) High-density multi-node server testing method, system, terminal and storage medium
CN115495161B (en) BIOS option modification validation method and device and storage medium
CN113900934B (en) Multi-mirror hybrid refresh test method, system, terminal and storage 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

Application publication date: 20201120

WW01 Invention patent application withdrawn after publication