CN106874162A - 一种基于ipmi服务的监控管理压力测试整合方法 - Google Patents
一种基于ipmi服务的监控管理压力测试整合方法 Download PDFInfo
- Publication number
- CN106874162A CN106874162A CN201710099211.9A CN201710099211A CN106874162A CN 106874162 A CN106874162 A CN 106874162A CN 201710099211 A CN201710099211 A CN 201710099211A CN 106874162 A CN106874162 A CN 106874162A
- Authority
- CN
- China
- Prior art keywords
- test
- log
- monitoring management
- admin
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 36
- 238000012544 monitoring process Methods 0.000 title claims abstract description 23
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 title claims abstract description 11
- 238000000034 method Methods 0.000 title claims abstract description 11
- 230000010354 integration Effects 0.000 title claims abstract description 9
- 238000013515 script Methods 0.000 claims abstract description 21
- 238000013112 stability test Methods 0.000 claims abstract description 8
- 230000006872 improvement Effects 0.000 abstract description 2
- UPPMZCXMQRVMME-UHFFFAOYSA-N valethamate Chemical compound CC[N+](C)(CC)CCOC(=O)C(C(C)CC)C1=CC=CC=C1 UPPMZCXMQRVMME-UHFFFAOYSA-N 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明公开了一种基于IPMI服务的监控管理压力测试整合方法,属于服务器技术领域,关闭防火墙;在远程Linux客户端,打开终端直接运行shell脚本:按照提示,输入待测节点或模块的监控管理端IP,选择需要运行的压力稳定性测试类型;自动记录运行次数、传感器状态和读值,系统事件日志;脚本执行完成之后,测试结果放在脚本所在目录下的相应IP的文件夹中,测试人员查看log文件,判断测试结果是否符合要求。本发明基于Shell环境下的压力稳定性测试的改良,具有易管理性、通用性和延伸扩展性。
Description
技术领域
本发明涉及服务器技术领域,具体涉及一种基于IPMI服务的监控管理压力测试整合方法。
背景技术
服务器监控是实时掌握服务器工作状态,并在需要时可以随时调用监控记录进行查看,监控管理作为服务器领域中重要的一个模块,起着监控整个服务器运行状态的命脉端口。通过监控管理的网络端口,我们可以获取服务器的开关机状态、传感器的健康状态、系统产生的事件等等。在远端控制整个在监控管理的测试过程中,稳定性的测试是必不可缺的,基于监控管理目前的压力测试脚本对每个专案的不通用性和脚本管理的复杂性,需要将监控管理压力测试整合。
发明内容
本发明的技术任务是提供一种基于IPMI服务的监控管理压力测试整合方法,基于Shell环境下的压力稳定性测试的改良,在原来压力测试脚本的基础上易管理、具有通用性和延伸扩展性。
本发明解决其技术问题所采用的技术方案是:
一种基于IPMI服务的监控管理压力测试整合方法,关闭防火墙,保证测试机能够和待测试的节点或者模块能够Ping通,即保证两台机器的IP在同一地址段;在远程Linux客户端,打开终端直接运行shell脚本:
按照提示,输入待测节点或模块的监控管理端IP,选择需要运行的压力稳定性测试类型;自动记录运行次数、传感器状态和读值,系统事件日志等;
脚本执行完成之后,测试结果放在脚本所在目录下的相应IP的文件夹中,测试人员查看log文件,判断测试结果是否符合要求。
优选的,该shell脚本执行中会提示输入测试平台IP和测试类型,自动执行。
本发明的一种基于IPMI服务的监控管理压力测试整合方法与现有技术相比,具有以下有益效果:
具有易管理性,将现有的监控管理的远程控制端的压力稳定性测试脚本集合至一个脚本下;
具有通用性,在测试中无需根据各专案的sensor类别不一样而做出修改;
具有延伸扩展性,目前加入的压力稳定性测试只有sensor读取、reset加压测试、网络远程控制系统开关机等压力测试,后续如果测试需要,可以加入更多的压力稳定性测试,增加相应的条目即可;
能够适应多平台,自动化操作,shell脚本执行中会提示输入测试平台IP和测试类型,自动执行,不需要测试人员记住因平台而异的、复杂的sensor名,只需要执行完成之后查看脚本就可以完成相关稳定性测试;操作步骤简便,大幅提高测试效率。
具体实施方式
下面结合具体实施例对本发明作进一步说明。
一种基于IPMI服务的监控管理压力测试整合方法,关闭防火墙,保证测试机能够和待测试的节点或者模块能够Ping通,即保证两台机器的IP在同一地址段;在远程Linux客户端,打开终端直接运行shell脚本:
主要代码:
#!/bin/bash
#program:
echo " ==================================================
BMC STRESS IPMI SESSION KEEP FORE OPTION
usage: ./ipmi.stress.sh
1. bmc info (check the session link info)
2. Sensor_reading Stress
3. Reset Stress
4. Mix_power Stress
================================================"
echo "BMC IP"
read IP
read -p "input your choice(1-4): " choice
case $choice in
"1")
echo "bmc info"
ipmitool -I lanplus -H $IP -U admin -P admin bmc info
;;
"2")
echo "Sensor_reading"
mkdir -p $IP
for i in $(seq 1 1 10000 )
do
echo $i |tee -a $IP/sdr.log
echo $i >> $IP/bmcinfo.log
echo $i >> $IP/temp.log
echo $i >> $IP/volt.log
echo $i >> $IP/fan.log
echo $i >> $IP/sel.log
echo "=================" >> $IP/fan.log
echo "=================" >> $IP/temp.log
echo "=================" >> $IP/volt.log
echo "=================" >> $IP/bmcinfo.log
echo "=================" >> $IP/sel.log
echo "=================" |tee -a $IP/sdr.log
date | tee -a $IP/sdr.log
date >> $IP/volt.log
date >> $IP/temp.log
date >> $IP/fan.log
date >> $IP/bmcinfo.log
ipmitool -I lanplus -H $IP -U admin -P admin sdr elist |tee -a $IP/sdr.log
ipmitool -I lanplus -H $IP -U admin -P admin sdr type temp >> $IP/temp.log
ipmitool -I lanplus -H $IP -U admin -P admin sdr type volt >> $IP/volt.log
ipmitool -I lanplus -H $IP -U admin -P admin sdr type fan >> $IP/fan.log
ipmitool -I lanplus -H $IP -U admin -P admin bmc info >> $IP/bmcinfo.log
ipmitool -I lanplus -H $IP -U admin -P admin sel elist >> $IP/sel.log
ipmitool -I lanplus -H $IP -U admin -P admin sel clear
sleep 10
done
;;
"3")
echo "BMC_reset"
mkdir -p $IP
for i in $(seq 1 1 1000 )
do
echo $i |tee -a $IP/sdr.log
echo $i >> $IP/bmcinfo.log
echo $i >> $IP/temp.log
echo $i >> $IP/volt.log
echo $i >> $IP/fan.log
echo $i >> $IP/sel.log
echo "=================" >> $IP/fan.log
echo "=================">> $IP/temp.log
echo "=================" >> $IP/volt.log
echo "=================" >> $IP/bmcinfo.log
echo "=================" >> $IP/sel.log
echo "=================" |tee -a $IP/sdr.log
date | tee -a $IP/sdr.log
date >> $IP/volt.log
date >> $IP/temp.log
date >> $IP/fan.log
date >> $IP/bmcinfo.log
ipmitool -I lanplus -H $IP -U admin -P admin raw 0x06 0x02
sleep 180
ipmitool -I lanplus -H $IP -U admin -P admin sdr elist |tee -a $IP/sdr.log
ipmitool -I lanplus -H $IP -U admin -P admin sdr type temp >> $IP/temp.log
ipmitool -I lanplus -H $IP -U admin -P admin sdr type volt >> $IP/volt.log
ipmitool -I lanplus -H $IP -U admin -P admin sdr type fan >> $IP/fan.log
ipmitool -I lanplus -H $IP -U admin -P admin bmc info >> $IP/bmcinfo.log
ipmitool -I lanplus -H $IP -U admin -P admin sel elist >> $IP/sel.log
ipmitool -I lanplus -H $IP -U admin -P admin sel clear
sleep 10
done
;;
"4")
echo "Mix_power"
for ((i=1; i<=1000; i++))
do
echo $i
ipmitool -I lanplus -U admin -P admin -H $IP raw 0x00 0x02 0x02 2>>powerCycle.log 1>>/dev/null
sleep 300
ipmitool -I lanplus -U admin -P admin -H $IP raw 0x00 0x02 0x03 2>>hardrest.log 1>>/dev/null
sleep 300
ipmitool -I lanplus -U admin -P admin -H $IP raw 0x00 0x02 0x00 2>>powerdown.log 1>>/dev/null
sleep 15
ipmitool -I lanplus -U admin -P admin -H $IP raw 0x00 0x02 0x01 2>>poweron.log 1>>/dev/null
sleep 300
done
;;
Esac
按照提示,输入待测节点或模块的监控管理端IP,选择需要运行的压力稳定性测试类型;自动记录运行次数、传感器状态和读值,系统事件日志等;
脚本执行完成之后,测试结果放在脚本所在目录下的相应IP的文件夹中,测试人员查看log文件,判断测试结果是否符合要求。
该shell脚本执行中会提示输入测试平台IP和测试类型,自动执行。
通过上面具体实施方式,所述技术领域的技术人员可容易的实现本发明。但是应当理解,本发明并不限于上述的具体实施方式。在公开的实施方式的基础上,所述技术领域的技术人员可任意组合不同的技术特征,从而实现不同的技术方案。
Claims (2)
1.一种基于IPMI服务的监控管理压力测试整合方法,其特征在于关闭防火墙,保证测试机能够和待测试的节点或者模块能够Ping通,即保证两台机器的IP在同一地址段;在远程Linux客户端,打开终端直接运行shell脚本:
按照提示,输入待测节点或模块的监控管理端IP,选择需要运行的压力稳定性测试类型;自动记录运行次数、传感器状态和读值,系统事件日志;
脚本执行完成之后,测试结果放在脚本所在目录下的相应IP的文件夹中,测试人员查看log文件,判断测试结果是否符合要求。
2.根据权利要求1所述的一种基于IPMI服务的监控管理压力测试整合方法,其特征在于该shell脚本执行中会提示输入测试平台IP和测试类型,自动执行。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710099211.9A CN106874162A (zh) | 2017-02-23 | 2017-02-23 | 一种基于ipmi服务的监控管理压力测试整合方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710099211.9A CN106874162A (zh) | 2017-02-23 | 2017-02-23 | 一种基于ipmi服务的监控管理压力测试整合方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106874162A true CN106874162A (zh) | 2017-06-20 |
Family
ID=59169492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710099211.9A Pending CN106874162A (zh) | 2017-02-23 | 2017-02-23 | 一种基于ipmi服务的监控管理压力测试整合方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106874162A (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107995287A (zh) * | 2017-11-30 | 2018-05-04 | 郑州云海信息技术有限公司 | 一种通过ipmi远程监控数据中心节点健康状态的方法 |
CN108089566A (zh) * | 2017-11-23 | 2018-05-29 | 郑州云海信息技术有限公司 | 一种bmc稳定性并行测试方法及系统 |
CN110932886A (zh) * | 2019-11-15 | 2020-03-27 | 苏州浪潮智能科技有限公司 | 一种自动测试服务器网络性能的方法,系统及sol测试装置 |
-
2017
- 2017-02-23 CN CN201710099211.9A patent/CN106874162A/zh active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108089566A (zh) * | 2017-11-23 | 2018-05-29 | 郑州云海信息技术有限公司 | 一种bmc稳定性并行测试方法及系统 |
CN108089566B (zh) * | 2017-11-23 | 2020-09-22 | 苏州浪潮智能科技有限公司 | 一种bmc稳定性并行测试方法及系统 |
CN107995287A (zh) * | 2017-11-30 | 2018-05-04 | 郑州云海信息技术有限公司 | 一种通过ipmi远程监控数据中心节点健康状态的方法 |
CN110932886A (zh) * | 2019-11-15 | 2020-03-27 | 苏州浪潮智能科技有限公司 | 一种自动测试服务器网络性能的方法,系统及sol测试装置 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110716126A (zh) | 芯片老化测试系统、方法及装置 | |
CN106874162A (zh) | 一种基于ipmi服务的监控管理压力测试整合方法 | |
CN103077114B (zh) | 基于测温装置通信协议的自动化测试方法 | |
CN103761185B (zh) | 一种自动化测试系统及方法 | |
CN111786854B (zh) | 网卡测试方法、装置、电子设备及可读存储介质 | |
CN105071982A (zh) | 一种Linux下快速测量网卡性能的方法 | |
CN106776346B (zh) | Ccmts设备的测试方法和装置 | |
CN105809948A (zh) | 红外控制设备自动化测试方法及系统 | |
CN103731663A (zh) | 一种智能电视的测试方法和装置 | |
CN106803792A (zh) | 数据转发设备、电器设备和电器设备故障诊断系统 | |
CN110764036B (zh) | 一种智能配变终端测试方法及系统 | |
CN113567796B (zh) | 一种兼容性性能测试方法 | |
CN102624587B (zh) | 一种针对iec60870-5-101/104通信规约实现缺陷的检测系统及方法 | |
CN103544104B (zh) | 一种用于配电终端遥控功能软件模块的测试方法 | |
CN110532162A (zh) | 一种基于协议状态机的模糊测试脚本及测试引擎 | |
CN112034296B (zh) | 一种航电故障注入系统、方法 | |
US10932148B2 (en) | Apparatus, system and method for testing of communication networks with prescribed communication traffic | |
CN105306302A (zh) | Qinq功能的自动化测试方法及系统 | |
CN107197246A (zh) | 一种机顶盒可靠性的测试方法及系统 | |
CN114116343A (zh) | 一种设备测试方法、装置、电子设备及存储介质 | |
CN114338464A (zh) | 故障诊断方法、装置、设备及计算机可读存储介质 | |
CN113985785A (zh) | 分布式电气设备运行状态监测方法 | |
CN112261478A (zh) | 日志调试方法、装置及系统、终端设备、机顶盒 | |
CN112463083A (zh) | 一种基板控制管理器信息的远程收集方法和系统 | |
CN116016259B (zh) | 一种路由器稳定性自动检测系统、方法、设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170620 |
|
WD01 | Invention patent application deemed withdrawn after publication |