CN108829548A - A kind of multinode type restarts test method and system - Google Patents

A kind of multinode type restarts test method and system Download PDF

Info

Publication number
CN108829548A
CN108829548A CN201810516382.1A CN201810516382A CN108829548A CN 108829548 A CN108829548 A CN 108829548A CN 201810516382 A CN201810516382 A CN 201810516382A CN 108829548 A CN108829548 A CN 108829548A
Authority
CN
China
Prior art keywords
power supply
node
programmable power
control
bmc
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
Application number
CN201810516382.1A
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.)
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 CN201810516382.1A priority Critical patent/CN108829548A/en
Publication of CN108829548A publication Critical patent/CN108829548A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]

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)
  • Power Sources (AREA)

Abstract

Test method and system are restarted the embodiment of the invention discloses a kind of multinode type, and the method includes S1, server power supply are linked into programmable power supply, and record the control IP of programmable power supply;Server node is linked into test network by S2, and records the IP of all node BMC;S3 traverses the IP of all node BMC, obtains the state of node;S4, when node is in off-mode, control programmable power supply closes output port, powers off server whole machine cabinet, and after time delay, control programmable power supply opens output port, powers on server whole machine cabinet;S5 traverses the IP of all node BMC, checks whether BMC has been turned on, and control node is switched on after all node BMC starting.Compared with prior art, the present invention avoids the risk that test cabinet is damaged in test process to which server node will not be caused directly to cause abnormal problem to occur from open state abnormal power-down.

Description

A kind of multinode type restarts test method and system
Technical field
The present invention relates to field of computer technology, specifically a kind of multinode type restarts test method and is System.
Background technique
AC (alternating current, alternating current) restart test be a kind of emulating server in use The cyclic process of " shutdown under system-power-off (pulls out power supply line)-power on-be switched on-enter system ".It was used in server Cheng Zhong, safeguarded or repaired if necessary, move position etc., require the process that experience is restarted.
In AC restarting process, all parts of server, such as mainboard, backboard, hard disk, memory, it all experienced from work Enter halted state as state, subsequently into cold halted state (power-off), then power on and reinitialize again, be switched on the mistake used Journey.This process is re-energised because being related to circuit, is very easy to lead to various unexpected problems.
In order to guarantee the quality of server, in server test, AC restarts test and is very important a test.It passes Whether the AC test of system is that 12V electricity on mainboard is judged by fatigue tester there is also testing to single machine, for same When have multiple nodes while the type using the same power supply, conventional method can not detect the state of multiple nodes simultaneously, cause Testing and control can only be carried out according to one of node state, because being discrepant between each node, such as when booting Between length etc., can not effectively realize that AC restarts testing process only according to the state of some node.It may be detected Node come into OS (Operating System, operating system) and then shut down, but other nodes are also after powering During OS, the input of power supply is broken at this time, will lead to other nodes directly from open state abnormal power-down, Ke Nengzao At serious consequence, while the result tested is also inaccuracy.
Summary of the invention
A kind of multinode type is provided in the embodiment of the present invention restarts test method and system, to solve the prior art The middle test problem that risk is big, test result is unstable.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
What first aspect present invention provided a kind of multinode type restarts test method, includes the following steps:
Server power supply is linked into programmable power supply by S1, and records the control IP of programmable power supply;
Server node is linked into test network by S2, and records the IP of all node BMC;
S3 traverses the IP of all node BMC, obtains the state of node;
S4, when node is in off-mode, control programmable power supply closes output port, keeps server whole machine cabinet disconnected Electricity, after time delay, control programmable power supply opens output port, powers on server whole machine cabinet;
S5 traverses the IP of all node BMC, checks whether BMC has been turned on, the control node after all node BMC starting Booting.
With reference to first aspect, in a first possible implementation of that first aspect, the method also includes settings to test Number, repeat the operation of step S3-S5, until reaching the number of setting, test terminates.
With reference to first aspect, in a second possible implementation of that first aspect, the method also includes creation saves The file of log, saves test data.
With reference to first aspect, in the possible implementation of first aspect first or second kind, the programmable electricity of control Source close output port detailed process be:
The IP of programmable power supply and the port numbers to be controlled successively are sent to programmable power supply as parameter.
With reference to first aspect, in the possible implementation of first aspect first or second kind, break to programmable power supply Electric control is serviced by Telnet and is realized, is controlled programmable power supply closing output port process by Telnet and is:
According to the programmable power supply IP received, corresponding editable power supply is logged in;
According to the port numbers received, the output of corresponding control terminal slogan is disconnected;
Exit programmable power supply.
With reference to first aspect, in the possible implementation of first aspect first or second kind, the programmable electricity of control Source open output port detailed process be:
The IP of programmable power supply and the port numbers to be controlled successively are sent to programmable power supply as parameter.
With reference to first aspect, in the possible implementation of first aspect first or second kind, to the upper of programmable power supply Electric control is serviced by Telnet and is realized, is controlled programmable power supply opening output port process by Telnet and is:
According to the programmable power supply IP received, corresponding editable power supply is logged in;
According to the port numbers received, the output of corresponding control terminal slogan is opened;
Exit programmable power supply.
With reference to first aspect, in the possible implementation of first aspect first or second kind, BMC is checked using ping is logical Whether have been turned on.
What second aspect of the present invention provided a kind of multinode type restarts test macro, and the test macro includes
Configuration module is linked into programmable power supply for configuring test environment, including by server power supply, and record is programmable The control IP of power supply and server node is linked into test network, records the IP of all node BMC;
First state obtains module and obtains the state of node for traversing the IP of all node BMC;
Restart control module, when node is in off-mode, control programmable power supply closes output port, makes to service The power-off of device whole machine cabinet, after time delay, control programmable power supply opens output port, powers on server whole machine cabinet;
Second state acquisition module checks whether BMC has been turned on, in all nodes for traversing the IP of all node BMC Control node is switched on after BMC starting.
In conjunction with second aspect, in second aspect in the first possible implementation, the test macro further includes
Loop control module for setting cycle-index, and monitors number of run, until number of run reaches following for setting Ring number terminates test;
Memory module, for saving test data.
The control device of the network service of second aspect of the present invention can be realized each of first aspect and first aspect Method in implementation, and obtain identical effect.
The effect provided in summary of the invention is only the effect of embodiment, rather than invents all whole effects, above-mentioned A technical solution in technical solution has the following advantages that or beneficial effect:
1, by remotely controlling the on-off of programmable power supply, remotely Node Switch machine state is judged using BMC, Power input can just be broken by detecting when all nodes are in off-mode, to will not cause server node directly from opening Machine abnormal state powers off and abnormal problem is caused to occur, and avoids the risk that test cabinet is damaged in test process.
2, after control programmable power supply powers on, check whether all BMC start using ping is logical, it is simple to operate, it protects Card sending node power-on command after all BMC start, guarantees going on smoothly for test process.
3, the communication between control node and programmable power supply is realized by Telnet remote interface, and reconfiguration mouth can be automatic The corresponding control for replying operation, realizing to programmable interface power-on and power-off, user are carried out according to the input information of control node Just, feedback is rapid.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of the method for the invention embodiment 1;
Fig. 2 is the flow diagram of the method for the invention embodiment 2;
Fig. 3 is the structural schematic diagram of system embodiment 1 of the present invention;
Fig. 4 is the structural schematic diagram of system embodiment 2 shown in the present invention.
Specific embodiment
In order to clarify the technical characteristics of the invention, below by specific embodiment, and its attached drawing is combined, to this hair It is bright to be described in detail.Following disclosure provides many different embodiments or example is used to realize different knots of the invention Structure.In order to simplify disclosure of the invention, hereinafter the component of specific examples and setting are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relationship between various embodiments and/or setting is discussed.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
As shown in Figure 1, the method for the present embodiment includes the following steps:
Server power supply is linked into programmable power supply by S1, and records the control IP of programmable power supply;
Programmable power supply may include multiple ports, and after server power supply is linked into programmable power supply, programmable electricity is arranged The control interface in source, such as programmable power supply are dual power supply, then it is 1-2 that control interface, which is arranged,;Programmable power supply is four power supplys, if Setting control interface is 1-4;The control IP of programmable power supply is denoted as IP1.
Server node is linked into test network by S2, and records the IP of all node BMC;
The IP of the total all nodes of test network is denoted as IP_LIST1.
S3 traverses the IP of all node BMC, obtains the state of node;
Traverse the IP of all BMC in IP_LIST1 one by one using circulation.It is obtained by ipmitool remote command by BMC Then the state of node judges whether all cautious all in off-mode.It is in off-mode if not all nodes, Then repeat the circulation of this step;Until all nodes are in off-mode.
S4, when node is in off-mode, control programmable power supply closes output port, keeps server whole machine cabinet disconnected Electricity, after time delay, control programmable power supply opens output port, powers on server whole machine cabinet;
By taking dual power supply as an example, control node remotely controls programmable power supply, the output of close port 1-2, to make to service The power supply of device complete machine loses input and powers off.After the certain time interval T that is delayed, control node remotely controls programmable power supply, opens end The output of mouth 1-2, to be powered on to server power supply of the whole machine.
Control node remotely controls the output of programmable power supply close port, will by calling apc-off.exp program The IP of the programmable power supply of connection and the port to be controlled are sent to programmable power supply as parameter, the long-range programmable electricity of control Source makes port shutdown, and whether the designated port for being verified using endless loop programmable power supply is closed, if apc-off.exp Program does not feed back the return value to run succeeded, illustrates that port is not carried out power operation, then postpones a period of time (the present embodiment Select 3 seconds) return continues to execute this program later, until receiving the return value that apc-off.exp program runs succeeded.
Control node remotely controls the output that programmable power supply opens port, will by calling apc-on.exp program The IP of the programmable power supply of connection and the port to be controlled are sent to programmable power supply as parameter, the long-range programmable electricity of control Source opens port, and whether the designated port for being verified using endless loop programmable power supply is opened, if apc-on.exp journey Sequence does not feed back the return value to run succeeded, illustrates that port is not carried out power operation, then postpones a period of time (the present embodiment choosing With 3 seconds) return continues to execute this program later, until receiving the return value that apc-on.exp program runs succeeded.
The telnet remote interface that the communication of control node and programmable power supply is provided by programmable power supply, passes through Telnet service remote accesses programmable power supply to control the on-off of power port.Because the process for logging in telnet interface will be with The information such as the port numbers that programmable power supply interacts to input username and password, to be operated, so borrowing expect.Expact can To be replied according to preset information automatically according to input.
When control node issues the instruction of the port shutdown of control programmable power supply, expact is according to first received A parameter is arranged the IP address of programmable power supply, logs in the programmable power supply, and input username and password;Based on the received Close port is arranged in second parameter, is provided with backed off after random programmable power supply.
When the instruction that the port that control node issues control programmable power supply is opened, expact is according to first received A parameter is arranged the IP address of programmable power supply, logs in the programmable power supply, and input username and password;Based on the received Second parameter opens port to be arranged, and is provided with backed off after random programmable power supply.
S5 traverses the IP of all node BMC, checks whether BMC has been turned on, the control node after all node BMC starting Booting.
The IP for traversing all BMC in IP_LIST1 one by one using circulation, it is accessible to judge whether BMC has been started up. If BMC has been started up accessible, controls machine node and remotely pass through BMC by ipmitool node is switched on;If BMC can't be accessed, then continue the IP of next node.Until all nodes are all switched on by BMC.
Whether started by the BMC of the disconnected node of ping official under county magistrate who administers lawsuit, etc., if it is possible to which ping is same, illustrates that the BMC of the node has been turned on.
Before step S3, control node defines the position that test process saves log, and during the test, will create The file and journal file for saving log, test data is stored in journal file.
As shown in Fig. 2, on the basis of the above embodiments, in order to obtain more accurate test result, punching is negative to be carried out The test process of step S3-S5 is stated, before the test begins, the cycle-index of test is set, is denoted as COUNT1, by current circulation Number is denoted as COUNT2, before operating procedure S3, first determines whether current cycle time COUNT2 reaches setting value COUNT1 terminates test, when to reach COUNT1, the operation of operating procedure S3-S5 when reaching COUNT1.
As shown in figure 3, the system of the present embodiment includes configuration module 1, first state acquisition module 2, restarts control module 3 With the second state acquisition module 4.
Configuration module 1 is linked into programmable power supply for configuring test environment, including by server power supply, and record is programmable The control IP of power supply and server node is linked into test network, records the IP of all node BMC;First state obtains mould Block 2 is used to traverse the IP of all node BMC, obtains the state of node;Restart control module 3 and is in off-mode in node When, control programmable power supply closes output port, powers off server whole machine cabinet, after time delay, controls programmable power supply Output port is opened, server whole machine cabinet is powered on;Second state acquisition module 4 is used to traverse the IP of all node BMC, checks Whether BMC has been turned on, and control node is switched on after all node BMC starting.
As shown in figure 4, the system of the present embodiment further includes memory module 5 and loop control module 6.Memory module 5 is used for Save test data;Loop control module 6 monitors number of run for setting cycle-index, until number of run reaches and sets Fixed cycle-index terminates test;
The above is the preferred embodiment of the present invention, for those skilled in the art, Without departing from the principles of the invention, several improvements and modifications can also be made, these improvements and modifications are also regarded as this hair Bright protection scope.

Claims (10)

1. a kind of multinode type restarts test method, it is characterized in that:Include the following steps:
Server power supply is linked into programmable power supply by S1, and records the control IP of programmable power supply;
Server node is linked into test network by S2, and records the IP of all node BMC;
S3 traverses the IP of all node BMC, obtains the state of node;
S4, when node is in off-mode, control programmable power supply closes output port, powers off server whole machine cabinet, After time delay, control programmable power supply opens output port, powers on server whole machine cabinet;
S5 traverses the IP of all node BMC, checks whether BMC has been turned on, and control node is switched on after all node BMC starting.
2. a kind of multinode type according to claim 1 restarts test method, it is characterized in that:The method also includes The number for setting test, repeats the operation of step S3-S5, until reaching the number of setting, test terminates.
3. a kind of multinode type according to claim 1 or 2 restarts test method, it is characterized in that:The method is also Including creation saves the file of log, saves to test data.
4. a kind of multinode type according to claim 1 or 2 restarts test method, it is characterized in that:The control can Programming power supply close output port detailed process be:
The IP of programmable power supply and the port numbers to be controlled successively are sent to programmable power supply as parameter.
5. a kind of multinode type according to claim 4 restarts test method, it is characterized in that:To programmable power supply Power-off control is serviced by Telnet to be realized, is closed output port process by Telnet control programmable power supply and is:
According to the programmable power supply IP received, corresponding editable power supply is logged in;
According to the port numbers received, the output of corresponding control terminal slogan is disconnected;
Exit programmable power supply.
6. a kind of multinode type according to claim 1 or 2 restarts test method, it is characterized in that:The control can Programming power supply opening output port detailed process be:
The IP of programmable power supply and the port numbers to be controlled successively are sent to programmable power supply as parameter.
7. a kind of multinode type according to claim 6 restarts test method, it is characterized in that:To programmable power supply Upper electric control is serviced by Telnet and is realized, is controlled programmable power supply opening output port process by Telnet and is:
According to the programmable power supply IP received, corresponding editable power supply is logged in;
According to the port numbers received, the output of corresponding control terminal slogan is opened;
Exit programmable power supply.
8. a kind of multinode type according to claim 1 or 2 restarts test method, it is characterized in that:It is logical using ping Check whether BMC has been turned on.
9. a kind of multinode type restarts test macro, it is characterized in that:The test macro includes
Configuration module is linked into programmable power supply for configuring test environment, including by server power supply, records programmable power supply Control IP and server node is linked into test network, record the IP of all node BMC;
First state obtains module and obtains the state of node for traversing the IP of all node BMC;
Restart control module, when node is in off-mode, control programmable power supply closes output port, keeps server whole Cabinet power-off, after time delay, control programmable power supply opens output port, powers on server whole machine cabinet;
Second state acquisition module checks whether BMC has been turned on, in all node BMC for traversing the IP of all node BMC Control node is switched on after starting.
10. a kind of multinode type according to claim 9 restarts test macro, it is characterized in that:The test macro Further include
Loop control module for setting cycle-index, and monitors number of run, until number of run reaches the circulation time of setting Number terminates test;
Memory module, for saving test data.
CN201810516382.1A 2018-05-25 2018-05-25 A kind of multinode type restarts test method and system Pending CN108829548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810516382.1A CN108829548A (en) 2018-05-25 2018-05-25 A kind of multinode type restarts test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810516382.1A CN108829548A (en) 2018-05-25 2018-05-25 A kind of multinode type restarts test method and system

Publications (1)

Publication Number Publication Date
CN108829548A true CN108829548A (en) 2018-11-16

Family

ID=64145630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810516382.1A Pending CN108829548A (en) 2018-05-25 2018-05-25 A kind of multinode type restarts test method and system

Country Status (1)

Country Link
CN (1) CN108829548A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003727A (en) * 2020-07-24 2020-11-27 苏州浪潮智能科技有限公司 Multi-node server power supply testing method, system, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799504A (en) * 2011-05-23 2012-11-28 鸿富锦精密工业(深圳)有限公司 Power supply testing system and method
CN105302680A (en) * 2015-11-04 2016-02-03 浪潮电子信息产业股份有限公司 Automatic testing method for AC stability of RACK cabinet
CN106294043A (en) * 2016-08-04 2017-01-04 浪潮电子信息产业股份有限公司 Method for testing automatic startup and shutdown
CN106326057A (en) * 2016-08-29 2017-01-11 浪潮电子信息产业股份有限公司 Test method for realizing AC rebot based on IPMI tool

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799504A (en) * 2011-05-23 2012-11-28 鸿富锦精密工业(深圳)有限公司 Power supply testing system and method
US20120304011A1 (en) * 2011-05-23 2012-11-29 Hon Hai Precision Industry Co., Ltd. Server and power supply test method
CN105302680A (en) * 2015-11-04 2016-02-03 浪潮电子信息产业股份有限公司 Automatic testing method for AC stability of RACK cabinet
CN106294043A (en) * 2016-08-04 2017-01-04 浪潮电子信息产业股份有限公司 Method for testing automatic startup and shutdown
CN106326057A (en) * 2016-08-29 2017-01-11 浪潮电子信息产业股份有限公司 Test method for realizing AC rebot based on IPMI tool

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003727A (en) * 2020-07-24 2020-11-27 苏州浪潮智能科技有限公司 Multi-node server power supply testing method, system, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN109510742B (en) Server network card remote test method, device, terminal and storage medium
CN110716126A (en) Chip aging test system, method and device
CN103812726A (en) Automated testing method and device for data communication equipment
CN102799504A (en) Power supply testing system and method
CN106055440B (en) A kind of test method and system for realizing server exception power-off by BMC
US9170618B2 (en) Power management circuit, server, and power management method thereof
CN104268041B (en) A kind of Vehicular display device equipment frequently switches on machine automatic closed loop test method
CN103106128A (en) Cold startup switch machine test method and cold starting switch machine test system
CN110008070A (en) A kind of AEP memory AC test method powered off at random based on power supervisor
CN113590401B (en) CPE equipment multifunctional test method, CPE equipment multifunctional test device, computer equipment and storage medium
CN104572379A (en) RACK cabinet RMC login testing method
CN102915265A (en) BMC (baseboard management controller) loop test method and system
CN103412203A (en) Motor variable-frequency driver aging test device and test method thereof
CN108829548A (en) A kind of multinode type restarts test method and system
CN104506389A (en) Integral high-density server stability testing method
CN105302680A (en) Automatic testing method for AC stability of RACK cabinet
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN114138312A (en) Upgrade test method, device, electronic equipment and computer readable storage medium
CN111488250A (en) High-density multi-node server testing method, system, terminal and storage medium
CN108266399A (en) A kind of server fan time-sharing startup system and method
CN114461458A (en) Server memory test method, system, terminal and storage medium
CN102033172A (en) Network-controlled AC power cycling (APC) test system and method
CN112564961B (en) Automatic test method, system, equipment and medium for communication module PPP dialing
CN111475406B (en) MOC card based method and system for testing CPLD firmware refreshing
TWI759926B (en) System and method for power on testing

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: 20181116