CN105335263A - RMC out-of-band upgrading and downgrading automatic test method based on LINUX platform - Google Patents
RMC out-of-band upgrading and downgrading automatic test method based on LINUX platform Download PDFInfo
- 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
- 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 description 3
- 238000012360 testing method Methods 0.000 claims abstract description 62
- 238000013459 approach Methods 0.000 claims description 12
- 238000011010 flushing procedure Methods 0.000 claims description 5
- 230000015556 catabolic process Effects 0.000 claims description 4
- 238000012790 confirmation Methods 0.000 claims description 4
- 238000006731 degradation reaction Methods 0.000 claims description 4
- 238000001514 detection method Methods 0.000 abstract description 2
- 238000007726 management method Methods 0.000 description 7
- 238000009863 impact test Methods 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000013112 stability test Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses an RMC out-of-band upgrading and downgrading automatic testing method based on an LINUX platform, belonging to the field of RMC testing; the invention is based on LINUX platform, and can automatically test RMC out-of-band upgrading and downgrading without human intervention; the testing method has the advantages that the testing method is simple to operate, the time for manual detection operation and intervention is greatly reduced, the practicability is high, the testing can be flexibly carried out according to the testing requirements, the result analysis is clear, and the time cost is greatly saved.
Description
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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510767264.4A CN105335263A (en) | 2015-11-10 | 2015-11-10 | RMC out-of-band upgrading and downgrading automatic test method 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 | RMC out-of-band upgrading and downgrading automatic test method 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 | RMC out-of-band upgrading and downgrading automatic test method based on LINUX platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105335263A (en) |
Cited By (6)
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)
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 | 浪潮电子信息产业股份有限公司 | Automatic power-on and power-off test method |
CN104572227A (en) * | 2015-02-06 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Method for refreshing CPLD FW through BMC based on Itanium platform |
-
2015
- 2015-11-10 CN CN201510767264.4A patent/CN105335263A/en active Pending
Patent Citations (3)
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 | 浪潮电子信息产业股份有限公司 | Automatic power-on and power-off test method |
CN104572227A (en) * | 2015-02-06 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Method for refreshing CPLD FW through BMC based on Itanium platform |
Cited By (6)
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) | RMC out-of-band upgrading and downgrading automatic test method based on LINUX platform | |
CN102402430B (en) | One utilizes script to generate random test example method and system | |
US20180212823A1 (en) | Monitoring and management method for complete machine cabinet server | |
CN104461611A (en) | Method for refreshing node BIOS (basic input/output system) of RACK (RACK operating system) in batches | |
CN105183497A (en) | Method for automatically refreshing BIOS (basic input output system) in batches by universal server | |
CN105260208A (en) | Method for automatically refreshing RAID card drive in batches by server | |
CN105224458A (en) | A kind of database method of testing and system | |
CN104204976A (en) | Information processing apparatus, simulation method, and program | |
CN106681775A (en) | Method for achieving online batch upgrading of hard disk firmware through RAID card under Linux system | |
CN106775877A (en) | A kind of firmware method for refreshing and a kind of server | |
CN106484716A (en) | Organizational structure method of adjustment and system | |
CN103514023A (en) | Method and system for off-line and automatically installing software of virtual machine | |
CN103019791A (en) | Software deploying method and system | |
CN105335265A (en) | LINUX platform-based BMC upgrading and downgrading automatic testing method | |
CN103645900A (en) | Method and device for releasing software | |
US20190095449A1 (en) | Method and system for processing engineering objects in an industrial automation environment | |
CN104966021A (en) | Creating and analytic methods and device for security baseline data files | |
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 | |
CN113759879B (en) | Vehicle-mounted Ethernet DoIP diagnosis and writing test method and system based on L3 whole vehicle architecture | |
CN115983173B (en) | Register model generation method, device, computer equipment and storage medium | |
CN110262374A (en) | A kind of development platform of rolling process control system | |
CN110472298B (en) | Method, device, equipment and storage medium for constructing electric power market model | |
CN103970967A (en) | Electromagnetic transient simulation analysis system of electric power system | |
CN105373398A (en) | Whole cabinet server BMC IP batch setting method based on Xshell script |
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 |
Application publication date: 20160217 |
|
RJ01 | Rejection of invention patent application after publication |