wrsLeapSecStatusDetails

WR-SWITCH-MIB · .1.3.6.1.4.1.96.100.7.1.1.9

Object

scalar Enumeration
Leap second status
ok -  Everything ok
leapSecFileExpired - The current leap second file is out-dated
internalErrorDetected - Internal error detected (system,...)
taiReadError - Cannot read the TAI time
leaSecInserted - A leap second will be inserted at 00:00 
leapSecDeleted - A leap second will be deleted at 00:00
errorMinor - cannot read the status file, problem is probably somewhere
else

Context

MIB
WR-SWITCH-MIB
OID
.1.3.6.1.4.1.96.100.7.1.1.9
Type
scalar
Access
readonly
Status
current
Parent
wrsCurrentTimeGroup

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

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

Syntax

Enumeration

Values & Constraints

Enumerated Values
0na
1ok
2statusFileMissing
3unknownStatus
4leapSecFileExpired
5internalErrorDetected
6taiReadError
7leaSecInserted
8leapSecDeleted