CN104360922A - Method for automatically monitoring BMC working state based on ipmitool - Google Patents

Method for automatically monitoring BMC working state based on ipmitool Download PDF

Info

Publication number
CN104360922A
CN104360922A CN201410556837.4A CN201410556837A CN104360922A CN 104360922 A CN104360922 A CN 104360922A CN 201410556837 A CN201410556837 A CN 201410556837A CN 104360922 A CN104360922 A CN 104360922A
Authority
CN
China
Prior art keywords
bmc
ipmitool
address
monitoring
shell script
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
CN201410556837.4A
Other languages
Chinese (zh)
Inventor
王野
苏仁娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201410556837.4A priority Critical patent/CN104360922A/en
Publication of CN104360922A publication Critical patent/CN104360922A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method for automatically monitoring the BMC working state based on an ipmitool. The method specifically comprises the following steps: firstly, inputting a BMCIP address through an operator; setting a shell script; automatically installing an ipmitool; when the ipmitool can ping the BMCIP address, entering a next step; when the ipmitool cannot ping the BMCIP address, ending the whole detection process; acquiring the real time; reading an expected sensor value according to an ipmitool order, printing the sensor value on a screen for display, and meanwhile reoutputting the result to a log text in an orientation manner; returning to the step III till the monitoring is completed. Compared with the prior art, the method for automatically monitoring the BMC working state based on the ipmitool is convenient for using the script and simple to operate, the testing time can be set according to requirements without artificial interaction; the method is used for improving the testing efficiency and the testing accuracy in relevant testing of BMC study and development periods and is high in practicability, wide in application range and easy to popularize, the labor and the time are saved, and the working efficiency is improved.

Description

A kind of method of the automatic monitoring BMC duty based on ipmitool
Technical field
The present invention relates to BMC Condition Monitoring Technology field, specifically a kind of practical, based on the method for the automatic monitoring BMC duty of ipmitool.
Background technology
Along with the fast development of IT technology, conventional informationization service and the more and more higher and usage quantity for server of the increasingly powerful stability requirement of cloud computing service to server are on the increase, this also to the monitoring of server, administer and maintain and bring inconvenience, now monitored by the web interface of BMC and KVM over IP function, to manage and operations server seems particularly important and convenient.As server product provider, a server all needs strictly to monitor the quality of product in development or production phase, thus the stability of this product of strict guarantee.And server research and development kind gets more and more, production shipment amount also constantly increases, and the robotization of product test, high efficiency also become imperative.Carry out the test of many moneys product, bulk article, can be increase personnel simultaneously, also can be write automated test tool.But obviously automated test tool will save more in the resources such as manpower, time, cost, decreases unnecessary interactive process.Cannot the working of a period of time (such as cannot remote access or the phenomenons such as server sensor value cannot be obtained) may be there is in server BMC in operational process, this can affect client to the operation of server and use, so need these problems found out in the test process of product and solve.Therefore, the existing a kind of method developing automatic monitoring BMC duty based on ipmitool instrument, effectively solves the problem.
Summary of the invention
Technical assignment of the present invention is for above weak point, provide a kind of practical, based on the method for the automatic monitoring BMC duty of ipmitool.
Based on a method for the automatic monitoring BMC duty of ipmitool, its specific implementation process is:
One, first BMC IP address is inputted by staff;
Two, shell script is set, Auto-mounting ipmitool instrument;
Three, when ipmitool instrument can lead to BMC ip address by ping, next step is entered; When cannot ping lead to BMC ip address time, then terminate whole testing process;
Four, real-time time is obtained;
Five, read required sensor value by ipmitool order and print to screen display, result being redirected exporting daily record text to simultaneously;
Six, step 3 is returned until monitoring terminates.
Shell script in described step 2 also can be used for the BMC IP address of reading manually input; For calling Ipmitool instrument and monitoring automatically; Circulation performs shell script and is redirected and exports.
Described shell script for reading the process of the BMC IP address of manually input is: the shell script running this automatic test at command terminal, after manual input needs to carry out the BMC IP address of monitoring, it is that cycle criterion is below prepared that shell script reads this BMC IP address; And the BMC IP address of monitoring is pointed out to user.
Shell script in described step 2, after manually input needs the IP address of the BMC of monitoring, is entered the process of full automation monitoring BMC, according to monitor message set in script, is monitored by Ipmitool order to it.
Described shell script completes Scripting Edition and program is installed, just bring into operation test, while testing results, all implementations are redirected in the file outputted under specified path, shell script default setting is /opt/bmc_test.log, and use file that tail order real time inspection is redirected to realize simultaneously both can real-time monitor (RTM) implementation status, associated documents can be preserved again, when there being abnormal generation, monitor by the Fileview preserved the phenomenon that the operation time, sensor value or the BMC that break down cannot use completely.
The direction that described shell shell script adopts text to add is redirected and is exported, the situation that all circulations of the program that remains perform, and searches information needed by search command.
The method of a kind of automatic monitoring BMC duty based on ipmitool of the present invention, has the following advantages:
The method of a kind of automatic monitoring BMC duty based on ipmitool of this invention realizes the unmanned auto monitoring and measurement of BMC duty by shell script; Monitoring result and real-time time will be redirected at interval of a period of time exports in the file of specified path simultaneously, the duty that can clearly view BMC like this and the time gone wrong; This script is easy to use, simple to operate, and can set the test duration according to demand, and without the need to carrying out man-machine interactively; The method can improve testing efficiency and the accuracy of test in the dependence test carrying out BMC development, and saves manpower and time, and improves work efficiency; Practical, applied widely, be easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is realization flow figure of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
A kind of method of the automatic monitoring BMC duty based on ipmitool, the robotization that the method utilizes shell script to realize ipmitool instrument is installed, automatically the working state monitoring test of specifying BMC is carried out according to the parameter of setting, remove interactive process from, this monitoring facilities can be automatically run according to the BMC IP address of setting, the server sensor value that script change needs monitoring can be revised simultaneously, check whether BMC testing result correctly and by result is redirected and output in text.As shown in Figure 1, its specific implementation process is:
One, first BMC IP address is inputted by staff;
Two, shell script is set, Auto-mounting ipmitool instrument;
Three, when ipmitool instrument can lead to BMC ip address by ping, next step is entered; When cannot ping lead to BMC ip address time, then terminate whole testing process;
Four, real-time time is obtained;
Five, read required sensor value by ipmitool order and print to screen display, result being redirected exporting daily record text to simultaneously;
Six, step 3 is returned until monitoring terminates.
Shell script in described step 2 also can be used for the BMC IP address of reading manually input; For calling Ipmitool instrument and monitoring automatically; Circulation performs shell script and is redirected and exports.
Described shell script for reading the process of the BMC IP address of manually input is: the shell script running this automatic test at command terminal, after manual input needs to carry out the BMC IP address of monitoring, it is that cycle criterion is below prepared that shell script reads this BMC IP address; And the BMC IP address of monitoring is pointed out to user.
Shell script in described step 2, after manually input needs the IP address of the BMC of monitoring, is entered the process of full automation monitoring BMC, according to monitor message set in script, is monitored by Ipmitool order to it.
Described shell script completes Scripting Edition and program is installed, just bring into operation test, while testing results, all implementations are redirected in the file outputted under specified path, shell script default setting is /opt/bmc_test.log, and use file that tail order real time inspection is redirected to realize simultaneously both can real-time monitor (RTM) implementation status, associated documents can be preserved again, when there being abnormal generation, monitor by the Fileview preserved the phenomenon that the operation time, sensor value or the BMC that break down cannot use completely.
The direction that described shell shell script adopts text to add is redirected and is exported, the situation that all circulations of the program that remains perform, and searches information needed by search command.
This method uses the auto monitoring and measurement test that SHELL script edit realizes BMC duty, enormously simplify the operating process of BMC test, particularly for high density server, easily achieves the unmanned BMC control and measuring to great deal of nodes.This method is increased work efficiency and is tested the probability of pinpointing the problems while development and test phase can reduce human resources consumption, can improve the accuracy of test and the stability of product.
The method of testing of the automatic monitoring BMC duty based on ipmitool instrument of the present invention, can be applicable to all x86 server products.While raising BMC test accuracy, save the resources such as manpower, time, cost for company, and can uninterruptedly detect round the clock, increase the possibility of pinpointing the problems, decrease unnecessary interactive process.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; claims of the method for any a kind of automatic monitoring BMC duty based on ipmitool according to the invention and any person of an ordinary skill in the technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.

Claims (6)

1., based on a method for the automatic monitoring BMC duty of ipmitool, it is characterized in that its specific implementation process is:
One, first BMC IP address is inputted by staff;
Two, shell script is set, Auto-mounting ipmitool instrument;
Three, when ipmitool instrument can lead to BMC ip address by ping, next step is entered; When cannot ping lead to BMC ip address time, then terminate whole testing process;
Four, real-time time is obtained;
Five, read required sensor value by ipmitool order and print to screen display, result being redirected exporting daily record text to simultaneously;
Six, step 3 is returned until monitoring terminates.
2. the method for a kind of automatic monitoring BMC duty based on ipmitool according to claim 1, is characterized in that: the shell script in described step 2 also can be used for the BMC IP address of reading manually input; For calling Ipmitool instrument and monitoring automatically; Circulation performs shell script and is redirected and exports.
3. the method for a kind of automatic monitoring BMC duty based on ipmitool according to claim 2, it is characterized in that: described shell script for reading the process of the BMC IP address of manually input is: the shell script running this automatic test at command terminal, after manual input needs to carry out the BMC IP address of monitoring, it is that cycle criterion is below prepared that shell script reads this BMC IP address; And the BMC IP address of monitoring is pointed out to user.
4. the method for a kind of automatic monitoring BMC duty based on ipmitool according to claim 2, it is characterized in that: the shell script in described step 2 is behind the IP address of the BMC of manually input needs monitoring, enter the process of full automation monitoring BMC, according to monitor message set in script, by Ipmitool order, it is monitored.
5. the method for a kind of automatic monitoring BMC duty based on ipmitool according to claim 2, it is characterized in that: described shell script completes Scripting Edition and program is installed, just bring into operation test, while testing results, all implementations are redirected in the file outputted under specified path, shell script default setting is /opt/bmc_test.log, and use file that tail order real time inspection is redirected to realize simultaneously both can real-time monitor (RTM) implementation status, associated documents can be preserved again, when there being abnormal generation, the operation time broken down is monitored by the Fileview preserved, the phenomenon that sensor value or BMC cannot use completely.
6. the method for a kind of automatic monitoring BMC duty based on ipmitool according to claim 2, it is characterized in that: the direction that described shell shell script adopts text to add is redirected and is exported, the situation that all circulations of the program that remains perform, and search information needed by search command.
CN201410556837.4A 2014-10-20 2014-10-20 Method for automatically monitoring BMC working state based on ipmitool Pending CN104360922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410556837.4A CN104360922A (en) 2014-10-20 2014-10-20 Method for automatically monitoring BMC working state based on ipmitool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410556837.4A CN104360922A (en) 2014-10-20 2014-10-20 Method for automatically monitoring BMC working state based on ipmitool

Publications (1)

Publication Number Publication Date
CN104360922A true CN104360922A (en) 2015-02-18

Family

ID=52528186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410556837.4A Pending CN104360922A (en) 2014-10-20 2014-10-20 Method for automatically monitoring BMC working state based on ipmitool

Country Status (1)

Country Link
CN (1) CN104360922A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615472A (en) * 2015-03-06 2015-05-13 浪潮集团有限公司 Method for preventing BIOS+ME FW online refresh failure
CN105490870A (en) * 2015-11-20 2016-04-13 浪潮电子信息产业股份有限公司 Method for monitoring operation state of Linux server in batch
CN105573886A (en) * 2015-12-14 2016-05-11 浪潮电子信息产业股份有限公司 Method for automatically implementing real-time monitoring of voltage value under Linux system
CN105743707A (en) * 2016-04-01 2016-07-06 浪潮电子信息产业股份有限公司 Method for testing BMC log analyzing function based on Redhat system
CN105893261A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Method for automatically testing server BMC stability
CN106201812A (en) * 2016-07-15 2016-12-07 浪潮电子信息产业股份有限公司 A kind of BMCSensor pressure monitor method of testing based on IPMI service
CN106294064A (en) * 2016-07-28 2017-01-04 浪潮电子信息产业股份有限公司 A kind of device and method that baseboard management controller attribute is set
CN106330595A (en) * 2015-07-02 2017-01-11 阿里巴巴集团控股有限公司 Heartbeat detection method and apparatus of distributed platform
CN106445760A (en) * 2016-10-26 2017-02-22 广东浪潮大数据研究有限公司 Testing method and terminal equipment
CN107145426A (en) * 2017-05-09 2017-09-08 郑州云海信息技术有限公司 A kind of method that BMC tests ME abnormal states
CN107222586A (en) * 2017-05-03 2017-09-29 深圳市同泰怡信息技术有限公司 A kind of BMC IP method in automatic identification LAN
CN107645424A (en) * 2017-08-24 2018-01-30 郑州云海信息技术有限公司 A kind of method and system of BMC Sensor pressure test scripts
CN110134559A (en) * 2019-05-22 2019-08-16 苏州浪潮智能科技有限公司 A kind of BMC fault detection method, system and associated component
CN110716902A (en) * 2019-10-09 2020-01-21 中船动力有限公司 Detection method of in-domain online computer
CN111010308A (en) * 2019-10-29 2020-04-14 苏州浪潮智能科技有限公司 KVM service test method and device
CN113872825A (en) * 2021-08-20 2021-12-31 苏州浪潮智能科技有限公司 BMC DNS function automatic test method and device
CN116760749A (en) * 2023-08-15 2023-09-15 湖南博匠信息科技有限公司 Method for positioning physical position of server through BMC

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905253A (en) * 2014-04-04 2014-07-02 浪潮电子信息产业股份有限公司 Server monitoring and management method based on Nagios and BMC
CN103970661A (en) * 2014-05-19 2014-08-06 浪潮电子信息产业股份有限公司 Method for batched server memory fault detection through IPMI tool

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905253A (en) * 2014-04-04 2014-07-02 浪潮电子信息产业股份有限公司 Server monitoring and management method based on Nagios and BMC
CN103970661A (en) * 2014-05-19 2014-08-06 浪潮电子信息产业股份有限公司 Method for batched server memory fault detection through IPMI tool

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
崔涛: "使用 ipmitool 实现 Linux 系统下对服务器的 ipmi 管理", 《HTTPS://WWW.IBM.COM/DEVELOPERWORKS/CN/LINUX/L­IPMI/》 *
阮荣友: "基于 IPMI 协议的服务器主板控制器的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615472A (en) * 2015-03-06 2015-05-13 浪潮集团有限公司 Method for preventing BIOS+ME FW online refresh failure
CN106330595A (en) * 2015-07-02 2017-01-11 阿里巴巴集团控股有限公司 Heartbeat detection method and apparatus of distributed platform
CN106330595B (en) * 2015-07-02 2020-01-21 阿里巴巴集团控股有限公司 Heartbeat detection method and device for distributed platform
CN105490870A (en) * 2015-11-20 2016-04-13 浪潮电子信息产业股份有限公司 Method for monitoring operation state of Linux server in batch
CN105573886A (en) * 2015-12-14 2016-05-11 浪潮电子信息产业股份有限公司 Method for automatically implementing real-time monitoring of voltage value under Linux system
CN105743707A (en) * 2016-04-01 2016-07-06 浪潮电子信息产业股份有限公司 Method for testing BMC log analyzing function based on Redhat system
CN105893261A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Method for automatically testing server BMC stability
CN106201812A (en) * 2016-07-15 2016-12-07 浪潮电子信息产业股份有限公司 A kind of BMCSensor pressure monitor method of testing based on IPMI service
CN106294064A (en) * 2016-07-28 2017-01-04 浪潮电子信息产业股份有限公司 A kind of device and method that baseboard management controller attribute is set
CN106445760A (en) * 2016-10-26 2017-02-22 广东浪潮大数据研究有限公司 Testing method and terminal equipment
CN107222586A (en) * 2017-05-03 2017-09-29 深圳市同泰怡信息技术有限公司 A kind of BMC IP method in automatic identification LAN
CN107222586B (en) * 2017-05-03 2020-10-20 深圳市同泰怡信息技术有限公司 Method for automatically identifying BMC IP in local area network
CN107145426A (en) * 2017-05-09 2017-09-08 郑州云海信息技术有限公司 A kind of method that BMC tests ME abnormal states
CN107645424A (en) * 2017-08-24 2018-01-30 郑州云海信息技术有限公司 A kind of method and system of BMC Sensor pressure test scripts
CN107645424B (en) * 2017-08-24 2021-02-02 苏州浪潮智能科技有限公司 Method and system for BMC Sensor pressure test script
CN110134559A (en) * 2019-05-22 2019-08-16 苏州浪潮智能科技有限公司 A kind of BMC fault detection method, system and associated component
CN110134559B (en) * 2019-05-22 2020-03-13 苏州浪潮智能科技有限公司 BMC fault detection method, system and related components
CN110716902A (en) * 2019-10-09 2020-01-21 中船动力有限公司 Detection method of in-domain online computer
CN111010308A (en) * 2019-10-29 2020-04-14 苏州浪潮智能科技有限公司 KVM service test method and device
CN113872825A (en) * 2021-08-20 2021-12-31 苏州浪潮智能科技有限公司 BMC DNS function automatic test method and device
CN116760749A (en) * 2023-08-15 2023-09-15 湖南博匠信息科技有限公司 Method for positioning physical position of server through BMC
CN116760749B (en) * 2023-08-15 2023-10-17 湖南博匠信息科技有限公司 Method for positioning physical position of server through BMC

Similar Documents

Publication Publication Date Title
CN104360922A (en) Method for automatically monitoring BMC working state based on ipmitool
CN103927255A (en) Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system
CN105203980B (en) A kind of power quality self-checking system and its self checking method
US8972783B2 (en) Systems and methods for fast detection and diagnosis of system outages
US8996928B2 (en) Devices for indicating a physical layer error
CN110427314B (en) Method and system for testing information safety reliability of metering automation terminal
CN104375910A (en) Automated startup and shutdown testing method
CN103984612A (en) Unattended stress testing method based on HPL tool
WO2017161964A1 (en) Communication network inspection method and device, and inspection client terminal
CN104317712A (en) Linux-based storage server fatigue testing method
CN111224845A (en) Equipment automatic testing system and method based on Internet of things cloud
CN104461846B (en) The method and apparatus for detecting application program power consumption
CN103941207A (en) Electric power measurement automation terminal detection method and system
CN105425201A (en) Metering chip simulation test method used for intelligent electric energy meter software reliability detection
CN105140810A (en) System and method for checking on-off state of total-station soft pressure plate of intelligent substation
CN105279092A (en) Software testing method and apparatus
CN203260298U (en) LCD testing device
WO2015149596A1 (en) Iec61850-based communication simulation method for leakage current on-line monitoring device
CN106405294B (en) Portable power distribution product transmission calibrator and implementation test method thereof
CN104391780A (en) Method for automatically testing stability of redundancy function of power supply of server
CN105141478A (en) Method for monitoring state of sas card hard disk of linux server
CN105467355A (en) Automatic testing method of electric energy meter and automatic testing device of same
CN106095647A (en) A kind of method of real-time monitoring Seagate hard disk voltage
CN104535940B (en) A kind of automated testing method based on linux system UID lamp stability
CN203811725U (en) Ignition coil test system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150218