hwXponDeviceOntPotsPortPTPHookState
HUAWEI-XPON-COMMON-MIB ·
.1.3.6.1.4.1.2011.6.145.1.1.1.42.1.4
Object
column Enumeration
ONT POTS port physics hook state. Options: 1. onHook(1) - ONT POTS port physics is onHook 2. offHook(2) - ONT POTS port physics is offHook 3. invalidState(-1) - Returned in case of query failure or error
Context
- MIB
- HUAWEI-XPON-COMMON-MIB
- OID
.1.3.6.1.4.1.2011.6.145.1.1.1.42.1.4- Type
- column
- Access
- readonly
- Status
- current
- Parent
- hwXponDeviceOntPotsPortStateEntry
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-XPON-COMMON-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-XPON-COMMON-MIB::hwXponDeviceOntPotsPortPTPHookState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-XPON-COMMON-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-XPON-COMMON-MIB::hwXponDeviceOntPotsPortPTPHookState.<ifIndex>.<hwXponOntIndex>.<hwXponDeviceOntPotsPortId>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-XPON-COMMON-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-XPON-COMMON-MIB::hwXponDeviceOntPotsPortPTPHookState'
Syntax
Enumeration
Values & Constraints
Enumerated Values
-1 | invalidState |
1 | onHook |
2 | offHook |