hmNetNTPStatusCode

HMPRIV-MGMT-SNMP-MIB · .1.3.6.1.4.1.248.14.2.3.31.11

Object

Operational status of the NTP sub-system.
The value is a bit mask:
1  local system clock synchronized
2  generic error (see hmNetNTPStatusText)
100  server 1 not synchronized
200  server 1 protocol error
400  server 1 not responding
800  server 1 synchronization in progress
10000  server 2 not synchronized
20000  server 2 protocol error
40000  server 2 not responding
80000  server 2 synchronization in progress
(Note that all values are hexadecimal.)

Context

MIB
HMPRIV-MGMT-SNMP-MIB
OID
.1.3.6.1.4.1.248.14.2.3.31.11
Type
scalar
Access
readonly
Status
current
Parent
hmNetNTPGroup

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

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

Syntax

Source
SNMPv2-SMIInteger32
Base type
Integer32

Values & Constraints

Type Constraints
range: -2147483648..2147483647