hw1588ClkPtpLockState
HUAWEI-CLK-MIB ·
.1.3.6.1.4.1.2011.6.25.1.5.1.20
Object
column Enumeration
1588 port lock state. Options: 1. locked(1) - indicates that the clock is locked 2. unlocked(2) - indicates that the clock is unlocked
Context
- MIB
- HUAWEI-CLK-MIB
- OID
.1.3.6.1.4.1.2011.6.25.1.5.1.20- Type
- column
- Access
- readonly
- Status
- current
- Parent
- hwClock1588ManageEntry
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-CLK-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-CLK-MIB::hw1588ClkPtpLockState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-CLK-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-CLK-MIB::hw1588ClkPtpLockState.<hw1588ClkInIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-CLK-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-CLK-MIB::hw1588ClkPtpLockState'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | locked |
2 | unlocked |