ntpEntStatusCurrentMode
NTPv4-MIB ·
.1.3.6.1.2.1.197.1.2.1
Object
scalar Enumeration
The current mode of the NTP. The definition of each possible
value is:
notRunning(1) - NTP is not running.
notSynchronized(2) - NTP is not synchronized to any time
source (stratum = 16).
noneConfigured(3) - NTP is not synchronized and does not
have a reference configured
(stratum = 16).
syncToLocal(4) - NTP is distributing time based on its
local clock (degraded accuracy and/or
reliability).
syncToRefclock(5) - NTP is synchronized to a local
hardware refclock (e.g., GPS).
syncToRemoteServer(6) - NTP is synchronized to a remote
NTP server ('upstream' server).
unknown(99) - The state of NTP is unknown.
Context
- MIB
- NTPv4-MIB
- OID
.1.3.6.1.2.1.197.1.2.1- Type
- scalar
- Access
- readonly
- Status
- current
- Parent
- ntpEntStatus
- Groups
- 1
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'NTPv4-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NTPv4-MIB::ntpEntStatusCurrentMode.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'NTPv4-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'NTPv4-MIB::ntpEntStatusCurrentMode'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | notRunning |
2 | notSynchronized |
3 | noneConfigured |
4 | syncToLocal |
5 | syncToRefclock |
6 | syncToRemoteServer |
99 | unknown |
Conformance
Member of