CN109698772B - Method and system for verifying PXE (PCI extensions for instrumentation) functional stability of network card - Google Patents

Method and system for verifying PXE (PCI extensions for instrumentation) functional stability of network card Download PDF

Info

Publication number
CN109698772B
CN109698772B CN201811535602.1A CN201811535602A CN109698772B CN 109698772 B CN109698772 B CN 109698772B CN 201811535602 A CN201811535602 A CN 201811535602A CN 109698772 B CN109698772 B CN 109698772B
Authority
CN
China
Prior art keywords
tested
host
network card
pxe
test
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
CN201811535602.1A
Other languages
Chinese (zh)
Other versions
CN109698772A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811535602.1A priority Critical patent/CN109698772B/en
Publication of CN109698772A publication Critical patent/CN109698772A/en
Application granted granted Critical
Publication of CN109698772B publication Critical patent/CN109698772B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer And Data Communications (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a method and a system for verifying PXE function stability of a network card, wherein the method comprises the following steps: s1, configuring a PXE server side and putting a restart script; s2, the host to be tested accesses the network card to be tested and opens the PXE function of the network card to be tested; s3, accessing a network port to be tested of the network card to be tested into a network; s4, setting a first starting item of the host to be tested as starting from the network card to be tested; s5, restarting the host to be tested; s6, judging whether the host to be tested is started from the network card to be tested or not; s7, if yes, starting the host to be tested from the network card to be tested to enter a PXE environment; s8, automatically downloading a restart script from the PXE server side by the network card to be tested; s9, running a restart script by the host to be tested; s10, judging whether the host to be tested is restarted or not; s11, if yes, judging whether the restart frequency of the host to be tested reaches a set threshold value; s12, if not, returning to the step S5.

Description

Method and system for verifying PXE (PCI extensions for instrumentation) functional stability of network card
Technical Field
The invention belongs to the field of server testing, and particularly relates to a method and a system for verifying PXE function stability of a network card.
Background
PXE (Pre _ boot Execution Environment) is a protocol designed by Intel that enables a computer to boot over a network. The protocol is divided into a client side client and a server side server, the PXE client is in the ROM of the network card, and when the computer is booted, the BIOS calls the PXE client into the memory for execution. At present, only PXE function of the network card is involved in the test, namely, each port is provided with one OS. However, the client encounters the problem that the probabilistic network card cannot go into the PXE, so that the client needs to enter the PXE environment for verifying the PXE function of the network card and the stability of the matching of the network card ROM and the BIOS in the test many times, and the current test case is still imperfect.
Therefore, it is very necessary to provide a method and a system for verifying the functional stability of the network card PXE to overcome the above-mentioned drawbacks in the prior art.
Disclosure of Invention
The present invention provides a method and a system for verifying PXE function stability of a network card, aiming at the defect that the client side has a probabilistic network card and cannot go into the PXE, so that the client side needs to enter the PXE environment for verifying PXE function of the network card and the stability of matching between the network card ROM and the BIOS in the test, and the current test case is not complete, so as to solve the technical problem.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for verifying PXE function stability of a network card comprises the following steps:
s1, configuring a PXE server side and putting a restart script;
s2, the host to be tested accesses the network card to be tested and opens the PXE function of the network card to be tested;
s3, accessing a network port to be tested of the network card to be tested into a network;
s4, setting a first starting item of the host to be tested as starting from the network card to be tested;
s5, restarting the host to be tested;
s6, judging whether the host to be tested is started from the network card to be tested or not;
s7, if yes, starting the host to be tested from the network card to be tested to enter a PXE environment;
s8, automatically downloading a restart script from the PXE server side by the network card to be tested;
s9, running a restart script by the host to be tested;
s10, judging whether the host to be tested is restarted or not;
s11, if yes, judging whether the restart frequency of the host to be tested reaches a set threshold value;
s12, if not, returning to the step S5. In step S1, the restart script is set as the first item for starting the PXE server; in step S8, the program in the network card ROM to be tested automatically downloads the restart script from the PXE server.
Further, before step S5, the method further includes the following steps:
and S5A, setting a PXE server to be communicated with a host ping to be tested. And the network communication is ensured, so that the host to be tested can be started from the remote server PXE.
Further, in step S4, the first boot entry of the host under test is set in the BIOS of the host under test to be booted from the network card under test.
Further, in step S7, if the host under test is not started from the network card under test, the process returns to step S4. Resetting the network card to be tested and starting.
Further, in step S11, if the host to be tested is not restarted, the test fails, and the test failure result is recorded in the test log.
Further, the test failure result includes a total test duration, a restart time and a restart time each time. And the test failure result is used for analyzing the test failure reason.
Further, in step S12, if the number of times of restarting the host to be tested reaches the set threshold, the test is passed, and the test pass result is recorded in the test log.
Further, the test passing result includes a total duration of the test time, a number of restart times, and each restart time.
The invention also provides the following technical scheme:
a system for verifying the functional stability of a PXE network card comprises the following components:
the restart script configuration module is used for configuring a PXE server side to put in a restart script;
the PXE function starting module of the network card to be tested is used for accessing the host to be tested into the network card to be tested and starting the PXE function of the network card to be tested;
the network card network connection module to be tested is used for accessing the network port to be tested of the network card to be tested into a network;
the host startup item setting module is used for setting a first startup item of the host to be tested as starting from the network card to be tested;
the host computer to be tested restarts the module, is used for restarting the host computer to be tested;
the host computer to be tested starts the item judging module, is used for judging whether the host computer to be tested starts from the network card to be tested;
the restarting script downloading module is used for starting the host to be tested from the network card to be tested into a PXE environment when the host to be tested is started from the network card to be tested, and downloading the restarting script from the PXE server side through the network card to be tested;
the restart script running module is used for running a restart script through the host to be tested;
the host computer to be tested restarts the judging module, is used for judging whether the host computer to be tested restarts;
and the host computer to be tested restarts the number judging module, and is used for judging whether the number of times of restarting reaches a set threshold value or not after the test host computer is restarted.
Further, the device further comprises a network communication setting module for setting the ping communication between the PXE server and the host to be tested.
The invention has the beneficial effects that:
the invention realizes the automatic verification of the PXE function of the network card of the host to be tested and the stability of the configuration of the ROM and the BIOS of the network card, perfects the test case, does not need to increase the labor cost and has high test efficiency.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
FIG. 1 is a flow chart of a method of the present invention;
FIG. 2 is a schematic diagram of the system of the present invention;
1-restarting a script configuration module; 2-a PXE function starting module of the network card to be tested; 3-network card network connection module to be tested; 4-a host startup item setting module to be tested; 5-restarting the module of the host to be tested; 6-judging module of startup item of host computer to be tested; 7-restarting the script downloading module; 8-restarting the script running module; 9-the host computer to be tested restarts the judging module; and 10, a restarting frequency judging module of the host to be tested.
The specific implementation mode is as follows:
in order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Example 1:
as shown in fig. 1, the present invention provides a method for verifying PXE function stability of a network card, comprising the following steps:
s1, configuring a PXE server side and putting a restart script;
s2, the host to be tested accesses the network card to be tested and opens the PXE function of the network card to be tested;
s3, accessing a network port to be tested of the network card to be tested into a network;
s4, setting a first starting item of the host to be tested as starting from the network card to be tested;
S5A, setting a PXE server to be communicated with a host to be tested ping;
s5, restarting the host to be tested;
s6, judging whether the host to be tested is started from the network card to be tested or not;
s7, if yes, starting the host to be tested from the network card to be tested to enter a PXE environment;
if not, returning to the step S4;
s8, automatically downloading a restart script from the PXE server side by the network card to be tested;
s9, running a restart script by the host to be tested;
s10, judging whether the host to be tested is restarted or not;
s11, if not, the test fails, recording a test failure result to a test log, and ending the test; the test failure result comprises the total test duration, the restart times and each restart time;
if yes, judging whether the restart times of the host to be tested reach a set threshold value;
s12, if not, returning to the step S5;
if so, the test is passed, the test passing result is recorded to a test log, and the test is finished; the test passing result comprises the total duration of the test time, the restart times and each restart time.
In the foregoing embodiment 1, step S4 sets the first boot entry of the host to be tested in the BIOS of the host to be tested as being booted from the network card to be tested.
Example 2:
as shown in fig. 2, the present invention provides a system for verifying PXE function stability of a network card, including:
the restarting script configuration module 1 is used for configuring a PXE server side to put in a restarting script;
the PXE function starting module 2 of the network card to be tested is used for accessing the host to be tested into the network card to be tested and starting the PXE function of the network card to be tested;
the network card network connection module 3 to be tested is used for accessing the network port to be tested of the network card to be tested into the network;
the host startup item setting module 4 is used for setting the first startup item of the host to be tested as the startup from the network card to be tested;
the host computer to be tested restarts the module 5, is used for restarting the host computer to be tested;
the host computer to be tested starts the item judging module 6, is used for judging whether the host computer to be tested starts from the network card to be tested;
the restarting script downloading module 7 is used for starting the host to be tested from the network card to be tested into the PXE environment when the host to be tested is started from the network card to be tested, and downloading the restarting script from the PXE server side through the network card to be tested;
the restart script running module 8 is used for running a restart script through the host to be tested;
the host to be tested restarts the judging module 9, is used for judging whether the host to be tested restarts;
the host computer to be tested restarts the number of times judging module 10, is used for judging whether the number of times of restarting reaches the set threshold value after the test host computer restarts;
and the network communication setting module 11 is used for setting the ping communication between the PXE server and the host to be tested.
The embodiments of the present invention are illustrative rather than restrictive, and the above-mentioned embodiments are only provided to help understanding of the present invention, so that the present invention is not limited to the embodiments described in the detailed description, and other embodiments derived from the technical solutions of the present invention by those skilled in the art also belong to the protection scope of the present invention.

Claims (10)

1. A method for verifying PXE function stability of a network card is characterized by comprising the following steps:
s1, configuring a PXE server side and putting a restart script;
s2, the host to be tested accesses the network card to be tested and opens the PXE function of the network card to be tested;
s3, accessing a network port to be tested of the network card to be tested into a network;
s4, setting a first starting item of the host to be tested as starting from the network card to be tested;
s5, restarting the host to be tested;
s6, judging whether the host to be tested is started from the network card to be tested or not;
s7, if yes, starting the host to be tested from the network card to be tested to enter a PXE environment;
s8, automatically downloading a restart script from the PXE server side by the network card to be tested;
s9, running a restart script by the host to be tested;
s10, judging whether the host to be tested is restarted or not;
s11, if yes, judging whether the restart frequency of the host to be tested reaches a set threshold value;
s12, if not, returning to the step S5.
2. The method for verifying the functional stability of the network card PXE as claimed in claim 1, wherein before the step S5, the method further includes the following steps:
and S5A, setting a PXE server to be communicated with a host ping to be tested.
3. The method as claimed in claim 1, wherein in step S4, the first boot entry of the host under test is set in the BIOS of the host under test as being booted from the network card under test.
4. The method as claimed in claim 1, wherein in step S7, if the host under test is not started from the network card under test, the method returns to step S4.
5. The method as claimed in claim 1, wherein in step S11, if the host to be tested is not restarted, the test fails, and the test failure result is recorded in the test log.
6. The method as claimed in claim 5, wherein the test failure result includes a total test duration, a restart time and a restart time each time.
7. The method as claimed in claim 1, wherein in step S12, if the number of rebooting times of the host to be tested reaches a set threshold, the test is passed, and the test pass result is recorded in the test log.
8. The method as claimed in claim 6, wherein the test passing result includes a total test time duration, a restart time number and each restart time.
9. A system for verifying PXE function stability of a network card is characterized by comprising the following steps:
the device comprises a restart script configuration module (1) for configuring a PXE server to put in a restart script;
the PXE function starting module (2) of the network card to be tested is used for accessing the host to be tested into the network card to be tested and starting the PXE function of the network card to be tested;
the network card network connection module (3) to be tested is used for accessing the network port to be tested of the network card to be tested into a network;
the host startup item setting module (4) is used for setting the first startup item of the host to be tested as the startup from the network card to be tested;
the host computer to be tested restarts the module (5), is used for restarting the host computer to be tested;
the host computer to be tested starts the item judging module (6), is used for judging the host computer to be tested starts from the network card to be tested;
the restarting script downloading module (7) is used for starting the host to be tested from the network card to be tested into a PXE environment when the host to be tested is started from the network card to be tested, and downloading the restarting script from the PXE server side through the network card to be tested;
the restart script running module (8) is used for running a restart script through the host to be tested;
the host computer to be tested restarts the judging module (9), is used for judging whether the host computer to be tested restarts;
and the host computer to be tested restarts the frequency judging module (10), and is used for judging whether the restart frequency reaches a set threshold value after the test host computer restarts.
10. The system for verifying the functional stability of the network card PXE as recited in claim 9, further comprising a network connectivity setting module (11) for setting the PXE server to ping with a host to be tested.
CN201811535602.1A 2018-12-14 2018-12-14 Method and system for verifying PXE (PCI extensions for instrumentation) functional stability of network card Active CN109698772B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811535602.1A CN109698772B (en) 2018-12-14 2018-12-14 Method and system for verifying PXE (PCI extensions for instrumentation) functional stability of network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811535602.1A CN109698772B (en) 2018-12-14 2018-12-14 Method and system for verifying PXE (PCI extensions for instrumentation) functional stability of network card

Publications (2)

Publication Number Publication Date
CN109698772A CN109698772A (en) 2019-04-30
CN109698772B true CN109698772B (en) 2021-12-28

Family

ID=66231638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811535602.1A Active CN109698772B (en) 2018-12-14 2018-12-14 Method and system for verifying PXE (PCI extensions for instrumentation) functional stability of network card

Country Status (1)

Country Link
CN (1) CN109698772B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213126A (en) * 2019-05-24 2019-09-06 苏州浪潮智能科技有限公司 A kind of method and device that automatic detection network link CRC reports an error
CN113517996B (en) * 2021-03-26 2024-03-26 山东英信计算机技术有限公司 Network card equipment polling method, system and related device
CN113411212B (en) * 2021-06-16 2023-02-03 英业达科技有限公司 BIOS control system of intelligent network card and BIOS control method of intelligent network card
CN113868128B (en) * 2021-09-18 2024-05-28 苏州浪潮智能科技有限公司 Method and device for testing PXE (PCI express) guide function and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055539A (en) * 2006-04-12 2007-10-17 鸿富锦精密工业(深圳)有限公司 Computer test system and method
TW201217963A (en) * 2010-10-28 2012-05-01 Hon Hai Prec Ind Co Ltd Device and method for testing a PXE function of a network card
CN104935468A (en) * 2015-06-24 2015-09-23 宋敏 PXE technology-based interactive system and method for realizing operation of operating system thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457405A (en) * 2010-10-26 2012-05-16 鸿富锦精密工业(深圳)有限公司 PXE (Pre-boot Execution Environment) test device and PXE test method
CN103593281B (en) * 2012-08-15 2016-06-15 纬创资通股份有限公司 Test macro and method of testing
CN106326051A (en) * 2016-08-22 2017-01-11 浪潮电子信息产业股份有限公司 Method for realizing automatic OS switching in PXE test environment
CN107688532A (en) * 2017-07-12 2018-02-13 郑州云海信息技术有限公司 Realize method, system and secondary server that Linux to Dos test platforms automatically switch
CN108920307A (en) * 2018-07-10 2018-11-30 郑州云海信息技术有限公司 Server Restart test method, device, equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055539A (en) * 2006-04-12 2007-10-17 鸿富锦精密工业(深圳)有限公司 Computer test system and method
TW201217963A (en) * 2010-10-28 2012-05-01 Hon Hai Prec Ind Co Ltd Device and method for testing a PXE function of a network card
CN104935468A (en) * 2015-06-24 2015-09-23 宋敏 PXE technology-based interactive system and method for realizing operation of operating system thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Li Jinhui ; Zhang Ke ; Zhang Fang.Network center"s highly-efficient management solutions based on intel PXE-based remote cloning system.《2011 3rd International Conference on Advanced Computer Control》.2011, *
基于PXE的软件自动化测试系统的设计和实现;郭文涛;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20170515;全文 *

Also Published As

Publication number Publication date
CN109698772A (en) 2019-04-30

Similar Documents

Publication Publication Date Title
CN109698772B (en) Method and system for verifying PXE (PCI extensions for instrumentation) functional stability of network card
CN109510742B (en) Server network card remote test method, device, terminal and storage medium
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
CN106919485B (en) System based on hardware testing tool configured on server
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
CN110554938B (en) BIOS (basic input output System) testing method, system, terminal and storage medium based on script set
CN111104321A (en) Docker-based cloud platform stability testing method and system
CN113312064A (en) Installation configuration method and device of physical machine and computer readable medium
CN113434202A (en) Starting method and device of equipment, electronic equipment and computer storage medium
CN113867814A (en) Method and device for realizing multi-type restarting of server based on UEFI (unified extensible firmware interface)
CN109446101B (en) Automatic testing method and device for restarting BMC based on ipmi instruction
CN114024853A (en) Hardware information collection method and system for bare metal node and related components
CN112099902A (en) Network adapter configuration method and device of virtual machine, electronic device and storage medium
CN105426304B (en) A kind of control method and device for restarting test
CN116302738A (en) Method, system, equipment and storage medium for testing chip
CN109783288A (en) It is a kind of to automate the method and system for restarting reset test server stability
CN115016801A (en) Test environment deployment method, system, terminal and storage medium in complex system
CN113805953A (en) UEFI environment deployment implementation method and device, computer equipment and storage medium
CN114461458A (en) Server memory test method, system, terminal and storage medium
CN109450682B (en) IB network card communication configuration method and device, terminal and storage medium
CN114090329A (en) Server restarting method under full-unloading architecture and related equipment
CN112527327A (en) Method, system, terminal and storage medium for factory restoration of UOS operating system
CN112948160B (en) Method and device for positioning and repairing memory ECC problem
CN107391235B (en) Operation method and operation device of multi-service system
CN110581786A (en) Method, device, system and medium for testing communication stability of NCSI (network communication service) network

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