Oracle® Server Management Agent for Oracle Solaris 11.2 用户指南

退出打印视图

更新时间: 2015 年 6 月
 
 

如何插入模拟故障


Caution

注意  - 此过程将返回测试 SNMP 陷阱,但是当生成真正的 SNMP 陷阱时,接收到的值可能与预期的值不匹配。这并不会影响非测试 SNMP 陷阱的功能。


  1. 在命令提示符下,键入:

    ipmitool -U user -P password -H hostname -v sdr list

    从返回的列表中选择要插入模拟故障的传感器。在本示例中,使用了 IPMI 事件:'P0/VTT' unc assert。

  2. 在命令提示符下,键入:

    # 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.

    存储在系统日志中的消息与 SNMP 陷阱完全对应。使用工具 daemon 和级别 notice 记录这些消息。


    注 -  如果与 SNMP 陷阱对应的记录未存储在 Oracle Solaris 操作系统上,请确保启用了 daemon 工具和 notice 级别。