Oracle Server Management Agents 用户指南概述
Oracle Server Management Agents
配置 Hardware Management Agent 和 Hardware SNMP Plugins
注意 - 此过程将返回测试 SNMP 陷阱,但是当生成真正的 SNMP 陷阱时,接收到的值可能与预期的值不匹配。这并不会影响非测试 SNMP 陷阱的功能。 |
ipmitool -U user -P password -H hostname -v sdr list
从返回的列表中选择要插入模拟故障的传感器。在本示例中,使用了 IPMI 事件:'P0/VTT' unc assert。
# ipmitool -U user -P password -H hostname event 'P0/VTT' unc assert
此操作将插入 IPMI 事件:'P0/VTT' unc assert。
您应收到类似如下的 SNMP 陷阱:
sysUpTime.0 = Timeticks: (4300) 0:00:43.00
snmpModules.1.1.4.1.1 = OID: sunHwTrapVoltageNonCritThresholdExceeded
sunHwTrapSystemIdentifier.0 = STRING: sg-prg-x6220-01-sp0
sunHwTrapChassisId.0 = STRING: 1005LCB-0728YM01R7::0739AL71EA
sunHwTrapProductName.0 = STRING: SUN BLADE 6000 MODULAR SYSTEM::SUN BLADE X6220 SERVER MODULE
sunHwTrapComponentName.0 = STRING: /SYS/MB/P0/VTT
sunHwTrapThresholdType.0 = INTEGER: upper(1)
sunHwTrapThresholdValue.0 = STRING:
sunHwTrapSensorValue.0 = STRING:
sunHwTrapAdditionalInfo.0 = STRING: Upper Non-critical going high
sunHwTrapAssocObjectId.0 = OID: zeroDotZero
sunHwTrapSeverity.0 = INTEGER: nonCritical(4)
您可以通过检查系统日志记录来验证 SNMP 陷阱,该记录应包含类似如下的内容:
sg-prg-x6250-01 hwagentd[3470]: P0/VTT (Sensor ID: 0x1b) (Record ID: 0x821): Upper Non-critical going high.
存储在系统日志或 Windows 应用程序日志中的消息与 SNMP 陷阱完全对应。在 Linux 和 Oracle Solaris 操作系统上,使用工具 daemon 和级别 notice 记录这些消息。