CN105653408A - Test method for carrying out POWER CYCLE startup and shutdown on the basis of BMC (Baseboard Management Controller) IPMITOOL (Intelligent Platform Management Interface) command single-node batch control - Google Patents
Test method for carrying out POWER CYCLE startup and shutdown on the basis of BMC (Baseboard Management Controller) IPMITOOL (Intelligent Platform Management Interface) command single-node batch control Download PDFInfo
- Publication number
- CN105653408A CN105653408A CN201510987876.4A CN201510987876A CN105653408A CN 105653408 A CN105653408 A CN 105653408A CN 201510987876 A CN201510987876 A CN 201510987876A CN 105653408 A CN105653408 A CN 105653408A
- Authority
- CN
- China
- Prior art keywords
- test
- node
- bmc
- control
- run
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Abstract
The invention discloses a test method for carrying out POWER CYCLE startup and shutdown on the basis of BMC (Baseboard Management Controller) IPMITOOL (Intelligent Platform Management Interface) command single-node batch control. The test method comprises the following steps: 1) setting up a test platform, and installing a Linux system in a server; 2) preparing a test environment, configuring the BMC IP (Internet Protocol) of a SUT (System Under Test) test node, and writing IP address information into oobip_file, and simultaneously copying a script file dc-control.sh, oobip_file and run.sh under the catalogue of a control node; 3) confirming that the account and the password of the BMC in the run.sh are set values; 4) executing ./run.sh to carry out a test; and 5) after the test is finished, confirming a test record in count_''BMC IP''.txt. The test method for carrying out POWER CYCLE startup and shutdown on the basis of the BMC IPMITOOL command single-node batch control is suitable for all Linux platforms, is simple in operation, greatly shortens time of artificial detection operation and intervention, is high in practicality, can flexibly carry out the test according to test requirements, and greatly saves time cost since result analysis is clear at a glance.
Description
Technical field
The present invention relates to Powercylce switching on and shutting down field tests, specifically a kind of method of testing carrying out POWERCYCLE switching on and shutting down based on the batch control of BMCIPMITOOL order single node.
Background technology
Powercylce switching on and shutting down are tested as important in whole machine cabinet stability, current method for testing automatically powering on and off: 1) use measurement jig: it is confined to realize single node test, tests while cannot be carried out batch node. 2) Rack whole machine cabinet RMC is used to control: being confined in test process needs whole machine cabinet is operated, and when test node quantity is few, causes the waste to whole machine cabinet resource. And some client OS cannot support that whole machine cabinet controls soft-off 3) control of single pair of single node: it is confined to, when multinode requires to test at the same time, be not easy to operation and perform.
Summary of the invention
The technical assignment of the present invention is to provide a kind of method of testing controlling to carry out POWERCYCLE switching on and shutting down based on BMCIPMITOOL order single node batch.
The technical assignment of the present invention realizes in the following manner, and the step of this method of testing is as follows:
1) building test platform, server installs linux system;
2) setup test environment, configuration SUT tests the BMCIP of some, and is written in oobip_file by IP address information; By under script file dc-control.sh, oobip_file, run.sh copy simultaneously to the catalogue of control node;
3) confirm that in run.sh, BMC account and password are setting value;
4) perform ./run.sh to test;
5) count_ is confirmed after having tested " BMCIP " test record in .txt.
In described step 1), linux system is installed ipmitool instrument.
Described step 2) in, retrieval SUTBMCIP sequential loop ground decision node powerstatus automatically;According to the powerstatus of each node, when off state, carry out the complete paired node powercycle of poweronset by BMCIPMITOOL order and control; The test record of each SUT test node will be saved in count_ respectively " BMCIP " in .txt.
The a kind of of the present invention controls to carry out the method for testing of POWERCYCLE switching on and shutting down compared to the prior art based on BMCIPMITOOL order single node batch, based on BMCIPMITOOL order, realize single node batch control multinode and carry out powercyle switching on and shutting down simultaneously, it is adapted to all LINUX platforms, this method of testing is simple to operate, greatly reduce manual detection operation and the time intervened, practical, and can test according to test needs flexibly, interpretation of result is very clear, is greatly saved time cost.
Accompanying drawing explanation
Accompanying drawing 1 is a kind of FB(flow block) controlling to carry out the method for testing of POWERCYCLE switching on and shutting down based on BMCIPMITOOL order single node batch.
Detailed description of the invention
Embodiment 1:
The step of this method of testing is as follows:
1) building test platform, server installs linux system; Linux system is installed ipmitool instrument;
2) setup test environment, configuration SUT tests the BMCIP of some, and is written in oobip_file by IP address information; By under script file dc-control.sh, oobip_file, run.sh copy simultaneously to the catalogue of control node;
Automatically retrieval SUTBMCIP sequential loop ground decision node powerstatus;
foroobipin$(cat$oobip_file)
do
./dc-control$oobip$U$P
done
functionget_status()
{
status=`$SUTchassispowerstatus|awk'{print$4}'`
}
According to the powerstatus of each node, when off state, carry out the complete paired node powercycle of poweronset by BMCIPMITOOL order and control;
functionstatus_off()
{
echo"`date`count_$oobip=$count">>count_$oobip.txt
$SUTchassispoweron
while[$status="off"]
do
sleep30
get_status
done
}
functionstatus_on()
{
while[$status="on"]
do
sleep30
get_status
done
}
functiondcreboot()
{
get_status
while[$count-le"1000"]
do
if[$status="on"]
thenstatus_on
fi
if[$status="off"]
thenstatus_off
fi
count=$[$count+1]
done
}
The test record of each SUT test node will be saved in count_ respectively " BMCIP " in .txt.
3) confirm that in run.sh, BMC account and password are setting value;
4) perform ./run.sh to test;
5) count_ is confirmed after having tested " BMCIP " test record in .txt.
BMC(BaseboardManagementController, baseboard management controller) support the IPMI specification of industry standard. Ipmitool is the ipmi platform management instrument of a kind of command line mode that can be used under linux system, it supports ipmi1.5 specification (up-to-date specification is ipmi2.0), can realize the judgement of node powerstatus by it, and carry out node poweron, outside the band of off, reset remotely.
By detailed description of the invention above, described those skilled in the art can be easy to realize the present invention. It is understood that the present invention is not limited to above-mentioned several detailed description of the invention. On the basis of disclosed embodiment, described those skilled in the art can the different technical characteristic of combination in any, thus realizing different technical schemes.
Claims (3)
1. one kind controls to carry out the method for testing of POWERCYCLE switching on and shutting down based on BMCIPMITOOL order single node batch, it is characterised in that the step of this method of testing is as follows:
1) building test platform, server installs linux system;
2) setup test environment, configuration SUT tests the BMCIP of some, and is written in oobip_file by IP address information; By under script file dc-control.sh, oobip_file, run.sh copy simultaneously to the catalogue of control node;
3) confirm that in run.sh, BMC account and password are setting value;
4) perform ./run.sh to test;
5) count_ is confirmed after having tested " BMCIP " test record in .txt.
2. a kind of method of testing carrying out POWERCYCLE switching on and shutting down based on the batch control of BMCIPMITOOL order single node according to claim 1, it is characterised in that in described step 1), install ipmitool instrument in linux system.
3. a kind of method of testing carrying out POWERCYCLE switching on and shutting down based on the batch control of BMCIPMITOOL order single node according to claim 1, it is characterized in that, described step 2) in, retrieval SUTBMCIP sequential loop ground decision node powerstatus automatically; According to the powerstatus of each node, when off state, carry out the complete paired node powercycle of poweronset by BMCIPMITOOL order and control; The test record of each SUT test node will be saved in count_ respectively " BMCIP " in .txt.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510987876.4A CN105653408A (en) | 2015-12-25 | 2015-12-25 | Test method for carrying out POWER CYCLE startup and shutdown on the basis of BMC (Baseboard Management Controller) IPMITOOL (Intelligent Platform Management Interface) command single-node batch control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510987876.4A CN105653408A (en) | 2015-12-25 | 2015-12-25 | Test method for carrying out POWER CYCLE startup and shutdown on the basis of BMC (Baseboard Management Controller) IPMITOOL (Intelligent Platform Management Interface) command single-node batch control |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105653408A true CN105653408A (en) | 2016-06-08 |
Family
ID=56477645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510987876.4A Pending CN105653408A (en) | 2015-12-25 | 2015-12-25 | Test method for carrying out POWER CYCLE startup and shutdown on the basis of BMC (Baseboard Management Controller) IPMITOOL (Intelligent Platform Management Interface) command single-node batch control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105653408A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603343A (en) * | 2017-01-11 | 2017-04-26 | 郑州云海信息技术有限公司 | A method for testing stability of servers in batch |
CN107612775A (en) * | 2017-09-19 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of node two level connects the DC method of testings and system of server |
CN108804265A (en) * | 2018-05-16 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of PowerCycle test methods and system based on server DC |
CN109726507A (en) * | 2019-01-17 | 2019-05-07 | 湖南进芯电子科技有限公司 | A kind of efficiently multi-functional verification platform and method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051490A (en) * | 2012-11-26 | 2013-04-17 | 浪潮电子信息产业股份有限公司 | Method for carrying out startup and shutdown testing on blade server |
CN104750525A (en) * | 2015-03-25 | 2015-07-01 | 浪潮集团有限公司 | Control method for turning on and turning off server in timed mode |
CN104899120A (en) * | 2015-05-27 | 2015-09-09 | 浪潮电子信息产业股份有限公司 | Server stability test method based on BMC startup and shutdown functions |
-
2015
- 2015-12-25 CN CN201510987876.4A patent/CN105653408A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051490A (en) * | 2012-11-26 | 2013-04-17 | 浪潮电子信息产业股份有限公司 | Method for carrying out startup and shutdown testing on blade server |
CN104750525A (en) * | 2015-03-25 | 2015-07-01 | 浪潮集团有限公司 | Control method for turning on and turning off server in timed mode |
CN104899120A (en) * | 2015-05-27 | 2015-09-09 | 浪潮电子信息产业股份有限公司 | Server stability test method based on BMC startup and shutdown functions |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603343A (en) * | 2017-01-11 | 2017-04-26 | 郑州云海信息技术有限公司 | A method for testing stability of servers in batch |
CN107612775A (en) * | 2017-09-19 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of node two level connects the DC method of testings and system of server |
CN108804265A (en) * | 2018-05-16 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of PowerCycle test methods and system based on server DC |
CN109726507A (en) * | 2019-01-17 | 2019-05-07 | 湖南进芯电子科技有限公司 | A kind of efficiently multi-functional verification platform and method |
CN109726507B (en) * | 2019-01-17 | 2023-04-18 | 湖南进芯电子科技有限公司 | Efficient multifunctional verification method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109802867B (en) | Method and system for testing connection stability of network card NCSI | |
CN107171833B (en) | Method for realizing batch upgrading of BMC and BIOS of server through BMC | |
JP5535484B2 (en) | Automated software testing framework | |
US7185335B2 (en) | Programmatic application installation diagnosis and cleaning | |
CN103149526B (en) | PCBA board test macro and method | |
CN105653408A (en) | Test method for carrying out POWER CYCLE startup and shutdown on the basis of BMC (Baseboard Management Controller) IPMITOOL (Intelligent Platform Management Interface) command single-node batch control | |
CN104375910A (en) | Automated startup and shutdown testing method | |
WO2017012219A1 (en) | Software test method, apparatus and system | |
CN103530162A (en) | Automatic online virtual machine software installing method and system | |
TW200535602A (en) | A system and method for testing motherboards automatically | |
CN105183497A (en) | Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server | |
CN104268076A (en) | Memory bandwidth automatically testing method applicable to various processor platforms | |
CN105512026A (en) | Automatic batch testing method | |
CN107943637A (en) | A kind of mains cycle test device and method based on IPMI platforms | |
CN103475526A (en) | IP setting and detecting method supporting multi-VLAN virtual machine | |
CN104391780A (en) | Method for automatically testing stability of redundancy function of power supply of server | |
CN104778105A (en) | Method for quickly testing compatibility of server and RHEL (red hat enterprise linux) based on virtual machine | |
CN105404569A (en) | Method for testing remote Power Reset of server | |
CN105760262A (en) | Method for carrying out cross validation on stability of hard disk based on dc and reboot under linux | |
CN111026588B (en) | Computer system and method for testing a computer system | |
CN107562622A (en) | A kind of method of testing and system of checking MCS system firmware automatically updating functions | |
CN112543478B (en) | WiFi module automatic test method and device, computer equipment and storage medium | |
CN114584498B (en) | Gateway equipment power-on and power-off test method, device, equipment, system and product | |
CN111367735B (en) | Test method and system based on server to be tested and Wuban diagram operating system | |
CN109257186A (en) | A kind of method and system making server automatically from PXE network startup |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20160608 |