CN101431445B - Network awakening test system and method - Google Patents

Network awakening test system and method Download PDF

Info

Publication number
CN101431445B
CN101431445B CN2007101703019A CN200710170301A CN101431445B CN 101431445 B CN101431445 B CN 101431445B CN 2007101703019 A CN2007101703019 A CN 2007101703019A CN 200710170301 A CN200710170301 A CN 200710170301A CN 101431445 B CN101431445 B CN 101431445B
Authority
CN
China
Prior art keywords
wol
test
testing
tested
tested end
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.)
Expired - Fee Related
Application number
CN2007101703019A
Other languages
Chinese (zh)
Other versions
CN101431445A (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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN2007101703019A priority Critical patent/CN101431445B/en
Publication of CN101431445A publication Critical patent/CN101431445A/en
Application granted granted Critical
Publication of CN101431445B publication Critical patent/CN101431445B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

A test system and method for Wake on LAN implements the automated Wake on LAN test by a test module. The Wake on LAN test system are mainly composed of testing end, tested end under master-slave structure of ILO remote management operation platform possessing HP server, and domain.

Description

Network awakening test system and method thereof
Technical field
The present invention is a kind of WOL (Wake On LAN, WOL) test macro and method thereof are meant that especially the automated network under the client/server of a kind of ILO of being applied in (Integrated Lights-Out) telemanagement operating platform wakes the system and the method thereof of test up.
Background technology
Calling function of network (Wake On LAN at existing network card, WOL) in the test environment, computer operating system (Operation System, OS) QA Test Engineer is at calling function of network (the Wake On LAN of test network card, WOL) time, must test back and forth with being waken up between the end waking end up in mode manually.Its detailed process, at first, waking end up must have a computer that possesses DHCP server function, connects the hub (switch hub) with function of exchange, and WOL software (as AMD PowerMagic Utility) is installed again.And must enter with manual type among its RBSU (ROM-Based SetupUtility) or the OS being waken up end, copy down and be waken up the card number (MAC Address or MAC ID) of all-network card in the end computer, and will be waken up end and be connected to the net territory (Network Domain) of waking end up.When waking test up, enable sleep mode or power supply shutdown at the computer that is waken up end, carry out WOL software to the computer that wakes end up again, be waken up the MAC ID of end, and send Remote Wake Up packet (WOL Magic Packet) by WOL software with manual input.At last, check to being waken up end whether computer is waken up again.So program is just calculated and is finished the only single test of a network card, and if desire is tested all and is waken up the end network card, then must constantly repeat above-mentioned steps, all tests up to the all-network card to finish.
In addition, the project of test has also comprised: power knob triggers postboost WOL test, Unix﹠amp under the WOL test under the WOL test after the dormancy under the Windows OS, the WOL test behind the system closedown, the Windows OS after the power knob triggering dormancy, the Windows OS; The Unix-Like power knob triggers the WOL test under the different situations such as postboost WOL test.
With the present practice, must repeat the test of said process setting to a WOL test to a network card, repeat same action again and then test second network card, finish up to the test of all-network card, its action repeatability is high.And in test process and the operation, must consume a large amount of time some as artificial enquiry, copy the down tested MAC ID that is waken up end all-network card, again from waking up on the not omissible manual operation steps such as end input MAC ID and transmission WOL package.And adopt the manpower test, can produce some artificial careless mistake and mistakes unavoidably.And can't simplify the tester must be in waking end up and being waken up end back and forth affirmation time between the two.Therefore, still there are above-mentioned many shortcomings with the present practice.
Summary of the invention
The present invention proposes a kind of WOL (Wake On LAN, WOL) test macro and method thereof, be applicable to Windows operating system, Unix or (SuSE) Linux OS, formed by the testing end (Server) and the tested end (Client) of the client/server of Client/Server.By module the MAC ID of tested end all-network card is sent to the testing end, and by module from the MAC ID inventory that the testing end was collected, automatically extract the MAC ID of tested end, automatically MAC ID is contained in the wakeup packet (WOL MagicPacket) again, transmit again wakeup packet to tested end to carry out WOL (WOL).
This network awakening test system comprises a net territory (Network Domain); One testing end, the servo driver end in this net territory has a WOL test module, and this WOL test module provides an operation interface to test configuration for setting one, and sends a wakeup packet (Magic Packet) according to this test configuration; At least one tested end, be the client in this net territory, has a WOL module, this WOL module provides the network card card number (MAC ID) that grasps this tested end and is uploaded to this testing end, and should tested end WOL (WOL) when this receives this wakeup packet when the WOL module; And an ILO remote management platform, refer to the telemanagement technology platform that ILO (Integrated Lights-Out) the telemanagement chip of this testing end is provided, for the state of direct this tested end of remote inquiry of this testing end, and this tested end of remote operation.
The present invention is directed to the ILO inside server platform of HP server, by communication by the remote management platform of ILO telemanagement technology, obtain the switching on and shutting down situation of test target in the automatic operating process of module accurately, promptly after sending " shutdown (Shutdown) " or " dormancy (Hibernate) " instruction, can learn the state of tested end computer by the inquiry of ILO, and whether this instruction is executed correctly.Therefore, after network awakening test system of the present invention is sent the WOL packet, can learn at once whether tested end computer starts shooting.If after the WOL packet transmits failure, can transmit again automatically at once, the same fast with the error exception reaction time in the artificial test, the time of also removing artificial input from simultaneously.But if the WOL packet transmits under the situation about repeatedly all fail, can directly send " PowerOn " packet, allow the board start test to carry out the next one stage by ILO to tested end computer, needn't so and interrupt test.
Module operation interface by WOL of the present invention (WOL) test macro, set the test configuration of automation, with aforementioned loaded down with trivial details assignment procedure, in module, transmit information (System Message Post) or incident (EventPost) by API API (ApplicationProgram Interface) or to system, automatically the computer of tested end is finished the action of environment variable settings such as " enabling dormancy ", " system closedown ", the action that all are loaded down with trivial details is simplified.Simultaneously, WOL of the present invention (WOL) method of testing is in proper order mode, to the all-network card, selection at the Test Engineer, do whole automatic test, from the environment variable settings to the system closedown or dormancy, MAC ID input, the transmission of WOL packet encapsulation, WOL wake up, continue test to the switch target network card, all change automation into.Improve in the past the WOL test and can only rely on manpower fully, therefore can save many test manpowers in time between.Moreover, WOL test module operation interface of the present invention, the data form that more test result can be output into the HTML shelves is for examination afterwards.Adopt the HTML shelves result can be represented in the mode of emphasizing, with redness, success shows test results with different colours with blueness demonstration etc., makes test result be convenient to inquiry as: failure.
Therefore, by WOL of the present invention (WOL) test macro, with artificial enquiry, save the time loss of query actions in the time of can replacing the test of employing manpower, simultaneously can avoid the careless mistake in the manual operation in the traditional method, reduce human error to improve the overall efficiency of WOL (WOL) test.Moreover, by WOL of the present invention (WOL) method of testing, with the setting of in proper order mode according to the Test Engineer, the all-network card is done whole automatic test, wake up from environment variable settings, system closedown or dormancy, MAC ID input, the transmission of WOL packet encapsulation, WOL, continue test to the switch target network card, all change automation into.With software approach provided by the present invention, total testing time only needed 30~50 minutes even still less, and compared to the summation testing time of conventional practice nearly approximately 1~1.5 hour, its time improved efficiency was about 40~50%, and automatic test more promotes overall efficiency.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
For above-mentioned and other purposes of the present invention, feature, advantage and embodiment can be become apparent, being described in detail as follows of appended accompanying drawing:
Fig. 1 is the calcspar of WOL of the present invention (WOL) test macro;
Fig. 2 A is the flow chart of steps of WOL of the present invention (WOL) method of testing;
Fig. 2 B is the thin flow process A of portion of WOL of the present invention (WOL) method of testing;
Fig. 3 is the schematic diagram of WOL of the present invention (WOL) test module operation interface.
Wherein, Reference numeral
100: the testing end
110: the WOL test module
120: WOL test module operation interface
121:MAC ID tabulation
122: the tabulation of test configuration
123: the test process instant messages
124: the test function option
1241: shutdown/startup snooze option
1242: shutdown test option
1243: the power initiation snooze option
1244: dormancy and recovery option
1245: the power supply shutdown options
1246: and the machine open/close looping options
125: the test event tabulation
126: running test time
127: test job at present
The 130:ILO platform
200~20n: tested end
2001~20n1: WOL module
2002~20n2: network card
300: the net territory
400~460: method step
Embodiment
The present invention is a kind of WOL (WOL) test macro and method thereof, the main telemanagement operating platform that utilizes with ILO (Integrated Lights-Out) technology, the system that forms with the testing end (Server) of the client/server of Client/Server and tested end (Client), by a WOL test module tested end is carried out the WOL test, and learn the situation of WOL immediately by the ILO telemanagement, and realize that automation WOL wakes the purpose of test up.The preferred embodiment of below using the inventive method technology describes the steps flow chart of the inventive method in detail.
At first, please cooperate earlier, be the calcspar of WOL of the present invention (WOL) test macro with reference to Fig. 1.Network awakening test system proposed by the invention mainly is used in the testing end 100 of the telemanagement operating platform with ILO technology, tested end 200~20n, reaches the system that net territory 300 is formed.Tested end 200~20n has WOL module 2001~20n1 and network card 2002~20n2 respectively.WOL module 2001~20n1 receives WOL packet (WOL Magic Packet) and with tested end 200~20n computer wake-up, has to provide and grasp this network card card number (MAC ID) and transmit the function of network card card number to uplink data information such as testing ends 100.Testing end 100 comprises a WOL test module 110, a WOL test module operation interface 120 at least, reaches an ILO platform 130.Wherein, ILO platform 130 fingers make the server of testing end 100 connect network card 2002~20n2 and the computer of the tested end 200 of remote operation by network connectivity by the telemanagement technology platform that built-in ILO (Integrated Lights-Out) the telemanagement chip of the HP server of Hewlett-Packard Development Company company is provided.And WOL test module operation interface 120 is the operation interface of WOL test module 110.Following conjunction with figs. describes the function that WOL test module operation interface 120 is provided in detail.
Referring to Fig. 3, be the schematic diagram of WOL of the present invention (WOL) test module operation interface.This WOL module operation interface 120, the test configuration that provides the user to set this tested end 200 at least one.As shown in the figure, functions such as the MAC of providing ID tabulation 121, test configuration tabulation 122, test process instant messages 123, test function option one 24 and test event tabulation 125, running test time 126, test job 127 at present are provided this interface 120 at least.Wherein, MAC ID tabulation 121 shows the card number (MAC ID) of the network card 2002~20n2 of the tested end 200 that testing end 100 was collected.Test configuration tabulation 122 provides the test configuration of setting this tested end 200 at least one, comprises that buffer time as system handles buffer time, a resume module information, wakeup packet transmission wake number of success, up and wake the frequency of failure etc. up blanking time, one.Test process instant messages 123 is test stroke, the result who produces with html format immediately in test process.Test function option one 24 comprises shutdown/startup dormancy (Shutdown/Hibernate) option one 241, shutdown test (Shutdown test) option one 242, power initiation dormancy (Power Hibernate) option one 243, dormancy and recovery (Hibernate﹠amp at least for providing; Resume) combination in any of projects such as option one 244, power supply shutdown (Power Shutdown) option one 245 and machine open/close circulation (Power cycle) option one 246.And test event tabulation 125 is for providing all test function of batch demonstration to this tested end 200.Running test time 126 can show the total time that test is experienced.Test job 127 at present can show the test job of the tested end 200 that is carried out at present.
Then, cooperate, be the flow chart of steps of WOL of the present invention (WOL) method of testing with reference to Fig. 2 A.Shown in Fig. 2 A, utilize the testing end 100 and tested end 200 of WOL proposed by the invention (WOL) test macro at the client/server of Client/Server.At first, the WOL test module 110 of testing end 100 is collected the card number (step 400) of a network card 2001 of at least one tested end 200.Then, set a test configuration (step 410) by WOL test module operation interface 120.Can carry out the WOL test then, send a wakeup packet (Magic Packet) to this tested end 200 (step 420) according to this test configuration.To be sent go out wakeup packet after, whether this testing end 100 by this tested end 200 of ILO platform detecting start shooting (step 430).If detect this tested end 200 and successfully start shooting, promptly represent the WOL success in step 430, therefore then whether this tested end 200 of judgement has reached and has waken number of success (step 440) up; But if this tested end 200 start shooting yet in step 430, promptly represent WOL failure, therefore follow this tested end 200 of judgement and whether reached and wake the frequency of failure (step 450) up.In abovementioned steps 440,, then then judge whether to finish the WOL test (step 460) of all tested ends 200 again if tested end 200 has reached and waken number of success up; But, then get back to step 420 and proceed retest if tested end 200 does not reach and wakes number of success up.And in abovementioned steps 450, if tested end 200 does not reach and wakes the frequency of failure up, then getting back to step 420 continues retest again; But if tested end 200 has reached and has waken the frequency of failure up, then write down the information (step 451) of this time WOL failure, and this testing end 100 by ILO platform 130 directly should be tested end 200 starts (step 452), and abandon WOL test to this this tested end 200, be routed to step 460 then.At last, in above-mentioned steps 460,, then get back to the WOL test that step 420 is proceeded next this tested end 200 if do not finish this WOL test of all these tested ends 200 as yet; But if the test of all these tested ends 200, then process ends have been finished.
Wherein, abovementioned steps 400 more comprises a thin flow process A of portion, and next conjunction with figs. is described further as follows.Referring to Fig. 2 B, collect the thin flow process A of portion of network card card number for WOL of the present invention (WOL) method of testing.At first, carry out a WOL module 2001 (step 401) at a tested end 200.When this module was carried out, WOL module 2001 grasped the card number (MACID) (step 402) of the network card 2002 of this tested end 200.Then, this WOL module 2001 links to a testing end 100 and this network card card number is back to this testing end 100 (step 403).After the pending step 403, this testing end 100 has promptly been collected the network card card number (MAC ID) of all these tested ends 200.After so finishing the step of the thin flow process A of portion, get final product subsequent steps 410, set a test configuration by WOL test module operation interface 120.
Whereby, in mode in proper order all-network card in the net territory is done whole automatic test.From the environment variable settings to the system closedown or dormancy, MAC ID input, the encapsulation of WOL package are transmitted, WOL wakes the switch target network card up again and continues test, all can change the purpose of automatic test into.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (10)

1. a network awakening test system is characterized in that, comprises at least:
One net territory;
One testing end, the servo driver end in this net territory has a WOL test module, and this WOL test module provides an operation interface to test configuration for setting one, and sends a wakeup packet according to this test configuration;
At least one tested end, be the client in this net territory, have a WOL module, this WOL module provides the network card card number that grasps this tested end and is uploaded to this testing end, and should tested end WOL when this WOL module receives this wakeup packet; And
One remote management platform refers to the telemanagement technology platform that the telemanagement chip of this testing end is provided, for the state of direct this tested end of remote inquiry of this testing end, and this tested end of remote operation.
2. network awakening test system according to claim 1 is characterized in that, this wakeup packet is anyly to comprise the data of desiring by this network card card number of the computer of WOL in network communication agreement.
3. network awakening test system according to claim 1, it is characterized in that this operation interface of this WOL test module comprises network card card number tabulation, a test configuration tabulation, a test process instant messages, a test function option and test event tabulation at least.
4. a WOL method of testing is characterized in that, comprises step at least:
One WOL test module of one testing end is collected a network card card number of at least one tested end;
Set a test configuration by an operation interface of this WOL test module;
Send a wakeup packet to this tested end according to this test configuration;
Whether this testing end starts shooting by this tested end of remote management platform inquiry;
Judge whether this tested end has reached and wake number of success up; And
Judge whether to finish the WOL test of all these tested ends.
5. WOL method of testing according to claim 4 is characterized in that, judge whether to finish all these tested ends the WOL test step if judged result for not, then this testing end WOL of proceeding next this tested end is tested.
6. WOL method of testing according to claim 4 is characterized in that, judges that whether this tested end has reached the judged result of waking number of success up is not, and then this testing end sends another this wakeup packet to this tested end according to this test configuration.
7. WOL method of testing according to claim 4 is characterized in that, this testing end is inquired about judged result that whether this tested end start shooting for not by a remote management platform, further comprises step again:
Judge whether this tested end has reached and wake the frequency of failure up;
If this tested end has reached this and waken the frequency of failure up, then write down the information of this time WOL failure; And
This testing end directly should tested end start by this remote management platform.
8. WOL method of testing according to claim 4 is characterized in that, the telemanagement technology platform that provided by the telemanagement chip is provided this remote management platform.
9. WOL method of testing according to claim 4 is characterized in that, this wakeup packet is anyly to comprise the data of desiring by this network card card number of the computer of WOL in network communication agreement.
10. WOL method of testing according to claim 4, it is characterized in that this operation interface of this WOL test module comprises network card card number tabulation, a test configuration tabulation, a test process instant messages, a test function option at least, reaches test event tabulation.
CN2007101703019A 2007-11-08 2007-11-08 Network awakening test system and method Expired - Fee Related CN101431445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101703019A CN101431445B (en) 2007-11-08 2007-11-08 Network awakening test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101703019A CN101431445B (en) 2007-11-08 2007-11-08 Network awakening test system and method

Publications (2)

Publication Number Publication Date
CN101431445A CN101431445A (en) 2009-05-13
CN101431445B true CN101431445B (en) 2011-04-13

Family

ID=40646624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101703019A Expired - Fee Related CN101431445B (en) 2007-11-08 2007-11-08 Network awakening test system and method

Country Status (1)

Country Link
CN (1) CN101431445B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315982A (en) * 2010-07-09 2012-01-11 英业达股份有限公司 Method for testing built-in remote control expansion board
JP5108070B2 (en) * 2010-09-21 2012-12-26 株式会社バッファロー Communication device
CN103106128A (en) * 2011-11-14 2013-05-15 英业达科技有限公司 Cold startup switch machine test method and cold starting switch machine test system
CN105515918A (en) * 2016-01-13 2016-04-20 浪潮电子信息产业股份有限公司 Network awakening test method under SUSE Linux system
CN109783296A (en) * 2019-01-07 2019-05-21 郑州云海信息技术有限公司 A kind of method of automatic verifying network interface card WOL functional stabilization

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1421795A (en) * 2001-11-27 2003-06-04 纬创资通股份有限公司 Remote operation device for controlling several remote computer units via network
CN1485706A (en) * 2003-08-25 2004-03-31 威盛电子股份有限公司 Network device for sustaining network wakeup function during undesired shutdown and method therefor
CN1595331A (en) * 2003-09-09 2005-03-16 华宇电脑股份有限公司 Network wakening device and method
US7251736B2 (en) * 2003-06-25 2007-07-31 International Business Machines Corporation Remote power control in a multi-node, partitioned data processing system via network interface cards

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1421795A (en) * 2001-11-27 2003-06-04 纬创资通股份有限公司 Remote operation device for controlling several remote computer units via network
US7251736B2 (en) * 2003-06-25 2007-07-31 International Business Machines Corporation Remote power control in a multi-node, partitioned data processing system via network interface cards
CN1485706A (en) * 2003-08-25 2004-03-31 威盛电子股份有限公司 Network device for sustaining network wakeup function during undesired shutdown and method therefor
CN1595331A (en) * 2003-09-09 2005-03-16 华宇电脑股份有限公司 Network wakening device and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱肇建.网络唤醒功能实现方案.《电脑编程技巧与维护》.2004, *

Also Published As

Publication number Publication date
CN101431445A (en) 2009-05-13

Similar Documents

Publication Publication Date Title
CN101431443B (en) Network awakening test system and method
CN101431445B (en) Network awakening test system and method
TWI573423B (en) A gateway for performing wakeup-on-lan and sleep-on-lan and the method thereof
CN103793306A (en) Testing method and device for automatic startup and shutdown of electronic products
CN102090115A (en) Power save mode for access points
US20080310337A1 (en) Periodic heartbeat communication between devices and a control point
CN102447960A (en) Intelligent showdown control method and system applicable to set top box
CN107589824A (en) It is a kind of to reduce the method for only supporting IO to wake up MCU power consumptions
CN101706861B (en) Method and device for realizing adaptation of communication protocol of intelligent card
US7814370B2 (en) Wake on LAN (WOL) test system and method thereof
CN105335316A (en) Motor assembling line serial port server based on cloud computation
CN111984479A (en) Method and system for carrying out startup and shutdown and restart tests on Android mainboard based on single chip microcomputer
CN102984791A (en) Energy-saving method for wireless sensor node
CN101997691A (en) Remote starting unit
CN103716861B (en) Network searching method and mobile electronic device using same
CN113609051A (en) Hot plug method, system, device and computer storage medium for expansion board
CN101997963A (en) Power supply management method and system of portable communication device
CN102819474B (en) Test method and device for system operation
CN201479148U (en) Remote power-on unit
TW200920026A (en) A test system of wake on LAN (WOL) and method thereof
CN101126922A (en) Monitor system collecting end device
CN114996195A (en) Method, system, device and medium for acquiring carbon footprint data
CN100429682C (en) Method and system for reducing power consumption of IrDA enabled handsets
CN104536840B (en) A kind of Watch Dog Timer and its control method
CN106353781A (en) Beidou terminal device based on multi-chip cooperative work and control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110413

Termination date: 20161108