CN104572379A - RACK cabinet RMC login testing method - Google Patents
RACK cabinet RMC login testing method Download PDFInfo
- Publication number
- CN104572379A CN104572379A CN201510046142.6A CN201510046142A CN104572379A CN 104572379 A CN104572379 A CN 104572379A CN 201510046142 A CN201510046142 A CN 201510046142A CN 104572379 A CN104572379 A CN 104572379A
- Authority
- CN
- China
- Prior art keywords
- rmc
- test
- testing
- information
- rack
- 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
Abstract
The invention discloses a RACK cabinet RMC login testing method and belongs to the field of cabinet management and testing. The method includes the steps of firstly, configuring an expect interaction program to a shell testing script, setting a static IP for an RMC management module, connecting the RMC management module with the control node of a Linux system in a cabinet, and setting a static IP for the network port corresponding to the control node; secondly, at the control node, pinging the IP of the RMC management module, determining that connection is normal if pinging is successful, copying the testing script file to the same directory of the control node, giving execute permission to the testing script file, and testing at the control node; thirdly, monitoring information output in the executing process during testing until the testing is ended. By the method which is simple to operate, high in automation level, high in practicality and capable of saving manpower and increasing testing efficiency, automatic testing and result output of RMC login stability are achieved.
Description
Technical field
The present invention discloses the method for testing that a kind of RACK rack RMC logs in, and belongs to rack management testing field.
Background technology
The SmartRack whole machine cabinet server of the fusion architecture Product Family that tide is released, relatively traditional rack-mount server, feature is function centralization, integral module, function is thoroughly separated with supporting module, while the highly reliable operation of abundant guarantee system, user also can be helped significantly to reduce purchase and use cost.
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(Remont Management Controler that become frame by SmartRack whole machine cabinet server) manage power supply, the heat radiation of whole rack concentratedly; Wherein the stability of RMC determines the stability that whole machine cabinet is run greatly; For this reason in order to meet the rigors that internet big customer proposes, need to log in stability to RMC and test, basic demand logged in RMC once every one minute with SSH, and obtained the information of each administration module of RMC, then exited; Test like this needs to spend week age, and test time is longer, and by manually completing very labor intensive material resources.The invention provides the method for testing that a kind of RACK rack RMC logs in, the RMC adopting expect order script to realize logs in the automatic operating of test, achieve RMC to log in stability and automatically test and export with result, method of testing is simple to operate, and automaticity is high, and practicality is stronger, manpower can be saved, improving testing efficiency, effectively ensure that the stability that RMC runs, is the very effective method of this product quality of checking.
The abbreviation that the SSH that the present invention uses is Secure Shell, formulated by the network work group (Network Working Group) of IETF; SSH is based upon the security protocol on application layer and transport layer basis.SSH is at present comparatively reliable, aims at the agreement that telnet session and other network services provide security.
Summary of the invention
The present invention is directed to RMC login stability to need to test, and by manually completing the problem of testing very labor intensive material resources, the method of testing providing a kind of RACK rack RMC to log in, achieve RMC login stability and automatically test and result output, method of testing is simple to operate, automaticity is high, practicality is comparatively strong, can save manpower, improves testing efficiency, effectively ensure that the stability that RMC runs, is the very effective method of this product quality of checking.
The concrete scheme that the present invention proposes is:
The method of testing that RACK rack RMC logs in, concrete steps are:
When 1. using SSH to log in RMC, need, to shell test script configuration expect interactive program, to arrange expect interactive command and wait for the mutual time, exceed interaction time, represent mutual failure, will error information be exported; Arrange variable pw, its content is the password logging in the use of RMC needs, to use user to log in SSH mode; Arrange static IP to RMC administration module, and be connected by the Controlling vertex of RMC administration module with the linux system in rack, the corresponding network interface of Controlling vertex arranges static IP;
2. the IP of ping RMC administration module on Controlling vertex, ping logical expression connects normal, under test script file being copied to the same directory of Controlling vertex, and gives to test script file and performs authority, Controlling vertex is tested;
3. the information that implementation exports is monitored in test, until test terminates; During test execution, once test process occurs logging in abnormal, test stops, and exports error information, records wrong error information and makes mistakes the time, to find the reason of makeing mistakes and to recover test.
Described step 2. on Controlling vertex the IP of ping RMC administration module, namely the information containing " yes/no " or " password: " is exported in the output that on expect command wait, one is ordered, if the packets of information exported in exporting is containing " yes/no ", then send interactive command, " yes r ", replace artificial input " execution of yes enter key " if the packets of information exported in exporting is containing " password: ", illustrate that login needs to input login password, then send interactive command, " $ pw r ", replace artificial input " execution of password+enter key ", if the packets of information exported in exporting is containing the character of " * system* " pattern, explanation logins successfully, carry out next step, obtain RMC management information, represent that ping leads to connect normally.
Described step 2. in send " show summary r " order, perform the main information obtaining each administration module of RMC, and export, if the packets of information again exported is containing the character of " * system* " pattern, descriptive information obtains complete.
Described step 3. in use standard shell program, loop variable i is set, the value of i is 0, representative test number of days, variable start is set, for script starts the time performing the moment, while circulates, and i<7 represents that test number of days is less than 7, then proceed test, export the number of days that current test is carried out, be written to text, call test file and complete and automatically log in and obtain the function of RMC information, output display information, login test completes once to be waited for afterwards, and current date is terminated stored in after variable; Current date deducts Start Date, obtains performing number of days, and the number of days assignment that script has been performed is to loop variable i, and script performs this and exits.
Usefulness of the present invention is: the present invention is applicable to the test job that Rack whole machine cabinet RMC logs in stability, the RMC adopting expect order script to realize logs in the automatic operating of test, achieve RMC to log in stability and automatically test and export with result, method of testing is simple to operate, and automaticity is high, and practicality is stronger, manpower can be saved, improving testing efficiency, effectively ensure that the stability that RMC runs, is the very effective method of this product quality of checking.
Embodiment
Expect order by a series of expect-send to forming: judge whether there is the character of specifying, a normally prompt in the output information of a upper order by expect order designated program, then send specific response.By the method, arranging accordingly in a program, read, the process of the man-machine interactively (as inputted user name, password) needed for RMC login can being completed.In the test process that RMC logs in, judged by the automatic reading output information of program, and provide appointment input, then carry out next step.
It is example that shell script " RMCtest_v2.sh " completes the process that RMC logs in automatically, and concrete steps are:
When 1. using SSH to log in RMC, need, to shell test script configuration expect interactive program, to arrange expect interactive command and wait for the mutual time, exceed interaction time, represent mutual failure, will error information be exported; Arrange variable pw, its content is the password logging in the use of RMC needs, to use user to log in SSH mode; Arrange static IP as 192.168.1.251 to RMC administration module, and be connected by the Controlling vertex of RMC administration module with the linux system in rack, the corresponding network interface of Controlling vertex arranges static IP as 192.168.1.250;
2. the IP of ping RMC administration module on Controlling vertex, the information containing " yes/no " or " password: " is exported in the output of an order on expect command wait, if the packets of information exported in exporting is containing " yes/no ", then send interactive command, " yes r ", replace artificial input " execution of yes enter key " if the packets of information exported in exporting is containing " password: ", illustrate that login needs to input login password, then send interactive command, " $ pw r ", replace artificial input " execution of password+enter key ", if the packets of information exported in exporting is containing the character of " * system* " pattern, explanation logins successfully, carry out next step, obtain RMC management information, representing that ping leads to connects normally, send " show summary r " order, perform the main information obtaining each administration module of RMC, and export, if the packets of information again exported is containing the character of " * system* " pattern, descriptive information obtains complete, logs off, exits script, main program order is as follows:
expect {
"yes/no" { send "yes\r"; exp_continue}
"password:" { send "$pw\r" }
}
expect "*system*"
send "show summary\r"
expect "*system*"
send "exit\r"
exit 0
3. standard shell program is used, times.sh calls " RMCtest_v2.sh ", loop variable i is set, the value of i is 0, representative test number of days, variable start is set, for script starts the time performing the moment, while circulates, i<7 represents that test number of days is less than 7, then proceed test, export the number of days that current test is carried out, be written to text rmc.txt, call RMCtest_v2.sh to complete and automatically log in and obtain the function of RMC information, output display information, also writing in files rmc.txt, be convenient to follow-up checks, log in test and complete once wait afterwards 60 seconds, current date is terminated stored in after variable, current date deducts Start Date, obtains performing number of days, and the number of days assignment that script has been performed is to loop variable i, and script performs this and exits, main program order is as follows:
!/bin/bash
i=0
start=`date +%d`
while (($i<7));
do
echo “.........day $i........” |tee -a rmc.txt
./RMCtest_v2.sh |tee -a rmc.txt
sleep 60
end=`date +%d`
dif=$[ end - start ]
i=$dir
done
exit 0
The information that implementation exports is monitored, until test terminates in test; During test execution, once test process occurs logging in abnormal, test stops, and exports error information, records wrong error information and makes mistakes the time, to find the reason of makeing mistakes and to recover test.
Claims (4)
1. a method of testing for RACK rack RMC login, is characterized in that concrete steps are:
When 1. using SSH to log in RMC, need, to shell test script configuration expect interactive program, to arrange expect interactive command and wait for the mutual time, exceed interaction time, represent mutual failure, will error information be exported; Arrange variable pw, its content is the password logging in the use of RMC needs, to use user to log in SSH mode; Arrange static IP to RMC administration module, and be connected by the Controlling vertex of RMC administration module with the linux system in rack, the corresponding network interface of Controlling vertex arranges static IP;
2. the IP of ping RMC administration module on Controlling vertex, ping logical expression connects normal, under test script file being copied to the same directory of Controlling vertex, and gives to test script file and performs authority, Controlling vertex is tested;
3. the information that implementation exports is monitored in test, until test terminates; During test execution, once test process occurs logging in abnormal, test stops, and exports error information, records wrong error information and makes mistakes the time, to find the reason of makeing mistakes and to recover test.
2. the method for testing of a kind of RACK rack RMC login according to claim 1, it is characterized in that the IP of ping RMC administration module on Controlling vertex during described step 2., namely the information containing " yes/no " or " password: " is exported in the output that on expect command wait, one is ordered, if the packets of information exported in exporting is containing " yes/no ", then send interactive command, " yes r ", replace artificial input " execution of yes enter key " if the packets of information exported in exporting is containing " password: ", illustrate that login needs to input login password, then send interactive command, " $ pw r ", replace artificial input " execution of password+enter key ", if the packets of information exported in exporting is containing the character of " * system* " pattern, explanation logins successfully, carry out next step, obtain RMC management information, represent that ping leads to connect normally.
3. the method for testing of a kind of RACK rack RMC login according to claim 2, it is characterized in that sending " show summary r " order during described step 2., perform the main information obtaining each administration module of RMC, and export, if the packets of information again exported is containing the character of " * system* " pattern, descriptive information obtains complete.
4. the method for testing of a kind of RACK rack RMC login according to claim 2, it is characterized in that using standard shell program during described step 3., loop variable i is set, the value of i is 0, representative test number of days, variable start is set, for script starts the time performing the moment, while circulates, i<7 represents that test number of days is less than 7, then proceed test, export the number of days that current test is carried out, be written to text, call test file to complete and automatically log in and obtain the function of RMC information, output display information, login test completes once to be waited for afterwards, current date is terminated stored in after variable, current date deducts Start Date, obtains performing number of days, and the number of days assignment that script has been performed is to loop variable i, and script performs this and exits.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510046142.6A CN104572379A (en) | 2015-01-29 | 2015-01-29 | RACK cabinet RMC login testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510046142.6A CN104572379A (en) | 2015-01-29 | 2015-01-29 | RACK cabinet RMC login testing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104572379A true CN104572379A (en) | 2015-04-29 |
Family
ID=53088513
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510046142.6A Pending CN104572379A (en) | 2015-01-29 | 2015-01-29 | RACK cabinet RMC login testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572379A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105243017A (en) * | 2015-10-20 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Test method and system capable of carrying out login authentication on the basis of SSH (Secure Shell) protocol |
CN105302680A (en) * | 2015-11-04 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | Automated testing method of RACK AC (Alternating Current) stability |
CN105471675A (en) * | 2015-11-20 | 2016-04-06 | 浪潮电子信息产业股份有限公司 | Method and system of testing nodes in batches |
CN108763019A (en) * | 2018-05-22 | 2018-11-06 | 郑州云海信息技术有限公司 | A method of it is tested simultaneously towards SR whole machine cabinets and captures all node power consumptions |
CN109587282A (en) * | 2018-11-12 | 2019-04-05 | 郑州云海信息技术有限公司 | A kind of method and system towards SR whole machine cabinet automatic configuration node IP |
CN109597653A (en) * | 2018-12-04 | 2019-04-09 | 郑州云海信息技术有限公司 | Method, BIOS and the BMC of BIOS and BMC command interaction |
CN111131152A (en) * | 2019-11-15 | 2020-05-08 | 苏州浪潮智能科技有限公司 | Automatic verification method and system for cross-platform remote login protection system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1113362A2 (en) * | 1999-12-29 | 2001-07-04 | Infineon Technologies AG | Integrated semiconductor memory with a memory unit for storing addresses of faulty memory cells |
CN103092754A (en) * | 2013-01-07 | 2013-05-08 | 上海斐讯数据通信技术有限公司 | Automatic test method of long distance multi-device condition |
US8458538B2 (en) * | 2009-02-27 | 2013-06-04 | Advanced Micro Devices, Inc. | Latency detection in a memory built-in self-test by using a ping signal |
CN103973515A (en) * | 2014-05-12 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Network card stability testing method |
CN104182288A (en) * | 2014-08-18 | 2014-12-03 | 浪潮电子信息产业股份有限公司 | Method for automatically testing power consumption of server cluster system |
-
2015
- 2015-01-29 CN CN201510046142.6A patent/CN104572379A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1113362A2 (en) * | 1999-12-29 | 2001-07-04 | Infineon Technologies AG | Integrated semiconductor memory with a memory unit for storing addresses of faulty memory cells |
US8458538B2 (en) * | 2009-02-27 | 2013-06-04 | Advanced Micro Devices, Inc. | Latency detection in a memory built-in self-test by using a ping signal |
CN103092754A (en) * | 2013-01-07 | 2013-05-08 | 上海斐讯数据通信技术有限公司 | Automatic test method of long distance multi-device condition |
CN103973515A (en) * | 2014-05-12 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Network card stability testing method |
CN104182288A (en) * | 2014-08-18 | 2014-12-03 | 浪潮电子信息产业股份有限公司 | Method for automatically testing power consumption of server cluster system |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105243017A (en) * | 2015-10-20 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Test method and system capable of carrying out login authentication on the basis of SSH (Secure Shell) protocol |
CN105243017B (en) * | 2015-10-20 | 2018-09-28 | 上海斐讯数据通信技术有限公司 | The test method and system of debarkation authentication are carried out based on SSH agreements |
CN105302680A (en) * | 2015-11-04 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | Automated testing method of RACK AC (Alternating Current) stability |
CN105471675A (en) * | 2015-11-20 | 2016-04-06 | 浪潮电子信息产业股份有限公司 | Method and system of testing nodes in batches |
CN108763019A (en) * | 2018-05-22 | 2018-11-06 | 郑州云海信息技术有限公司 | A method of it is tested simultaneously towards SR whole machine cabinets and captures all node power consumptions |
CN109587282A (en) * | 2018-11-12 | 2019-04-05 | 郑州云海信息技术有限公司 | A kind of method and system towards SR whole machine cabinet automatic configuration node IP |
CN109587282B (en) * | 2018-11-12 | 2022-02-18 | 郑州云海信息技术有限公司 | Method and system for SR (scheduling request) oriented automatic node IP (Internet protocol) configuration of complete equipment cabinet |
CN109597653A (en) * | 2018-12-04 | 2019-04-09 | 郑州云海信息技术有限公司 | Method, BIOS and the BMC of BIOS and BMC command interaction |
CN111131152A (en) * | 2019-11-15 | 2020-05-08 | 苏州浪潮智能科技有限公司 | Automatic verification method and system for cross-platform remote login protection system |
CN111131152B (en) * | 2019-11-15 | 2022-06-10 | 苏州浪潮智能科技有限公司 | Automatic verification method and system for cross-platform remote login protection system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104572379A (en) | RACK cabinet RMC login testing method | |
CN108600029B (en) | Configuration file updating method and device, terminal equipment and storage medium | |
CN107291565B (en) | Operation and maintenance visual automatic operation platform and implementation method | |
JP6174604B2 (en) | Automated construction of cloud computing stamps | |
CN109495308B (en) | Automatic operation and maintenance system based on management information system | |
EP2932387B1 (en) | Deploying a hardware inventory as a cloud-computing stamp | |
WO2019184164A1 (en) | Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium | |
CN105511872A (en) | Application automatic deployment method based on cloud computing platform | |
CN104317617A (en) | Batch BMC Firmware refreshing method | |
CN104317714A (en) | Method for automatically testing stability of rack based on expect | |
JP4500118B2 (en) | Storage device | |
CN109639803A (en) | A kind of method and system by BMC Long-range Automatic Deployment server OS | |
CN110138876A (en) | Task deployment method, apparatus, equipment and platform | |
CN106656927A (en) | Method and device for enabling Linux account to be added to AD domain | |
CN103490945A (en) | Method for detecting maximum telnet user quantity | |
CN112214227A (en) | Edge server mirror image customization and deployment system and method | |
WO2020151447A1 (en) | Offline configuration method and apparatus for smart device | |
TW201308072A (en) | Method and system for testing stability of server | |
CN109286512A (en) | The backup method of network equipment information, device and system | |
CN104965741A (en) | Method and apparatus for installing real-time application clusters | |
CN112291081A (en) | Method, system and storage medium for auditing controller cluster data by cloud management platform | |
Cherukuri et al. | Network virtualization in GpENI: Framework, implementation & integration experience | |
US10613708B2 (en) | Cloning a hypervisor | |
Sicoe et al. | Fully Automated Testbed of Cisco Virtual Routers in Cloud Based Environments | |
Cisco | Release Notes for Campus Manager 3.1 on AIX and HP-UX |
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: 20150429 |
|
RJ01 | Rejection of invention patent application after publication |