CN109783296A - A kind of method of automatic verifying network interface card WOL functional stabilization - Google Patents
A kind of method of automatic verifying network interface card WOL functional stabilization Download PDFInfo
- Publication number
- CN109783296A CN109783296A CN201910011138.4A CN201910011138A CN109783296A CN 109783296 A CN109783296 A CN 109783296A CN 201910011138 A CN201910011138 A CN 201910011138A CN 109783296 A CN109783296 A CN 109783296A
- Authority
- CN
- China
- Prior art keywords
- host
- measured
- wol
- network interface
- card
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000006641 stabilisation Effects 0.000 title claims abstract description 23
- 238000011105 stabilization Methods 0.000 title claims abstract description 23
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000012360 testing method Methods 0.000 claims abstract description 23
- 238000009434 installation Methods 0.000 claims description 3
- 238000011990 functional testing Methods 0.000 abstract description 4
- 238000013112 stability test Methods 0.000 description 3
- 230000002618 waking effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000037007 arousal Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of method of automatic verifying network interface card WOL functional stabilization, includes the following steps: that host to be measured is connect with control host;Host to be measured opens the WOL function of network interface card;Host shutdown to be measured, control host send wakeup packet to host network card to be measured;After host to be measured is waken up, the step of constantly repeating above-mentioned shutdown and send wakeup packet;Verify host WOL functional stabilization to be measured.The present invention realizes the automatic test of host network card WOL stability to be measured, and the perfect type of network interface card functional test further improves the product quality of server, meanwhile, automatic test does not increase human cost, and test is easy, high-efficient.
Description
Technical field
The invention belongs to server testing fields, and in particular to a method of automatic verifying network interface card WOL functional stabilization.
Background technique
WOL, is the abbreviation of Wake on Lan, and the WOL of network interface card is Wake on LAN power up function.
The WOL of network interface card needs mainboard to provide the support of Wake on LAN software and hardware, has pertained only to network interface card in test at present
WOL functional test, i.e., a time arousal function of each mouthful verifying, but be the absence of the test to this functional stabilization.
This is the deficiencies in the prior art, therefore, in view of the above-mentioned drawbacks in the prior art, provides a kind of automatic verifying network interface card
The method of WOL functional stabilization, is necessary.
Summary of the invention
It is an object of the present invention to lack the defect of stability test for above-mentioned existing network interface card WOL functional test, mention
For a kind of method of automatic verifying network interface card WOL functional stabilization, to solve the above technical problems.
To achieve the above object, the present invention provides following technical scheme:
A kind of method of automatic verifying network interface card WOL functional stabilization, includes the following steps:
Host to be measured is connect with control host;
Host to be measured opens the WOL function of network interface card;
Host shutdown to be measured, control host send wakeup packet to host network card to be measured;
After host to be measured is waken up, the step of constantly repeating above-mentioned shutdown and send wakeup packet;
Verify host WOL functional stabilization to be measured.
Further, the specific steps are as follows:
S1. host to be measured and control host pass through network connection;
S2. host to be measured opens the WOL function of network interface card;
S3. all network interfaces that WOL function is supported in host network card to be measured are obtained;
S4. the configuration of control host tests environment and sets wakeup cycle number;
S5. host to be measured shuts down automatically;
S6. control host supports the current network interface of WOL function to send wakeup packet from trend host network card to be measured;
S7. control host continues the current network interface of ping host network card to be measured, and records the logical rear host system to be measured of ping for the first time
Time is set as at the first time;
S8. judge whether wake-up times reach setting wakeup cycle number;
S9. if so, judging whether to support all network interfaces of WOL function to be all completed in host network card to be measured;
S10. if it is not, then setting the network interface of next support WOL function in host network card to be measured as current network interface;
S11. the host system time to be measured is extracted after control host interval time section, was set as the second time;
S12. judge whether the difference of the second time and first time are greater than set period of time;
S13. if it is not, then return step S5.
Further, in step S6, the wakeup packet is generated according to Magic Packet standard.Open host to be measured
While network interface card WOL function, Magic Packet starting is selected, control host sends the wake-up data of Magic Packet standard
Packet can wake up host to be measured, and the wakeup packet format of Magic Packet standard is, first comprising six FF, followed by again
Multiple 16 MAC Address wait wake up host to be measured.
Further, the MAC Address that all network interfaces of WOL function are supported in host network card to be measured and every is obtained in step S3
IP address of a network interface in network system.Control host sends wakeup packet to host to be measured and needs to know host net to be measured
Block the MAC Address and IP address of current network interface.
Further, network interface pair of the host from a support WOL function in trend host network card to be measured is controlled in step S6
The MAC Address answered sends wakeup packet.The wakeup packet of Magic Packet standard needs the current of host network card to be measured
The MAC Address of network interface.
Further, in step S7, control host continues the IP address of the current network interface of ping host network card to be measured.Control
Host ping host to be measured needs the IP address of host to be measured.
Further, in step S4, control host configuration test environment includes installation linux system.Test environment exists
It is completed under linux operating system.
Further, in step S9, if wake-up times not up to set wakeup cycle number, wake-up times add 1, enter
Step S11.
Further, in step S10, if supporting all network interfaces of WOL function to be all completed in host network card to be measured,
Test terminates, and exports PASS.In test process, do not occur waking up time-out, then network interface card WOL stability test passes through.
Further, in step S13, if the difference of the second time and first time are greater than set period of time, knot is tested
Beam exports FAIL.If in test process, a certain network interface of host network interface card to be measured to be measured occurs waking up super in certain primary wake-up
When, then network interface card WOL stability test fails.
Further, setting wakeup cycle number described in step S8 is set as 500 times.Setting wakeup cycle number needs energy
The each network interface WOL stability of network interface card to be measured is embodied, is generally taken 500 times.
Further, the section of interval time described in step S11 is 2 minutes.Interval time section will be far smaller than host to be measured
Available machine time.
Further, set period of time is 10 minutes in step S12.The selection of set period of time is opened according to host to be measured
The machine time carries out, and set period of time is larger than the available machine time of host to be measured.
The beneficial effects of the present invention are:
The present invention realizes the automatic test of host network card WOL stability to be measured, the perfect type of network interface card functional test, into one
Step improves the product quality of server, meanwhile, automatic test does not increase human cost, and test is easy, high-efficient.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress
Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is flow chart of the method for the present invention.
Specific embodiment:
To enable the purpose of the present invention, feature, advantage more obvious and understandable, it is embodied below in conjunction with the present invention
Attached drawing in example, is clearly and completely described the technical solution in the present invention.
Embodiment 1:
The present invention provides a kind of method of automatic verifying network interface card WOL functional stabilization, includes the following steps:
Host to be measured is connect with control host;
Host to be measured opens the WOL function of network interface card;
Host shutdown to be measured, control host send wakeup packet to host network card to be measured;
After host to be measured is waken up, the step of constantly repeating above-mentioned shutdown and send wakeup packet;
Verify host WOL functional stabilization to be measured;
As shown in Figure 1, the specific steps are as follows:
S1. host to be measured and control host pass through network connection;
S2. host to be measured opens the WOL function of network interface card;
S3. all network interfaces that WOL function is supported in host network card to be measured are obtained;
S4. the configuration of control host tests environment and sets wakeup cycle number;Controlling host configuration test environment includes installation
Linux system;
S5. host to be measured shuts down automatically;
S6. control host supports the current network interface of WOL function to send wakeup packet from trend host network card to be measured;It is described to call out
Data packet of waking up is generated according to Magic Packet standard;
S7. control host continues the current network interface of ping host network card to be measured, and records the logical rear host system to be measured of ping for the first time
Time is set as at the first time;
S8. judge whether wake-up times reach setting wakeup cycle number;
S9. if so, judging whether to support all network interfaces of WOL function to be all completed in host network card to be measured;
If it is not, then wake-up times add 1, S11 is entered step;
S10. if it is not, then setting the network interface of next support WOL function in host network card to be measured as current network interface;
If so, test terminates, PASS is exported;
S11. the host system time to be measured is extracted after control host interval time section, was set as the second time;
S12. judge whether the difference of the second time and first time are greater than set period of time;
S13. if it is not, then return step S5;
If so, test terminates, FAIL is exported.
In above-described embodiment 1, the MAC that all network interfaces of WOL function are supported in host network card to be measured is obtained in step S3
The IP address of location and each network interface in network system;
The corresponding MAC Address hair of the network interface for controlling host from a support WOL function in trend host network card to be measured in step S6
Send wakeup packet.
In step S7, control host continues the IP address of the current network interface of ping host network card to be measured.
The embodiment of the present invention be it is illustrative and not restrictive, above-described embodiment be only to aid in understanding the present invention, because
The present invention is not limited to the embodiments described in specific embodiment for this, all by those skilled in the art's technology according to the present invention
Other specific embodiments that scheme obtains, also belong to the scope of protection of the invention.
Claims (10)
1. a kind of method of automatic verifying network interface card WOL functional stabilization, which comprises the steps of:
Host to be measured is connect with control host;
Host to be measured opens the WOL function of network interface card;
Host shutdown to be measured, control host send wakeup packet to host network card to be measured;
After host to be measured is waken up, the step of constantly repeating above-mentioned shutdown and send wakeup packet;
Verify host WOL functional stabilization to be measured.
2. a kind of method of automatic verifying network interface card WOL functional stabilization as described in claim 1, which is characterized in that specific step
It is rapid as follows:
S1. host to be measured and control host pass through network connection;
S2. host to be measured opens the WOL function of network interface card;
S3. all network interfaces that WOL function is supported in host network card to be measured are obtained;
S4. the configuration of control host tests environment and sets wakeup cycle number;
S5. host to be measured shuts down automatically;
S6. control host supports the current network interface of WOL function to send wakeup packet from trend host network card to be measured;
S7. control host continues the current network interface of ping host network card to be measured, and records the logical rear host system to be measured of ping for the first time
Time is set as at the first time;
S8. judge whether wake-up times reach setting wakeup cycle number;
S9. if so, judging whether to support all network interfaces of WOL function to be all completed in host network card to be measured;
S10. if it is not, then setting the network interface of next support WOL function in host network card to be measured as current network interface;
S11. the host system time to be measured is extracted after control host interval time section, was set as the second time;
S12. judge whether the difference of the second time and first time are greater than set period of time;
S13. if it is not, then return step S5.
3. a kind of method of automatic verifying network interface card WOL functional stabilization as described in claim 1, which is characterized in that step S6
In, the wakeup packet is generated according to Magic Packet standard.
4. a kind of method of automatic verifying network interface card WOL functional stabilization as claimed in claim 2, which is characterized in that step S3
It is middle to obtain the IP that the MAC Address and each network interface of all network interfaces of WOL function are supported in host network card to be measured in network system
Address.
5. a kind of method of automatic verifying network interface card WOL functional stabilization as claimed in claim 4, which is characterized in that step S6
The corresponding MAC Address of network interface of middle control host from a support WOL function in trend host network card to be measured, which is sent, wakes up data
Packet.
6. a kind of method of automatic verifying network interface card WOL functional stabilization as claimed in claim 4, which is characterized in that
In step S7, control host continues the IP address of the current network interface of ping host network card to be measured.
7. a kind of method of automatic verifying network interface card WOL functional stabilization as claimed in claim 2, which is characterized in that step S4
In, control host configuration test environment includes installation linux system.
8. a kind of method of automatic verifying network interface card WOL functional stabilization as claimed in claim 2, which is characterized in that step S9
In, if wake-up times not up to set wakeup cycle number, wake-up times add 1, enter step S11.
9. a kind of method of automatic verifying network interface card WOL functional stabilization as claimed in claim 2, which is characterized in that step S10
In, if supporting all network interfaces of WOL function to be all completed in host network card to be measured, test terminates, and exports PASS.
10. a kind of method of automatic verifying network interface card WOL functional stabilization as claimed in claim 2, which is characterized in that step
In S13, if the difference of the second time and first time are greater than set period of time, test terminates, and exports FAIL.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910011138.4A CN109783296A (en) | 2019-01-07 | 2019-01-07 | A kind of method of automatic verifying network interface card WOL functional stabilization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910011138.4A CN109783296A (en) | 2019-01-07 | 2019-01-07 | A kind of method of automatic verifying network interface card WOL functional stabilization |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109783296A true CN109783296A (en) | 2019-05-21 |
Family
ID=66499147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910011138.4A Pending CN109783296A (en) | 2019-01-07 | 2019-01-07 | A kind of method of automatic verifying network interface card WOL functional stabilization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109783296A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431445A (en) * | 2007-11-08 | 2009-05-13 | 英业达股份有限公司 | Network awakening test system and method |
US20090158097A1 (en) * | 2007-12-17 | 2009-06-18 | Inventec Corporation | Wake on LAN (WOL) test system and method thereof |
US20120072742A1 (en) * | 2010-09-17 | 2012-03-22 | Hon Hai Precision Industry Co., Ltd. | System and method for testing wol funciton of computers |
CN104618452A (en) * | 2015-01-06 | 2015-05-13 | 北京卓越信通电子股份有限公司 | PIS (Passenger Information System) based remote wake-up method |
CN106933710A (en) * | 2017-02-19 | 2017-07-07 | 郑州云海信息技术有限公司 | The method of testing that DC is restarted is carried out to server based on WOL functions |
-
2019
- 2019-01-07 CN CN201910011138.4A patent/CN109783296A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431445A (en) * | 2007-11-08 | 2009-05-13 | 英业达股份有限公司 | Network awakening test system and method |
US20090158097A1 (en) * | 2007-12-17 | 2009-06-18 | Inventec Corporation | Wake on LAN (WOL) test system and method thereof |
US20120072742A1 (en) * | 2010-09-17 | 2012-03-22 | Hon Hai Precision Industry Co., Ltd. | System and method for testing wol funciton of computers |
CN104618452A (en) * | 2015-01-06 | 2015-05-13 | 北京卓越信通电子股份有限公司 | PIS (Passenger Information System) based remote wake-up method |
CN106933710A (en) * | 2017-02-19 | 2017-07-07 | 郑州云海信息技术有限公司 | The method of testing that DC is restarted is carried out to server based on WOL functions |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113014449B (en) | Local communication protocol pressure testing method and system of electricity consumption information acquisition system | |
CN103188277B (en) | load energy consumption management system, method and server | |
CN110034785A (en) | The method that power-off fault quickly positions is realized based on power line carrier communication | |
CN106059835B (en) | A kind of High-reliability Control method of low energy consumption computer set group node | |
CN104899120A (en) | Server stability test method based on BMC startup and shutdown functions | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
CN106908738A (en) | A kind of automatic testing method of SmartRack reserce cells | |
CN103701889A (en) | Data center energy saving method on basis of cloud computing | |
CN110111556A (en) | It is a kind of to realize that intelligent electric meter fills the autocontrol method and device adopted | |
CN101431443B (en) | Network awakening test system and method | |
CN107728065A (en) | Battery harvester and monitoring method | |
CN111697997A (en) | HPLC module rapid detection device and method based on copy controller | |
CN106528370A (en) | Virtual machine state monitoring realized in virtualized layer | |
CN109446009A (en) | A kind of server set is at test fixture, system and method | |
CN101877640A (en) | Power control system of server | |
CN114390374B (en) | Broadband micropower multi-network comprehensive test system of electricity consumption information acquisition system | |
CN105302680A (en) | Automated testing method of RACK AC (Alternating Current) stability | |
CN102402272B (en) | There is the electronic installation of network connecting function and be applied to the method for this electronic installation | |
CN105404569A (en) | Method for testing remote Power Reset of server | |
CN112637940B (en) | Low-power-consumption equipment dormancy keep-alive system and method | |
CN109783296A (en) | A kind of method of automatic verifying network interface card WOL functional stabilization | |
CN106776164B (en) | A kind of intelligent substation monitoring background host computer CPU engaged test method | |
CN101431445B (en) | Network awakening test system and method | |
CN112231122A (en) | APP management method based on heterogeneous communication model and oriented to terminal software platform | |
CN106909491A (en) | A kind of BIOS tunings framework and method for reducing server energy consumption |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190521 |