hh3cNTPPeerLeap
HH3C-NTP-MIB ·
.1.3.6.1.4.1.25506.8.22.2.1.1.1.8
Object
column Enumeration
This is a two-bit code warning of an impending leap second to be inserted in the NTP timescale. The bits are set before 23:59 on the day of insertion and reset after 00:00 on the following day. This causes the number of seconds (rollover interval) in the day of insertion to be increased or decreased by one. The two bits are coded as below, 00, no warning 01, last minute has 61 seconds 10, last minute has 59 seconds 11, alarm condition (clock not synchronized)
Context
- MIB
- HH3C-NTP-MIB
- OID
.1.3.6.1.4.1.25506.8.22.2.1.1.1.8- Type
- column
- Access
- readonly
- Status
- current
- Parent
- hh3cNTPPeerEntry
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 'HH3C-NTP-MIB' -M '/opt/observium/mibs/hh3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HH3C-NTP-MIB::hh3cNTPPeerLeap'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HH3C-NTP-MIB' -M '/opt/observium/mibs/hh3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HH3C-NTP-MIB::hh3cNTPPeerLeap.<hh3cNTPPeerRemAdr>.<hh3cNTPPeerHMode>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HH3C-NTP-MIB' -M '/opt/observium/mibs/hh3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HH3C-NTP-MIB::hh3cNTPPeerLeap'
Syntax
Enumeration
Values & Constraints
Enumerated Values
0 | noWarning |
1 | addSecond |
2 | subtractSecond |
3 | alarm |