Applications Manager服务器硬件监视故障排查

Applications Manager服务器硬件监视故障排查

1. SNMP方式监视:
对于Dell服务器
对于HP设备
通过以下OID检查SNMP响应: 

HP: 1.3.6.1.4.1.232.2.2.2.1.0 
Dell: 1.3.6.1.4.1.674.10892.1.300.10.1.8.1 

通过snmpwalk排查:
可以使用ManageEngine的免费MIB浏览器检查。下载地址:http://www.manageengine.com/products/mibbrowser-free-tool/download.html。或使用任意其他的可以发送SNMP请求的工具。

Applications Manager自身提供了硬件监视的排查脚本。打开命令行,转到AppManager主目录/bin/troubleshooting 文件夹。运行snmpwalk脚本,使用方法如下:

使用 : snmpwalk.bat/sh [version] [community] [port] [hostname / Ip] [hardware ]

[version]               SNMP代理版本v1 / v2。
[community]         SNMP团体字符串
[port]                    SNMP端口,一般默认为161
[hostname/Ip]      被管理服务器的IP地址或主机名
[hardware ]          硬件厂商。 DELL或 HP
例如: snmpwalk.bat   v1 public 161 server1 DELL >> snmpwalk.txt

这将连接被管理服务器,并把snmpwalk结果保存在 snmpwalk.txt 文件中。

2. WMI监视模式:
通过WMI监视服务器硬件的前提条件:
  • 被管理服务器通过WMI添加为监视器。
  • 被管理服务器的WMI正常运行。
  • 被管理服务器安装并启动了HP System Insight Manager (推荐v6.2或更高版本) 
  • 被管理服务器安装并启动了Dell OpenManage Server Administrator

使用wbemtest.exe检查WMI:

1. 打开C:\Windows\System32\wbem\wbemtest.exe (运行 -- 输入“wbemtest”)
2. 输入被管理服务器的ip地址和管理员凭证。
3.命名空间输入:
HP: \\RemoteServerIpAddress\root\HPQ
Dell: \\RemoteServerIpAddress\root\cimv2\Dell


5. 点击连接。

6. 连接成功点击查询,输入以下查询语句
Select Manufacturer, Model, SerialNumber from CIM_Chassis

如果查询失败,检查上面的前提条件,或重新安装响应程序。
如果查询成功,还是在Applications Manager中看不到硬件信息:
1. 打开命令提示行,转到AppManagerHome\working\conf\application\scripts\目录执行以下命令:



对于HP
cscript wmiDataCollector.vbs <RemoteHost> <UserName> <Password> ..\HPHardwareDataCollector.xml > hwinfo.txt

对于DELL
cscript wmiDataCollector.vbs <RemoteHost> <UserName> <Password> ..\DELLHardwareDataCollector.xml > hwinfo.txt

例如:
cscript wmiDataCollector.vbs apmtest test test123 ..\DELLHardwareDataCollector.xml > hwinfo.txt
cscript wmiDataCollector.vbs localhost ..\DELLHardwareDataCollector.xml > hwinfo.txt