hardDiskHotSpareState
HUAWEI-SERVER-IBMC-MIB ·
.1.3.6.1.4.1.2011.2.235.1.1.18.50.1.24
Object
column r/w
Enumeration
Hard disk hot spare state.
1: None
Cancel the global/dedicated hot spare setting, can be set when hardDiskHotSpareState is Global/Dedicated.
2: Global
Can be set only when hardDiskFwState = Unconfigured Good.
3: Dedicated
Can be set only when hardDiskFwState = Unconfigured Good.
Setting value described as following:
Byte1 - Indicating the hard disk used as dedicated hot spare, fixed to 3.
Byte2 - The logical drive index which the hard disk spared for, started from 1.
For example:
Set this hard disk as dedicated hot spare for logical drive 2, the setting value should be
0x0203 = 2 * 256 + 3 = 515.
4: Commissioned (read only)
5: Emergency (read only)
255: Unknown (read only)
Context
- MIB
- HUAWEI-SERVER-IBMC-MIB
- OID
.1.3.6.1.4.1.2011.2.235.1.1.18.50.1.24- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hardDiskDescriptionEntry
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'HUAWEI-SERVER-IBMC-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-SERVER-IBMC-MIB::hardDiskHotSpareState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-SERVER-IBMC-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-SERVER-IBMC-MIB::hardDiskHotSpareState.<hardDiskIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-SERVER-IBMC-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-SERVER-IBMC-MIB::hardDiskHotSpareState'
Syntax
Enumeration
Values & Constraints
No enumerated values or constraints recorded.