ntpEntStatusDateTime
NTPv4-MIB ·
.1.3.6.1.2.1.197.1.2.9
Object
scalar NtpDateTime
The current NTP date/time on the device, in 128-bit
NTP date format. If time is not syncronized, this
field shall be a zero-length string.
This object can be used to timestamp events on this
node and allow a management station to correlate
different time objects. For example, a management
station could query this object and sysUpTime in
the same operation to be able to relate sysUpTime
to NTP time.
This object is not to be used to set the time of
the node querying this object. NTP should be used
for this -- or at least SNTP.
Context
- MIB
- NTPv4-MIB
- OID
.1.3.6.1.2.1.197.1.2.9- 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::ntpEntStatusDateTime.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::ntpEntStatusDateTime'
Syntax
- Source
- NtpDateTime
- Base type
OctetString
Values & Constraints
Type Constraints
range: 0
range: 16
Conformance
Member of