hwPgCurrentWorkEntity
HUAWEI-PROTECTION-MIB ·
.1.3.6.1.4.1.2011.6.50.1.1.2
Object
column Enumeration
Whether the current board or port is the working or the protecting one. Options: 1. work(1) - indicates that the port is working 2. protect(2) - indicates that the port is protecting
Context
- MIB
- HUAWEI-PROTECTION-MIB
- OID
.1.3.6.1.4.1.2011.6.50.1.1.2- Type
- column
- Access
- readonly
- Status
- current
- Parent
- hwProtectionEntry
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-PROTECTION-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-PROTECTION-MIB::hwPgCurrentWorkEntity'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-PROTECTION-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-PROTECTION-MIB::hwPgCurrentWorkEntity.<ifIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-PROTECTION-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-PROTECTION-MIB::hwPgCurrentWorkEntity'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | work |
2 | protect |