CN105335263A - Method for automatically testing out-of-band upgrading and degrading of RMC (Remote Management Controller) based on LINUX platform - Google Patents

Method for automatically testing out-of-band upgrading and degrading of RMC (Remote Management Controller) based on LINUX platform Download PDF

Info

Publication number
CN105335263A
CN105335263A CN201510767264.4A CN201510767264A CN105335263A CN 105335263 A CN105335263 A CN 105335263A CN 201510767264 A CN201510767264 A CN 201510767264A CN 105335263 A CN105335263 A CN 105335263A
Authority
CN
China
Prior art keywords
rmc
demotion
promotion
test
testing
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
CN201510767264.4A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510767264.4A priority Critical patent/CN105335263A/en
Publication of CN105335263A publication Critical patent/CN105335263A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for automatically testing the out-of-band upgrading and degrading of a RMC (Remote Management Controller) based on a LINUX platform, which belongs to the field of RMC testing. According to the invention, based on the LINUX platform, the out-of-band upgrading and degrading of the RMC are automatically tested, and the execution of testing is implemented without human intervention; and the method is implemented flexibly, the number of times of the upgrading and degrading of the RMC can be artificially and freely set, the version information of the upgrading and degrading of the RMC and FW files required to be upgraded and degraded can be artificially and freely modified, and after the testing is completed, by confirming log information record in each time of upgrading and degrading, the accuracy of testing results is determined. According to the method, the work of stability testing for the RMC is completed through automated testing, and therefore, the method is applicable to all LINUX platforms; the method is simple in operation, and greatly reduces the manual detection time and the human intervention time; the method is strong in practicability; and testing can be performed flexibly according to testing needs, and results analysis is clear at a glance, thereby greatly saving the time cost.

Description

A kind of based on the outer promotion and demotion automatic test approach of RMC band under LINUX platform
Technical field
The present invention discloses a kind of RMC and is with outer promotion and demotion automatic test approach, belongs to RMC field tests, specifically a kind of based on the outer promotion and demotion automatic test approach of RMC band under LINUX platform.
Background technology
The heat radiation of traditional server and supply module, administration module (BMC) are concentrated the unified power supply, fan wall and the administration module RMC(RemontManagementControler that become frame by SmartRack whole machine cabinet server) manage power supply, the heat radiation of whole rack concentratedly; Management mainboard (RMC) is the administrative center of large server SmartRack, is responsible for the management of system interior nodes, power management, fan management.RMC mainly comprises the outband management of node based on IPMB specification, the function managements such as the management of AC/DC power supply based on PMBUS agreement, the adjustment of the rotation speed of the fan based on I2C and air quantity Compensation Regulation.Wherein the stability of RMC determines the stability that whole machine cabinet is run greatly, and existing test needs a large amount of human inputs, and test result has again artificial interference factor, the accuracy of impact test.The invention provides a kind of based on the outer promotion and demotion automatic test approach of RMC band under LINUX platform, based under LINUX platform, be with outer promotion and demotion automatically to test to RMC, perform test without the need to artificial interference; Flexibly, artificially can set the number of times of RMC promotion and demotion, change RMC promotion and demotion version information freely and need the FW file of promotion and demotion, by confirming that the log information record of each promotion and demotion carrys out the accuracy of discriminating test result after having tested,, there is not the problem of interference from human factor test result accuracy in less investment.
Summary of the invention
The present invention is directed to RMC test in prior art and need a large amount of human inputs, test result has again artificial interference factor, the problem of the accuracy of impact test, there is provided a kind of and be with outer promotion and demotion automatic test approach based on the RMC under LINUX platform,, there is not the problem of interference from human factor test result accuracy in less investment.
The concrete scheme that the present invention proposes is:
A kind of based on the outer promotion and demotion automatic test approach of RMC band under LINUX platform, setting a RMC upgrading demotes as a test loop with a RMC, by the number of times of the result of test loop setting RMC promotion and demotion, and RMC promotion and demotion version information can be carried out and need the change of FW file of promotion and demotion;
Step is:
Build test platform;
Setup test environment; Confirm RMC promotion and demotion period, need FWversion and the FW file of upgrading and degradation, under FW file and testing tool are kept at same catalogue;
RMCIP address in amendment script, fill order test command;
Refresh rear confirmation destination file content and whether there is exception.
After each described test loop, the current version of meeting automatic acquisition RMC, and contrast confirms whether upgrade or downgrade action correctly performs.
There is the log information of Flushing success after described refreshing completes or refresh the FW version information after unsuccessfully causing refreshing and estimate that the information be not inconsistent will be saved in result.log file automatically.
Usefulness of the present invention is:
The invention provides a kind of based on the outer promotion and demotion automatic test approach of RMC band under LINUX platform, based under LINUX platform, be with outer promotion and demotion automatically to test to RMC, perform test without the need to artificial interference, flexibly, artificially can set the number of times of RMC promotion and demotion freely, change RMC promotion and demotion version information and need the FW file of promotion and demotion, by confirming that the log information record of each promotion and demotion carrys out the accuracy of discriminating test result after having tested, this method of testing completes the stability test work to RMC by automatic test, be adapted to all LINUX platforms, this method of testing is simple to operate, the time greatly reducing manual detection operation and intervene, practical, and can test according to test needs flexibly, interpretation of result is very clear, greatly save time cost.
Embodiment
A kind of based on the outer promotion and demotion automatic test approach of RMC band under LINUX platform, setting a RMC upgrading demotes as a test loop with a RMC, by the number of times of the result of test loop setting RMC promotion and demotion, and RMC promotion and demotion version information can be carried out and need the change of FW file of promotion and demotion;
Step is:
Build test platform;
Setup test environment; Confirm RMC promotion and demotion period, need FWversion and the FW file of upgrading and degradation, under FW file and testing tool are kept at same catalogue;
RMCIP address in amendment script, fill order test command;
Refresh rear confirmation destination file content and whether there is exception.
After each described test loop, the current version of meeting automatic acquisition RMC, and contrast confirms whether upgrade or downgrade action correctly performs.
There is the log information of Flushing success after described refreshing completes or refresh the FW version information after unsuccessfully causing refreshing and estimate that the information be not inconsistent will be saved in result.log file automatically.
According to said method, the present invention will be further described.
A kind of based on the outer promotion and demotion automatic test approach of RMC band under LINUX platform, setting a RMC upgrading demotes as a test loop with a RMC, by the number of times of the result of test loop setting RMC promotion and demotion, and RMC promotion and demotion version information can be carried out and need the change of FW file of promotion and demotion;
Main code is as follows:
functiongetver()
{
((ver=$(ipmitool-Ilanplus-H$ip-U$u-P$pmcinfo|sed-n'20p'|sed's/^//g')))
ver=$(echo$ver)
ver=$(echo"1.0.$ver")
}
functionupdate()
{
$command$newfile<<EOF
y
EOF
flag=1
}
functiondegrade()
{
$command$oldfile<<EOF
y
EOF
flag=0
}
Test script after carrying out upgrade or downgrade test, understands the current version of automatic acquisition RMC at every turn, and contrast confirms whether upgrade or downgrade action correctly performs;
Following result will preserve log information automatically in result.log file,
The log information of Flushing success or refresh and unsuccessfully cause the FW version information after refreshing and expectation not to be inconsistent,
Following program is the RMC message processing program after Flushing success:
getver
if["$flag"=="1"-a"$ver"=="$newver"]
then
echo"thisis$updatetimetimesupdateOKandFirmwareRevisonis$ver"|tee-aresult.log
updatetime=$(($updatetime+1))
elif["$flag"=="0"-a"$ver"=="$oldver"]
then
echo"thisis$degradetimetimesdegradeOKandFirmwareRevisonis$ver"|tee-aresult.log
degradetime=$(($degradetime+1))
else
echo"FWupdateordegrageFail"|tee-aresult.log
exit0
fi
done
Test platform is built according to above-mentioned script, for RHEL6.264bitOS, confirm RMC promotion and demotion period, need FWversion and the FW file of upgrading and degradation, under FW file and Yafuflash instrument are kept at same catalogue, RMCIP address in amendment script, fill order test command ./YafuflashnewBMC_FWfile.binoldBMC_FWfile.bin, has refreshed rear confirmation result.log content and whether there is exception.

Claims (3)

1. be with outer promotion and demotion automatic test approach based on the RMC under LINUX platform for one kind, it is characterized in that a setting RMC upgrading is demoted as a test loop with a RMC, by the number of times of the result of test loop setting RMC promotion and demotion, and RMC promotion and demotion version information can be carried out and need the change of FW file of promotion and demotion;
Step is:
Build test platform;
Setup test environment; Confirm RMC promotion and demotion period, need FWversion and the FW file of upgrading and degradation, under FW file and testing tool are kept at same catalogue;
RMCIP address in amendment script, fill order test command;
Refresh rear confirmation destination file content and whether there is exception.
2. according to claim 1 a kind of based on the outer promotion and demotion automatic test approach of RMC band under LINUX platform, after it is characterized in that each described test loop, the current version of meeting automatic acquisition RMC, and contrast confirms whether upgrade or downgrade action correctly performs.
3. a kind of RMC based under LINUX platform according to claim 1 and 2 is with outer promotion and demotion automatic test approach, it is characterized in that occurring after described refreshing completes the log information of Flushing success or refreshes the information unsuccessfully causing the FW version information after refreshing and expectation not to be inconsistent and will automatically be saved in result.log file.
CN201510767264.4A 2015-11-10 2015-11-10 Method for automatically testing out-of-band upgrading and degrading of RMC (Remote Management Controller) based on LINUX platform Pending CN105335263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510767264.4A CN105335263A (en) 2015-11-10 2015-11-10 Method for automatically testing out-of-band upgrading and degrading of RMC (Remote Management Controller) based on LINUX platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510767264.4A CN105335263A (en) 2015-11-10 2015-11-10 Method for automatically testing out-of-band upgrading and degrading of RMC (Remote Management Controller) based on LINUX platform

Publications (1)

Publication Number Publication Date
CN105335263A true CN105335263A (en) 2016-02-17

Family

ID=55285818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510767264.4A Pending CN105335263A (en) 2015-11-10 2015-11-10 Method for automatically testing out-of-band upgrading and degrading of RMC (Remote Management Controller) based on LINUX platform

Country Status (1)

Country Link
CN (1) CN105335263A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339323A (en) * 2016-11-01 2017-01-18 广东浪潮大数据研究有限公司 Upgrade and degradation test method, extensible firmware interface and system
CN106886440A (en) * 2017-02-24 2017-06-23 郑州云海信息技术有限公司 The version updating method of testing and device of a kind of BMC
CN107179991A (en) * 2017-05-17 2017-09-19 郑州云海信息技术有限公司 A kind of method of automatic checking Rack racks RMC stability
CN107894956A (en) * 2017-12-21 2018-04-10 郑州云海信息技术有限公司 A kind of long-range BIOS promotion and demotion refresh automated testing method
CN109062805A (en) * 2018-09-06 2018-12-21 郑州云海信息技术有限公司 A kind of AEP memory firmware promotion and demotion test method, device, terminal and storage medium
CN110928795A (en) * 2019-11-28 2020-03-27 苏州浪潮智能科技有限公司 Stability test method and device for upgrading storage system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593211A (en) * 2013-11-01 2014-02-19 浪潮电子信息产业股份有限公司 Method for refreshing and writing firmware programs through out-of-band isolation
CN104375910A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automated startup and shutdown testing method
CN104572227A (en) * 2015-02-06 2015-04-29 浪潮电子信息产业股份有限公司 Method for refreshing CPLD FW through BMC based on Itanium platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593211A (en) * 2013-11-01 2014-02-19 浪潮电子信息产业股份有限公司 Method for refreshing and writing firmware programs through out-of-band isolation
CN104375910A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automated startup and shutdown testing method
CN104572227A (en) * 2015-02-06 2015-04-29 浪潮电子信息产业股份有限公司 Method for refreshing CPLD FW through BMC based on Itanium platform

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339323A (en) * 2016-11-01 2017-01-18 广东浪潮大数据研究有限公司 Upgrade and degradation test method, extensible firmware interface and system
CN106886440A (en) * 2017-02-24 2017-06-23 郑州云海信息技术有限公司 The version updating method of testing and device of a kind of BMC
CN107179991A (en) * 2017-05-17 2017-09-19 郑州云海信息技术有限公司 A kind of method of automatic checking Rack racks RMC stability
CN107894956A (en) * 2017-12-21 2018-04-10 郑州云海信息技术有限公司 A kind of long-range BIOS promotion and demotion refresh automated testing method
CN109062805A (en) * 2018-09-06 2018-12-21 郑州云海信息技术有限公司 A kind of AEP memory firmware promotion and demotion test method, device, terminal and storage medium
CN110928795A (en) * 2019-11-28 2020-03-27 苏州浪潮智能科技有限公司 Stability test method and device for upgrading storage system

Similar Documents

Publication Publication Date Title
CN105335263A (en) Method for automatically testing out-of-band upgrading and degrading of RMC (Remote Management Controller) based on LINUX platform
CN104461611A (en) Method for refreshing node BIOSes of RACK cabinet in batches
CN105183497A (en) Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server
US20180212823A1 (en) Monitoring and management method for complete machine cabinet server
WO2017084275A1 (en) Software development integration method and apparatus
US8788239B2 (en) Methods, apparatus and articles of manufacture to test batch configurations
CN103530162A (en) Automatic online virtual machine software installing method and system
CN105260208A (en) RAID card driver automatic batch refreshing method for servers
CN102402430B (en) One utilizes script to generate random test example method and system
CN104204976A (en) Information processing apparatus, simulation method, and program
CN104407971A (en) Method for automatically testing embedded software
CN106775877A (en) A kind of firmware method for refreshing and a kind of server
CN103514023A (en) Method and system for off-line and automatically installing software of virtual machine
CN106681775A (en) Method for achieving online batch upgrading of hard disk firmware through RAID card under Linux system
CN105224458A (en) A kind of database method of testing and system
CN106484716A (en) Organizational structure method of adjustment and system
CN103645900A (en) Method and device for releasing software
CN105335265A (en) Automatic BMC upgrading and downgrading testing method based on LINUX platform
CN105260274A (en) Linux-based hard disk random hot plug stability detection method
US9535687B2 (en) Audited builds based upon separate class dependency records
EP3462388A1 (en) Method and system for processing engineering objects in an industrial automation environment
CN103475526A (en) IP setting and detecting method supporting multi-VLAN virtual machine
CN108228149A (en) It is a kind of can dynamical assemble service APP method for interface adaptation and device
CN105117329A (en) Application automatic online system 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

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