atNtpPeerPreference

AT-NTP-MIB · .1.3.6.1.4.1.207.8.4.4.4.502.7.1.4

Object

column r/w Integer32
This object specifies whether this peer is the
preferred one over the others.
              
It's value is encoded as follows:
0 - unknown
1 - not preferred
2 - preferred
              
When the value of this object is 'not preferred',
NTP chooses the peer with which to synchronize the
time on the local system. If this object is set to
'preferred', NTP will choose the corresponding peer to
synchronize the time with.

Context

MIB
AT-NTP-MIB
OID
.1.3.6.1.4.1.207.8.4.4.4.502.7.1.4
Type
column
Access
readwrite
Status
current
Parent
atNtpPeerEntry

Walk the column to discover its indexed instances, or supply every index to read one instance.

Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'AT-NTP-MIB' -M '/opt/observium/mibs/allied:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'AT-NTP-MIB::atNtpPeerPreference'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'AT-NTP-MIB' -M '/opt/observium/mibs/allied:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'AT-NTP-MIB::atNtpPeerPreference.<atNtpPeerIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'AT-NTP-MIB' -M '/opt/observium/mibs/allied:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'AT-NTP-MIB::atNtpPeerPreference'

Syntax

Integer32

Values & Constraints

Object Constraints
range: 0-2