Go to main content
Oracle® Server Management Agents 用户指南

退出打印视图

更新时间: 2015 年 10 月
 
 

检索传感器组信息

  • 在命令提示符下,键入以下命令:
    • 在 Linux 系统上:

      snmpwalk -v 2c -c public -M /usr/share/snmp/mibs/ -m ALL localhost sunHwMonSensorGroup | grep '\.9 = '

    • 在 Oracle Solaris 11.1 系统上:

      snmpwalk -v 2c -c public -M +/usr/lib/ssm/lib/mibs/ -m ALL localhost sunHwMonSensorGroup | grep '\.9 = '

    • 在 Oracle Solaris 10 系统上:

      snmpwalk -v 2c -c public -M +/opt/sun-ssm/lib/mibs/ -m ALL localhost sunHwMonSensorGroup | grep '\.9 = '

    其中,grep '\.9 = ' 将筛选出包含我们关注的 FRU 属性的结果。

    您应看到类似如下的输出结果:

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorType.9 = INTEGER: voltage(133)

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorName.9 = STRING: /SYS/MB/V_+12V

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorParentFruIndex.9 = INTEGER: 146

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorParentFruName.9 = STRING: /SYS/MB

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorAlarmStatus.9 = INTEGER: cleared(1)

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorStateDescr.9 = STRING: Normal

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorCurrentValue.9 = INTEGER: 12160

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorBaseUnit.9 = INTEGER: volts(4)

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorExponent.9 = INTEGER: -3

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorUpperNonRecoverableThreshold.9 = INTEGER: 14994

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorUpperCriticalThreshold.9 = INTEGER: 13986

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorUpperNonCriticalThreshold.9 = INTEGER: 12978

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorLowerNonRecoverableThreshold.9 = INTEGER: 8946

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorLowerCriticalThreshold.9 = INTEGER: 9954

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorLowerNonCriticalThreshold.9 = INTEGER: 10962

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorEnabledThresholds.9 = BITS: FC lowerThresholdNonCritical(0) upperThresholdNonCritical(1) lowerThresholdCritical(2) upperThresholdCritical(3) lowerThresholdFatal(4) upperThresholdFatal(5)


    注 -  使用 Oracle ILOM 2.0 时,将返回以下行:

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorType.9 = INTEGER: unknown(1)

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorParentFruIndex.9 = INTEGER: -1

    SUN-HW-MONITORING-MIB::sunHwMonNumericVoltageSensorParentFruName.9 = STRING:

    这属于预期行为,因为该信息特定于 Oracle ILOM 3.0。



    提示  -  分析以下各行时,不要忘记,sunHwMonNumericVoltageSensorCurrentValue 是使用 sunHwMonNumericVoltageSensorExponent 中设置的指数返回的。 SUN-HW-MONITORING-MIB:: sunHwMonNumericVoltageSensorCurrentValue.9 = INTEGER: 12290 SUN-HW-MONITORING-MIB:: sunHwMonNumericVoltageSensorBaseUnit.9 = INTEGER: volts(4) SUN-HW-MONITORING-MIB:: sunHwMonNumericVoltageSensorExponent.9 = INTEGER: -3 在本示例中,指数为 -3,表示必须将 sunHwMonNumericVoltageSensorCurrentValue 的电压值乘以 10-3,从而得出 12.290 伏。