juniNtpPeerState
Juniper-System-Clock-MIB ·
.1.3.6.1.4.1.4874.2.2.56.2.4.2.1.1
Object
column OctetString
Displays the peer server association state to NTP client on the system.
Bit Peer State Description
--- ---------- ------------------------------------------------
0 master Means NTP client on the system has chosen this peer
server as the master.
1 configured Confirms peer server configured for the NTP client.
2 selected NTP client will consider this peer server when it
chooses the master.
3 unusable Indication that the server does not meet the initial
criteria for the master
4 preferred Indicates as preferred time source.
5 correct NTP client considers the peer server's clock is
reasonably correct.
6 incorrect NTP client considers the peer server's clock is
not reasonably correct
7 reserved
Each bit position value of 0 and 1 disables and enables that peer
state respectively.
Context
- MIB
- Juniper-System-Clock-MIB
- OID
.1.3.6.1.4.1.4874.2.2.56.2.4.2.1.1- Type
- column
- Access
- readonly
- Status
- current
- Parent
- juniNtpPeerEntry
- Groups
- 2
Net-SNMP examples
How SNMP and these commands workWalk 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 'Juniper-System-Clock-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'Juniper-System-Clock-MIB::juniNtpPeerState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'Juniper-System-Clock-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'Juniper-System-Clock-MIB::juniNtpPeerState.<juniNtpClientIfRouterIndex>.<juniNtpPeerCfgIpAddress>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'Juniper-System-Clock-MIB' -M '/opt/observium/mibs/junose:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'Juniper-System-Clock-MIB::juniNtpPeerState'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 1-1
Conformance
Member of