CN105893261A - Method for automatically testing server BMC stability - Google Patents

Method for automatically testing server BMC stability Download PDF

Info

Publication number
CN105893261A
CN105893261A CN201610200372.8A CN201610200372A CN105893261A CN 105893261 A CN105893261 A CN 105893261A CN 201610200372 A CN201610200372 A CN 201610200372A CN 105893261 A CN105893261 A CN 105893261A
Authority
CN
China
Prior art keywords
result
dir
bmc
information
test
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
CN201610200372.8A
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 CN201610200372.8A priority Critical patent/CN105893261A/en
Publication of CN105893261A publication Critical patent/CN105893261A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for automatically testing the server BMC stability, and belongs to the field of server detection. A stability test under BMC is executed by adopting a shell script, rapid and continuous automatic detection of BMC information of multiple servers, testing data is automatically recorded and arranged, and finally a visual testing result is formed. The process is automatically completed thoroughly, the operation process is simplified, the testing cost and manpower consumption are lowered, unnecessary man-machine interaction processes are reduced, and working efficiency is greatly improved.

Description

A kind of method of Automated inspection server B MC stability
Technical field
The present invention discloses a kind of method of Automated inspection server B MC stability, belongs to server detection field.
Background technology
BMC:Baseboard Management Controller, Baseboard Management Controller, support industry standard IPMI specification.This specification describes the management function being built on mainboard.These functions include: local and remote diagnosis, Control station support, configuration management, hardware management and failture evacuation etc..
IPMI, Intelligent Platform Management Interface, i.e. IPMI is to make Hardware management possesses the universal interface standard of new generation of " intelligent ".User can utilize IPMI to monitor, and the physics of server is special Levy, such as temperature, voltage, fan operating state, power supply supply and cabinet invasion etc..Advantage maximum for IPMI is that it is only Standing on BIOS and OS, so user is no matter when start or shutdown, just can realize as long as switching on power Monitoring to server B MC.
Along with the development of IT technology, Informatization Service and the most powerful cloud computing service stability to server Require more and more higher.Server is required for carrying out product stress test in development phase and production phase, and BMC stability is it In an important test, the state of Fru, Lan, Log, Sensor can be looked into during using server by user Seeing, especially some Internet subscribers can persistently monitor the state of BMC, and each state value of server B MC is the most reliable and the most stable, needs Test process is rigid in checking up.But server research and development kind gets more and more, and carries out the stress test of many moneys product the most simultaneously Consumption manpower and materials are huge, are unfavorable for improving efficiency.The present invention provides the side of a kind of Automated inspection server B MC stability Method, uses shell script to realize the stability test under BMC, it is possible to achieve the quick and persistence of multiple servers BMC information Automatic detection, automatically record and arrange test data, ultimately forming test result intuitively, this process is fully automated to be completed, Simplify operating process, reduce testing cost and manpower consumption, decrease unnecessary man-machine interactively process, substantially increase work Make efficiency.
Summary of the invention
The present invention is directed to the problems of the prior art, it is provided that a kind of method of Automated inspection server B MC stability, adopt Realize the stability test under BMC with shell script, simplify operating process, reduce testing cost and manpower consumption, significantly carry High work efficiency.
The concrete scheme that the present invention proposes is:
A kind of method of Automated inspection server B MC stability:
Test machine installs operating system and the shell test script of linux kernel, in root identity logs to operating system, defeated BMC state is obtained after entering to check server B MC management IP, ping logical;
Correlated variables, and script operational factor are set;
Set up destination file folder, different BMC state outcome be recorded in different document.
Described shell test script arranges filter program, and the integration to test result processes, and only retains critical data.
Respective BMC state is obtained after described test machine input multiple stage inspection server B MC management IP, respective ping is logical.
Described different BMC state outcome includes recording fru information result, record chassis status information, record lan Information, record mc information, record sensor information.
Run after fame with time and date and set up destination file folder.
Usefulness of the present invention is:
Test machine of the present invention installs operating system and the shell test script of linux kernel, and root identity logs is to operating system In, obtain BMC state after incoming inspection server B MC management IP, ping is logical;Correlated variables, and script operational factor are set;Build Vertical destination file folder, recorded different BMC state outcome in different document;
The present invention uses the mode Aulomatizeted Detect server B MC stability of shell script, it is possible to achieve to Fru, Lan, Log, The synchronous detecting of CPU&PCH Sensor etc., it is possible to achieve quickly detecting with the automatic of persistence of multiple servers BMC information, Automatically record and arrange test data, ultimately forming test result intuitively.
Accompanying drawing explanation
Fig. 1 the inventive method schematic flow sheet.
Detailed description of the invention
In conjunction with accompanying drawing, the present invention will be further described.
Utilizing the inventive method, concrete operations are:
Setup test machine, installs operating system based on linux kernel, after installation, with root identity logs to operation system In system;Can be by under test program and subtest procedural copy to any one file under system;
BMC management IP and the user name password of separate unit or multiple servers can be inputted, after ping is logical, obtain BMC state;
echo -e " ./bmcStress_remote.sh <ip> <user> <password>"
Operation program, arranges correlated variables, and script runs cycle-index, inputs cycle-index, can pass through this parameter, comes The checking each state stability of BMC for a long time, one group of code is as follows:
#STRESS_TIME: MINUTE (UNIT)
STRESS_TIME=2880
INTERVAL_TIME=5
LOOP=`echo ${STRESS_TIME}*60/${INTERVAL_TIME}|bc`
(3) run after fame with time and date set up destination file folder
RESULT_DIR=`date +%Y%m%d-%H%M`
if [ ! -d $RESULT_DIR ]
then
mkdir -p $RESULT_DIR
else
fi
Recorded in different document by difference BMC state outcome, in conjunction with above-mentioned code, one group of code is as follows:
IPMI="/usr/bin/ipmitool"
function SENSOR_RECORD ()
{
$ IPMI fru > > $ RESULT_DIR/fru.log &----reads and records fru information
$ IPMI chassis status > > $ RESULT_DIR/chassis_status.log &----read and record Chassis status information
$ IPMI lan print 1 > > $ RESULT_DIR/lan_print_1.log &----reads and records lan information
$ IPMI mc info > > $ RESULT_DIR/mc_info.log &----reads and records mc information
$ IPMI sel list > > $ RESULT_DIR/sel_list.log &----reading also log information
$ IPMI sensor get CPU0_Temp > > $ RESULT_DIR/CPU0_Temp.log &---reads and records respectively Sensor information
$IPMI sensor get CPU1_Temp >> $RESULT_DIR/CPU1_Temp.log &
$IPMI sensor get PCH_Temp >> $RESULT_DIR/PCH_Temp.log &
$IPMI sensor get Inlet_Temp >> $RESULT_DIR/Inlet_Temp.log &
$IPMI sensor get Outlet_Temp >> $RESULT_DIR/Outlet_Temp.log &
$IPMI sensor get SYS_12V >> $RESULT_DIR/SYS_12V.log &
$IPMI sensor get SYS_5V >> $RESULT_DIR/SYS_5V.log &
$IPMI sensor get SYS_3.3V >> $RESULT_DIR/SYS_3.3V.log &
$IPMI -b 0x6 -t 0x2c raw 0x2e 0xc8 0x57 0x01 0x00 0x01 0x1 0x0 |/usr/bin/ xargs|awk '{print strtonum("0x"$4)}' >> $RESULT_DIR/pw_cpu.log &
$IPMI -b 0x6 -t 0x2c raw 0x2e 0xc8 0x57 0x01 0x00 0x01 0x2 0x0 |/usr/bin/ xargs|awk '{print strtonum("0x"$4)}' >> $RESULT_DIR/pw_mem.log &
$IPMI sensor get Total_Power >> $RESULT_DIR/pw_total.log &
}
Filter program is set, processes completing the integration to test result, only retain critical data, in conjunction with above-mentioned code, one Group code is as follows:
function filter_sensor()
{
Awk '/Sensor Reading/{print $4}' $RESULT_DIR/CPU0_Temp.log >> $RESULT_ DIR/CPU0_Temp.tmp
awk '/Sensor Reading/{print $4}' $RESULT_DIR/CPU1_Temp.log >> $RESULT_ DIR/CPU1_Temp.tmp
awk '/Sensor Reading/{print $4}' $RESULT_DIR/PCH_Temp.log >> $RESULT_DIR/ PCH_Temp.tmp
awk '/Sensor Reading/{print $4}' $RESULT_DIR/Inlet_Temp.log >> $RESULT_ DIR/Inlet_Temp.tmp
awk '/Sensor Reading/{print $4}' $RESULT_DIR/Outlet_Temp.log >> $RESULT_ DIR/Outlet_Temp.tmp
awk '/Sensor Reading/{print $4}' $RESULT_DIR/SYS_12V.log >> $RESULT_DIR/ SYS_12V.tmp
awk '/Sensor Reading/{print $4}' $RESULT_DIR/SYS_5V.log >> $RESULT_DIR/ SYS_5V.tmp
awk '/Sensor Reading/{print $4}' $RESULT_DIR/SYS_3.3V.log >> $RESULT_DIR/ SYS_3.3V.tmp
awk '/Sensor Reading/{print $4}' $RESULT_DIR/pw_total.log >> $RESULT_DIR/ pw_total.tmp
echo "CPU0_Temp,CPU1_Temp,PCH_Temp,Inlet_Temp,Outlet_Temp,SYS_12V,SYS_5V, SYS_3.3V,pw_cpu,pw_mem,pw_total" > $RESULT_DIR/Sensor_Total.csv
paste -d, $RESULT_DIR/CPU0_Temp.tmp $RESULT_DIR/CPU1_Temp.tmp $RESULT_ DIR/PCH_Temp.tmp $RESULT_DIR/Inlet_Temp.tmp $RESULT_DIR/Outlet_Temp.tmp $ RESULT_DIR/SYS_12V.tmp $RESULT_DIR/SYS_5V.tmp $RESULT_DIR/SYS_3.3V.tmp $ RESULT_DIR/pw_cpu.log $RESULT_DIR/pw_mem.log $RESULT_DIR/pw_total.tmp >> $ RESULT_DIR/Sensor_Total.csv
Check operation result, result is redirected to after having tested test the file of generation of running after fame with date and time under catalogue Folder, has Sensor_Total.csv file, records the test result of all tests in this file below file.
The present invention can realize the monitoring of each state value of multiple servers BMC by script, and the result of return can redirect In document, in order to check that data are the most normal.Traditional mode we be all manually to set up various environment, then by looking into See BMC daily record, to check the most each state value has exception.Automatically performed by script, it is possible to reduce manually Operation, it is also possible to preserve complete data, improve the accuracy of test.
This test program, at different product, all can run under different OS, and can monitor the BMC of multiple servers simultaneously State, this procedure operation is easy, has stronger ease for use;It is easy to safeguard;Without lengthy and jumbled result treatment, it is greatly saved test Time, improve testing efficiency.

Claims (5)

1. a method for Automated inspection server B MC stability, is characterized in that
Test machine installs operating system and the shell test script of linux kernel, in root identity logs to operating system, defeated BMC state is obtained after entering to check server B MC management IP, ping logical;
Correlated variables, and script operational factor are set;
Set up destination file folder, different BMC state outcome be recorded in different document.
Method the most according to claim 1, is characterized in that shell test script arranges filter program, to test result Integration process, only retain critical data.
Method the most according to claim 1 and 2, is characterized in that test machine input multiple stage inspection server B MC management IP, respectively Respective BMC state is obtained after ping is logical.
Method the most according to claim 3, is characterized in that different BMC state outcome includes recording fru information result, note Record chassis status information, record lan information, record mc information, record sensor information.
Method the most according to claim 4, it is characterized in that runs after fame with time and date sets up destination file folder.
CN201610200372.8A 2016-04-01 2016-04-01 Method for automatically testing server BMC stability Pending CN105893261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610200372.8A CN105893261A (en) 2016-04-01 2016-04-01 Method for automatically testing server BMC stability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610200372.8A CN105893261A (en) 2016-04-01 2016-04-01 Method for automatically testing server BMC stability

Publications (1)

Publication Number Publication Date
CN105893261A true CN105893261A (en) 2016-08-24

Family

ID=57011826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610200372.8A Pending CN105893261A (en) 2016-04-01 2016-04-01 Method for automatically testing server BMC stability

Country Status (1)

Country Link
CN (1) CN105893261A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407054A (en) * 2016-08-30 2017-02-15 浪潮(北京)电子信息产业有限公司 BMC automatic testing system and method
CN106776340A (en) * 2016-12-30 2017-05-31 广东浪潮大数据研究有限公司 A kind of general server S ensor automatic test approach
CN107026757A (en) * 2017-04-14 2017-08-08 广东浪潮大数据研究有限公司 A kind of system and method for Server remote monitoring management
CN107360063A (en) * 2017-09-06 2017-11-17 郑州云海信息技术有限公司 A kind of automated network method for testing pressure
CN107645420A (en) * 2017-10-23 2018-01-30 郑州云海信息技术有限公司 A kind of method based on linux automatically collecting BMC fault messages
CN107861831A (en) * 2017-12-07 2018-03-30 郑州云海信息技术有限公司 A kind of method of automatic quick addition BMC sel daily records
CN108089566A (en) * 2017-11-23 2018-05-29 郑州云海信息技术有限公司 A kind of BMC stability parallel test method and system
CN108173712A (en) * 2017-12-26 2018-06-15 郑州云海信息技术有限公司 A kind of double-mirror BMC stability test methods
CN108365998A (en) * 2018-01-03 2018-08-03 郑州云海信息技术有限公司 A method of verification NCSI stability
CN108829594A (en) * 2018-06-07 2018-11-16 郑州云海信息技术有限公司 The method and system of automatic test BMC web assets information function under a kind of Linux
CN108845909A (en) * 2018-06-20 2018-11-20 郑州云海信息技术有限公司 A kind of BMC method for testing pressure parallel based on Python
CN109408390A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of BMC login user stability test method, apparatus, terminal and storage medium
CN109446014A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 A kind of BMC test Information Authentication method, apparatus, terminal and storage medium
CN109981417A (en) * 2019-04-08 2019-07-05 苏州浪潮智能科技有限公司 A kind of test method and device of server state monitoring stability
CN111181808A (en) * 2019-12-28 2020-05-19 苏州浪潮智能科技有限公司 Method and system for testing BMC IP access control

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6002869A (en) * 1997-02-26 1999-12-14 Novell, Inc. System and method for automatically testing software programs
CN101887392A (en) * 2010-07-06 2010-11-17 中兴通讯股份有限公司 Method and device for testing software system operation stability
CN104360922A (en) * 2014-10-20 2015-02-18 浪潮电子信息产业股份有限公司 Method for automatically monitoring BMC working state based on ipmitool

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6002869A (en) * 1997-02-26 1999-12-14 Novell, Inc. System and method for automatically testing software programs
CN101887392A (en) * 2010-07-06 2010-11-17 中兴通讯股份有限公司 Method and device for testing software system operation stability
CN104360922A (en) * 2014-10-20 2015-02-18 浪潮电子信息产业股份有限公司 Method for automatically monitoring BMC working state based on ipmitool

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407054B (en) * 2016-08-30 2020-02-04 苏州浪潮智能科技有限公司 BMC automatic test system and method
CN106407054A (en) * 2016-08-30 2017-02-15 浪潮(北京)电子信息产业有限公司 BMC automatic testing system and method
CN106776340A (en) * 2016-12-30 2017-05-31 广东浪潮大数据研究有限公司 A kind of general server S ensor automatic test approach
CN107026757A (en) * 2017-04-14 2017-08-08 广东浪潮大数据研究有限公司 A kind of system and method for Server remote monitoring management
CN107360063A (en) * 2017-09-06 2017-11-17 郑州云海信息技术有限公司 A kind of automated network method for testing pressure
CN107645420A (en) * 2017-10-23 2018-01-30 郑州云海信息技术有限公司 A kind of method based on linux automatically collecting BMC fault messages
CN108089566A (en) * 2017-11-23 2018-05-29 郑州云海信息技术有限公司 A kind of BMC stability parallel test method and system
CN108089566B (en) * 2017-11-23 2020-09-22 苏州浪潮智能科技有限公司 BMC stability parallel test method and system
CN107861831A (en) * 2017-12-07 2018-03-30 郑州云海信息技术有限公司 A kind of method of automatic quick addition BMC sel daily records
CN108173712A (en) * 2017-12-26 2018-06-15 郑州云海信息技术有限公司 A kind of double-mirror BMC stability test methods
CN108365998A (en) * 2018-01-03 2018-08-03 郑州云海信息技术有限公司 A method of verification NCSI stability
CN108829594A (en) * 2018-06-07 2018-11-16 郑州云海信息技术有限公司 The method and system of automatic test BMC web assets information function under a kind of Linux
CN108845909A (en) * 2018-06-20 2018-11-20 郑州云海信息技术有限公司 A kind of BMC method for testing pressure parallel based on Python
CN109408390A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of BMC login user stability test method, apparatus, terminal and storage medium
CN109446014A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 A kind of BMC test Information Authentication method, apparatus, terminal and storage medium
CN109981417A (en) * 2019-04-08 2019-07-05 苏州浪潮智能科技有限公司 A kind of test method and device of server state monitoring stability
CN111181808A (en) * 2019-12-28 2020-05-19 苏州浪潮智能科技有限公司 Method and system for testing BMC IP access control
CN111181808B (en) * 2019-12-28 2022-02-18 苏州浪潮智能科技有限公司 Method and system for testing BMC IP access control

Similar Documents

Publication Publication Date Title
CN105893261A (en) Method for automatically testing server BMC stability
US9954727B2 (en) Automatic debug information collection
CN107193713B (en) FPGA and method for realizing mainboard management control
TWI450103B (en) Remote management systems and methods for servers, and computer program products thereof
US10296434B2 (en) Bus hang detection and find out
CN104536875A (en) Automatic server restart testing method based on IPMI
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
CN104536855A (en) Fault detection method and device
CN104360922A (en) Method for automatically monitoring BMC working state based on ipmitool
CN103973515A (en) Network card stability testing method
CN105223889A (en) A kind of method being applicable to the automatic monitoring PMC RAID card daily record of producing line
CN104536860A (en) Hard disk sequence marshalling method based on real-time JBOD monitoring mode
CN104794033A (en) CPU low-frequency fault positioning method and device based on BMC
CN103049282A (en) Method for collecting system serial port information through business-manager-consumer (BMC) based on Intel Boxboro-EX platform
US11556652B2 (en) End-point visibility
CN104615519A (en) Method for detecting loss of memory capacity of server under LINUX system
CN109240865A (en) A kind of AC test method, device, terminal and the storage medium of AEP memory
CN111176736B (en) Server mainboard power-on and power-off test method and system
CN106201812A (en) A kind of BMCSensor pressure monitor method of testing based on IPMI service
CN106201797A (en) The method that fatigue tester collocation 4U tool realizes multinode AC test
CN108845909A (en) A kind of BMC method for testing pressure parallel based on Python
CN104598283A (en) Realization method of single-architecture multi-structure BMC firmware program
CN104750600B (en) Equipment state recording method and system
CN109408312B (en) Server operating temperature test system and equipment
CN110187922A (en) It is arranged and verifies the method, apparatus, equipment and storage medium of BIOS parameter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination