hwNTPSysLeap

HUAWEI-NTP-MIB · h3c variant · .1.3.6.1.4.1.2011.5.25.22.1.1.1

Object

scalar Enumeration
Leap Indicator (LI): This is a two-bit code warning of an impending
leap second to be inserted/deleted in the last minute of the current
day, with bit 0 and bit 1, respectively, coded as follows:
00, no warning
01, last minute has 61 seconds
10, last minute has 59 seconds)
11, alarm condition (clock not synchronized).

Context

MIB
HUAWEI-NTP-MIB
OID
.1.3.6.1.4.1.2011.5.25.22.1.1.1
Type
scalar
Access
readonly
Status
current
Parent
hwNTPSystemMIBObjects

Scalars have one instance, identified by the .0 suffix.

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-NTP-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-NTP-MIB::hwNTPSysLeap.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-NTP-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-NTP-MIB::hwNTPSysLeap'

Syntax

Enumeration

Values & Constraints

Enumerated Values
0noWarning
1addSecond
2subtractSecond
3alarm