CN105653408A - Test method for POWER CYCLE startup and shutdown based on BMC IPMITOOL command single-node batch control - Google Patents
Test method for POWER CYCLE startup and shutdown based on BMC IPMITOOL 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
- control
- bmc
- file
- 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
- 238000010998 test method Methods 0.000 title claims abstract description 11
- 238000012360 testing method Methods 0.000 claims abstract description 43
- 238000000034 method Methods 0.000 claims description 5
- 238000001514 detection method Methods 0.000 abstract description 2
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 description 1
- 241000282326 Felis catus Species 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
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
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)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a BMC (baseboard management controller)? IPMITOOL commands single-node bulk control to POWER? The testing method for the on/off of the CYCLE comprises the following steps: 1) a test platform is set up, and a Linux system is installed on a server; 2) prepare a test environment, configure BMC for SUT test points? IP, and writing the IP address information into the obip _ file; sh will script file dc-control.sh? oobip _ file,? Sh is copied to the directory of the control node at the same time; 3) confirming that the BMC account and the password in the run.sh are set values; 4) executing a/run.sh test; 5) after the test is completed, the count _? Test records in IP ". txt. A BMC-based of the present invention? IPMITOOL commands single-node bulk control to POWER? The testing method of the CYCLE on/off is suitable for all LINUX? The test method is simple to operate, time for manual detection operation and intervention is greatly shortened, practicability is high, the test can be flexibly carried out according to test requirements, result analysis is clear at a glance, and time cost is greatly saved.
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 POWER CYCLE startup and shutdown based on BMC IPMITOOL 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 POWER CYCLE startup and shutdown based on BMC IPMITOOL 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 POWER CYCLE startup and shutdown based on BMC IPMITOOL 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 testing method based on BMC (baseboard management controller) 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 testing method based on BMC (baseboard management controller) 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 |
---|---|---|
US7185335B2 (en) | Programmatic application installation diagnosis and cleaning | |
US9747192B2 (en) | Automated operating system installation on multiple drives | |
CN103149526B (en) | PCBA board test macro and method | |
CN109802867B (en) | Method and system for testing connection stability of network card NCSI | |
CN104375910A (en) | Automatic power-on and power-off test method | |
US20180131589A1 (en) | Generating production server load activity for a test server | |
CN105653408A (en) | Test method for POWER CYCLE startup and shutdown based on BMC IPMITOOL command single-node batch control | |
US20050246589A1 (en) | System and method for automatically testing motherboards | |
CN105209925A (en) | Implementing edit and update functionality within a development environment used to compile test plans for automated semiconductor device testing | |
CN103530162A (en) | Automatic online virtual machine software installing method and system | |
WO2017012219A1 (en) | Software test method, apparatus and system | |
CN104268076A (en) | Testing method suitable for automatically testing memory bandwidth of each processor platform | |
CN108923997B (en) | Cloud service node automatic testing method and device based on python | |
CN103475526A (en) | IP setting and detecting method supporting multi-VLAN virtual machine | |
CN105743707A (en) | Method for testing BMC log analysis function based on Redhat system | |
CN105512026A (en) | Automatic batch testing method | |
CN112256505A (en) | Server stability testing method and device and related components | |
KR101976629B1 (en) | Commit sensitive tests | |
CN103092718A (en) | Test data backup system and method | |
CN110795356B (en) | System and method for realizing one-key deployment and automatic test of software based on secure | |
CN105760262A (en) | Method for cross-verifying hard disk stability based on dc and rebot under linux | |
CN111026588B (en) | Computer system and method for testing a computer system | |
CN105404569A (en) | Method for testing remote Power Reset of server | |
CN112905403B (en) | Batch synchronous testing method and system for multiple computers | |
CN114138587A (en) | Reliability verification method, device and equipment for upgrading server power firmware |
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 |