CN108089566A - A kind of BMC stability parallel test method and system - Google Patents

A kind of BMC stability parallel test method and system Download PDF

Info

Publication number
CN108089566A
CN108089566A CN201711182060.XA CN201711182060A CN108089566A CN 108089566 A CN108089566 A CN 108089566A CN 201711182060 A CN201711182060 A CN 201711182060A CN 108089566 A CN108089566 A CN 108089566A
Authority
CN
China
Prior art keywords
bmc
test
testing machine
remote testing
measured
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.)
Granted
Application number
CN201711182060.XA
Other languages
Chinese (zh)
Other versions
CN108089566B (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201711182060.XA priority Critical patent/CN108089566B/en
Publication of CN108089566A publication Critical patent/CN108089566A/en
Application granted granted Critical
Publication of CN108089566B publication Critical patent/CN108089566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of BMC stability parallel test methods, comprise the following steps:Parameter configuration is carried out to remote testing machine;Remote testing machine and the variate-value of BMC to be measured are identified from configuration file;Test content is encapsulated as several mission functions;It is established respectively with interior test script and gives remote testing machine distributed tasks with outer test script.Of the invention to be applicable in for server of all mainstreams with BMC module, the procedure operation is easy, clear in structure between each module in program with stronger ease for use, convenient for safeguarding;Without lengthy and jumbled result treatment, the testing time is greatly saved, improves testing efficiency.

Description

A kind of BMC stability parallel test method and system
Technical field
The present invention relates to server technical field of measurement and test, especially a kind of BMC stability parallel test method and system.
Background technology
IPMI (IntelligentPlatformManagementInterface) i.e. Intelligent Platform Management Interface is to make firmly Part management possesses the universal interface standard of new generation of " intelligence ".User can utilize the physical features of IPMI monitoring servers, Such as temperature, voltage, electric fan working condition, power supply supply and cabinet invasion.The advantage of IPMI maximums is that it is independently of CPU, BIOS and OS's, so user is realized as long as powering on to clothes no matter in the state of starting shooting or shutting down The monitoring of business device.IPMI is a kind of standard of specification, and most important one physical unit is exactly BMC (BaseboardManagement Controller), a kind of embedded management microcontroller, it is equivalent to entire platform management " brain ", the data of each sensor can be monitored by its IPMI and record the daily record of various events.
Shell refers to the software of " provide user and use interface ".It is similar to command under DOS and later cmd.exe.It receives user command, then calls corresponding application program.It is a kind of programming language again simultaneously.As Command lanuage, its interactive mode are explained and are performed order input by user or automatically explain and perform a pre-set company The order of string;As programming language, it defines various variables and parameter, and provides many and just have in high-level language Some control structures, including Xun Huan and branch.
With the continuous development of cloud computing, various information service is higher and higher to the stability requirement of server.It is opening Hair stage and production phase producer are required for carrying out stability test to server product.Traditional BMC stability tests are general Single test item is tested one by one by instrument or script, if BMC is with interior pressure test, the test of BMC band external pressures, network Stability test, OS interaction pressure tests etc..One-key start is unable to, causes test execution less efficient.
The content of the invention
The object of the present invention is to provide a kind of BMC stability parallel test method and system, realize it is to BMC stability and Row test, can greatly reduce artificial participation, improve integrated testability efficiency.
To achieve the above object, the present invention uses following technical proposals:
A kind of BMC stability parallel test method, comprises the following steps:
Parameter configuration is carried out to remote testing machine;
Remote testing machine and the variate-value of BMC to be measured are identified from configuration file;
Test content is encapsulated as several mission functions;
It is established respectively with interior test script and gives remote testing machine distributed tasks with outer test script.
Further, it is described that parameter configuration is carried out to remote testing machine, including:Remote testing machine is completed by configuration file IP address, user name, password, testing time parameter configuration.
Further, it is described that remote testing machine and the variate-value of BMC to be measured are identified from configuration file, including:System from Being obtained in configuration file, which includes remote testing machine IP address variable, remote testing machine user name variable, remote testing secret code, becomes Amount, BMCIP address variables to be measured, BMC user names variable to be measured, the parameter of BMC cryptographic variables to be measured and time variable to be tested Value.
Further, it is described that test content is encapsulated as several mission functions, including:
It establishes and is used for the presence of the file for being known as server Log daily records to be measured with date name;
It is defined as follows mission function:
The local session resources of BMC are run to full Fun_BMCinBand;
The outer session resources of the band of BMC are run into full Fun_BMCoutBand;
Record BMC network connection states per second and the Fun_NetMoniter preserved;
The pressure test of OS is alternately performed, realizes the Fun_OSStress of the interaction pressure of BMC and OS;
Remote testing machine task is distributed, test starting, stopping, the Main functions of result treatment.
Further, test script includes function Fun_BMCinBand and function Fun_OSStress in the band;It is described Function Fun_BMCoutBand and function Fun_NetMoniter is included with outer test script;With interior test script and with outer test Script is controlled by respective Main functions perform respectively.
A kind of BMC stability parallel test system, including:
Parameter configuration module is completed to remote testing machine parameter configuration;
Parameter identification module completes the variable parameter identification to remote testing machine and BMC to be measured;
Function definition module is packaged into difference in functionality function by shell scripts by content is tested;
Test assignment package module realizes the different encapsulation with interior test and with outer test.
Further, further include:Test result judgment module realizes the record to test process BMC network-in-dialing states, Complete to BMC to be measured whether normally to judgement.
The effect provided in the content of the invention is only the effect of embodiment rather than invents all whole effects, above-mentioned A technical solution in technical solution has the following advantages that or advantageous effect:
Original test item is made different Function by the present invention by Shell scripts, is realized not by Shell scripts With the execution sequence of Function or the parallel execution of realization, one key of test assignment finally can be achieved and distribute, and BMC pressure (in band+band Backstage is parallel outside) performs, and the interaction of OS pressure timings performs, and remote auto monitoring network stabilization, test result collects ratio automatically Right, the present invention is applicable in for server of all mainstreams with BMC module, and the procedure operation is easy, has stronger ease for use, It is clear in structure between each module in program, convenient for safeguarding;Without lengthy and jumbled result treatment, the testing time is greatly saved, improves Testing efficiency.
Description of the drawings
Fig. 1 is BMC stability parallel test method flow chart of the present invention;
Fig. 2 is BMC stability parallel test system schematic diagram of the present invention.
Specific embodiment
In order to clarify the technical characteristics of the invention, below by specific embodiment, and its attached drawing is combined, to this hair It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention Structure.In order to simplify disclosure of the invention, hereinafter the component and setting of specific examples are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relation between various embodiments are discussed and/or are set.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
As shown in Figure 1, a kind of BMC stability parallel test method, comprises the following steps:
S1, parameter configuration is carried out to remote testing machine;
S2, remote testing machine and the variate-value of BMC to be measured are identified from configuration file;
S3, test content is encapsulated as several mission functions;
S4, established respectively with interior test script and give remote testing machine distributed tasks with outer test script.
Parameter configuration is carried out to remote testing machine in step S1, including:The IP of remote testing machine is completed by configuration file Address, user name, password, testing time parameter configuration.Remote testing machine can be that server can also be PC, for performing BMC band external pressure programs and monitoring BMC network stabilizations, the form of configuration file (config.txt) are as follows:
192.168.0.1root123456192.168.0.2admin9ijn0okm1440
Remote testing machine and the variate-value of BMC to be measured are identified in step S2 from configuration file, including:System is literary from configuration Acquisition includes representing variable $ IP of remote testing machine IP, represents variable $ USER of remote testing machine user name, represents far in part Variable $ PASSWD of journey test machine password, represent BMCIP to be measured variable $ BMC_IP represent BMC to be measured user name variable $ BMC_USER, variable $ BMC_PASSWD for representing BMC passwords to be measured, the variable $ TIME for representing the test execution time, this 7 Variable is read from configuration file automatically by Shell scripts, and the code of realization is as follows:
catconfig.txt|awk'{print$1}'|whilereadIP
catconfig.txt|awk'{print$2}'|whilereadUSER
catconfig.txt|awk'{print$3}'|whilereadPASSWD
catconfig.txt|awk'{print$4}'|whilereadBMC_IP
catconfig.txt|awk'{print$5}'|whilereadBMC_USER
catconfig.txt|awk'{print$6}'|whilereadBMC_PASSWD
catconfig.txt|awk'{print$7}'|whilereadTIME
Test content is encapsulated as several mission functions in step S3, including:
S31, establishing with date name for there is the file for being known as server Log daily records to be measured, starting formal survey Before examination, in order to make result apparent clearly, while beneficial to not obscuring mutually with other results, the file named with the date is first established Folder, for there are the Log of all servers to be measured, code to be as follows:
S32, it is defined as follows mission function:
The local session resources of BMC are run to full Fun_BMCinBand;
The outer session resources of the band of BMC are run into full Fun_BMCoutBand;
Record BMC network connection states per second and the Fun_NetMoniter preserved;
The pressure test of OS is alternately performed, realizes the Fun_OSStress of the interaction pressure of BMC and OS;
Remote testing machine task is distributed, test starting, stopping, the Main functions of result treatment.
The function of describing each Function respectively is realized below:
In step S4, function Fun_BMCinBand and function Fun_OSStress is included with interior test script;Outside the band Test script includes function Fun_BMCoutBand and function Fun_NetMoniter;With interior test script and with outer test script It is controlled and performed by respective Main functions respectively, be respectively designated as BMC_InBand.sh and BMC_OutBand.sh in detail below Description:
2 result logs will be checked after test execution, ping- $ oobip.csv have recorded BMC in entire test process Network-in-dialing state, sdr.csv is used to store sdr type informations in measuring executing process, for judging in whole process Whether BMC has exception.
As shown in Fig. 2, a kind of BMC stability parallel test system, including:
Parameter configuration module 101 is completed to remote testing machine parameter configuration;
Parameter identification module 102 completes the variable parameter identification to remote testing machine and BMC to be measured;
Function definition module 103 is packaged into difference in functionality function by shell scripts by content is tested;
Test assignment package module 104 realizes the different encapsulation with interior test and with outer test.
Test result judgment module 105 is realized the record to test process BMC network-in-dialing states, is completed to BMC to be measured Whether normally to judgement.
Above-mentioned, although the foregoing specific embodiments of the present invention is described with reference to the accompanying drawings, not protects model to the present invention The limitation enclosed, those skilled in the art should understand that, based on the technical solutions of the present invention, those skilled in the art are not Need to make the creative labor the various modifications or changes that can be made still within protection scope of the present invention.

Claims (7)

1. a kind of BMC stability parallel test method, it is characterized in that, comprise the following steps:
Parameter configuration is carried out to remote testing machine;
Remote testing machine and the variate-value of BMC to be measured are identified from configuration file;
Test content is encapsulated as several mission functions;
It is established respectively with interior test script and gives remote testing machine distributed tasks with outer test script.
2. a kind of BMC stability parallel test method as described in claim 1, it is characterized in that, it is described to remote testing machine into Row parameter configuration, including:IP address, user name, password, the testing time parameter that remote testing machine is completed by configuration file are matched somebody with somebody It puts.
3. a kind of BMC stability parallel test method as described in claim 1, it is characterized in that, it is described to know from configuration file The variate-value of other remote testing machine and BMC to be measured, including:System is obtained from configuration file includes the change of remote testing machine IP address Amount, remote testing machine user name variable, remote testing machine cryptographic variable, BMC IP address variable to be measured, BMC user names to be measured become The parameter value of amount, BMC cryptographic variables to be measured and time variable to be tested.
4. a kind of BMC stability parallel test method as described in claim 1, it is characterized in that, it is described to encapsulate test content For several mission functions, including:
It establishes and is used for the presence of the file for being known as server Log daily records to be measured with date name;
It is defined as follows mission function:
The local session resources of BMC are run to full Fun_BMCinBand;
The outer session resources of the band of BMC are run into full Fun_BMCoutBand;
Record BMC network connection states per second and the Fun_NetMoniter preserved;
The pressure test of OS is alternately performed, realizes the Fun_OSStress of the interaction pressure of BMC and OS;
Remote testing machine task is distributed, test starting, stopping, the Main functions of result treatment.
5. a kind of BMC stability parallel test method as described in claim 1, it is characterized in that, test script bag in the band Fun_BMCinBand containing function and function Fun_OSStress;The outer test script of the band includes function Fun_BMCoutBand With function Fun_NetMoniter;It originally respectively by respective Main function is controlled with interior test script and with exterior measuring training and performed.
6. a kind of BMC stability parallel test system, it is characterized in that, including:
Parameter configuration module is completed to remote testing machine parameter configuration;
Parameter identification module completes the variable parameter identification to remote testing machine and BMC to be measured;
Function definition module is packaged into difference in functionality function by shell scripts by content is tested;
Test assignment package module realizes the different encapsulation with interior test and with outer test.
7. a kind of BMC stability parallel test system as claimed in claim 6, it is characterized in that, it further includes:Test result judges Module realizes the record to test process BMC network-in-dialing states, complete to BMC to be measured whether normally to judgement.
CN201711182060.XA 2017-11-23 2017-11-23 BMC stability parallel test method and system Active CN108089566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711182060.XA CN108089566B (en) 2017-11-23 2017-11-23 BMC stability parallel test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711182060.XA CN108089566B (en) 2017-11-23 2017-11-23 BMC stability parallel test method and system

Publications (2)

Publication Number Publication Date
CN108089566A true CN108089566A (en) 2018-05-29
CN108089566B CN108089566B (en) 2020-09-22

Family

ID=62173027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711182060.XA Active CN108089566B (en) 2017-11-23 2017-11-23 BMC stability parallel test method and system

Country Status (1)

Country Link
CN (1) CN108089566B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845909A (en) * 2018-06-20 2018-11-20 郑州云海信息技术有限公司 A kind of BMC method for testing pressure parallel based on Python
CN109150658A (en) * 2018-08-16 2019-01-04 浪潮电子信息产业股份有限公司 A kind of RACK cabinet BMC and RBP communication stability test method
CN109218132A (en) * 2018-09-13 2019-01-15 郑州云海信息技术有限公司 A kind of method of automatic testing service device IPv6 stability
CN109408307A (en) * 2018-10-11 2019-03-01 郑州云海信息技术有限公司 A method of automation concurrent testing BMC retains configuration upgrade function
CN109446014A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 A kind of BMC test Information Authentication method, apparatus, terminal and storage medium
CN111367739A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 USB port testing method and system based on server cluster

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7392149B2 (en) * 2003-10-14 2008-06-24 Hewlett-Packard Development Company, L.P. Automatic software testing
CN104615523A (en) * 2015-03-05 2015-05-13 浪潮电子信息产业股份有限公司 Fatigue testing method of BMC management module based on IPMI protocol
CN105550090A (en) * 2015-12-10 2016-05-04 浪潮电子信息产业股份有限公司 LINUX platform-based automatic BMC pressure test method
CN105893261A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Method for automatically testing server BMC stability
CN106201813A (en) * 2016-07-26 2016-12-07 浪潮电子信息产业股份有限公司 A kind of method of automatic test BMC stability
CN106445811A (en) * 2016-08-30 2017-02-22 烽火通信科技股份有限公司 SecureCRT-based automated test system and method
CN106603343A (en) * 2017-01-11 2017-04-26 郑州云海信息技术有限公司 A method for testing stability of servers in batch
CN106874162A (en) * 2017-02-23 2017-06-20 郑州云海信息技术有限公司 A kind of monitoring management pressure test integration method based on IPMI services

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7392149B2 (en) * 2003-10-14 2008-06-24 Hewlett-Packard Development Company, L.P. Automatic software testing
CN104615523A (en) * 2015-03-05 2015-05-13 浪潮电子信息产业股份有限公司 Fatigue testing method of BMC management module based on IPMI protocol
CN105550090A (en) * 2015-12-10 2016-05-04 浪潮电子信息产业股份有限公司 LINUX platform-based automatic BMC pressure test method
CN105893261A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Method for automatically testing server BMC stability
CN106201813A (en) * 2016-07-26 2016-12-07 浪潮电子信息产业股份有限公司 A kind of method of automatic test BMC stability
CN106445811A (en) * 2016-08-30 2017-02-22 烽火通信科技股份有限公司 SecureCRT-based automated test system and method
CN106603343A (en) * 2017-01-11 2017-04-26 郑州云海信息技术有限公司 A method for testing stability of servers in batch
CN106874162A (en) * 2017-02-23 2017-06-20 郑州云海信息技术有限公司 A kind of monitoring management pressure test integration method based on IPMI services

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845909A (en) * 2018-06-20 2018-11-20 郑州云海信息技术有限公司 A kind of BMC method for testing pressure parallel based on Python
CN109150658A (en) * 2018-08-16 2019-01-04 浪潮电子信息产业股份有限公司 A kind of RACK cabinet BMC and RBP communication stability test method
CN109150658B (en) * 2018-08-16 2022-02-25 浪潮电子信息产业股份有限公司 RACK cabinet BMC and RBP communication stability testing method
CN109218132A (en) * 2018-09-13 2019-01-15 郑州云海信息技术有限公司 A kind of method of automatic testing service device IPv6 stability
CN109218132B (en) * 2018-09-13 2022-02-18 郑州云海信息技术有限公司 Method for automatically testing stability of IPv6 of server
CN109408307A (en) * 2018-10-11 2019-03-01 郑州云海信息技术有限公司 A method of automation concurrent testing BMC retains configuration upgrade function
CN109408307B (en) * 2018-10-11 2021-10-29 郑州云海信息技术有限公司 Method for automatically testing reserved configuration upgrading function of BMC in parallel
CN109446014A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 A kind of BMC test Information Authentication method, apparatus, terminal and storage medium
CN111367739A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 USB port testing method and system based on server cluster
CN111367739B (en) * 2020-02-29 2023-01-10 苏州浪潮智能科技有限公司 USB port testing method and system based on server cluster

Also Published As

Publication number Publication date
CN108089566B (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN108089566A (en) A kind of BMC stability parallel test method and system
CN106095677B (en) The RESTful Webservice automatic interface testing methods realized based on Robot Framework
CN102567203B (en) A kind of method and system of test distributed file system performance
CN110245073A (en) Client code coverage rate monitoring method, system, medium and electronic equipment
CN104572419A (en) Method for testing dynamic power consumption of servers
CN106330599B (en) Android application program network flow multithreading acquisition system and method
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN107678962A (en) The automated testing method and device of a kind of cli interface
CN112860569A (en) Automatic testing method and device, electronic equipment and storage medium
CN108829594A (en) The method and system of automatic test BMC web assets information function under a kind of Linux
CN110134612A (en) UI test data generating method, device, equipment and readable storage medium storing program for executing
CN110297771A (en) Distributed test method and device for the warehouse receipt page
CN107645428A (en) A kind of automatic test approach and device
CN109446053A (en) Test method, computer readable storage medium and the terminal of application program
CN108427634A (en) Electronic device, the method for test and computer readable storage medium
CN110399727A (en) A kind of BMC permission automatic test approach, system, terminal and storage medium
CN111367768A (en) Method and device for monitoring function response time of program
CN107703773A (en) A kind of method for testing software and device based on hardware-in-loop simulation system
CN109510740A (en) A kind of method, apparatus, terminal and the storage medium of automatic monitoring network interface card MTU value
CN109032874A (en) A kind of memory pressure test method, device, terminal and storage medium
CN108073484A (en) A kind of BMC times accuracy test method and system
CN108073487A (en) A kind of server Hostname reporting functions test method and system
CN106445761A (en) Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol
CN109347797A (en) A kind of third-party application login method and electronic equipment based on educational system
CN110543394A (en) server sensor information consistency testing method, system, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200827

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant