SNMP MIB for Timing on Routing Platforms
This topic talks about the Junos OS and Junos OS Evolved support for SNMP get, get-next, and walk management capabilities for timing features.
Junos OS and Junos OS Evolved support SNMP get, get-next, and walk management capabilities for timing features. These capabilities are enabled through the PTP MIB, SyncE MIB and GPS MIB timing objects.
The PTP MIB and SyncE MIB timing objects are grouped under the jnxTimingNotfObjects SNMP MIB object.
Table 1 shows the list of SNMP MIB objects supported for SNMP get, get-next, and walk management.
|
SNMP MIB |
Object |
Description |
|---|---|---|
|
PTP MIB |
jnxPtpServoState |
Denotes the following PTP Servo states:
|
|
jnxPtpServoStateStr |
Denotes the PTP Servo state string:
|
|
|
jnxPtpClass |
Denotes the class of the PTP grandmaster clock. |
|
|
jnxPtpGmId |
Denotes the PTP grandmaster clock identifier. |
|
|
jnxPtpPerformanceTable |
PTP performance table to get the performance of the active PTP timeReceiver port. |
|
|
jnxPtpStatisticsTable |
PTP statistics table to display the statistics of active PTP timeReceiver port. |
|
|
jnxPtpPassivePortMonitorTable |
PTP performance table to get the performance of PTP passive ports. |
|
|
jnxPtpPassivePortMonitorDelayRequestInterval |
Provides a through configuration. |
|
|
jnxPtpPassivePortMonitorEnabled |
Indicates if the configurarion is enabled or disabled. |
|
|
jnxPtpPerformanceMonitorEnabled |
Indicates if the configurarion is enabled or disabled. |
|
|
jnxPtpStatisticsAnnouncedFromAllForeignMasters |
Counter indicating the total number of announce messages from the foreign masters that have been received for each 15 minutes and 24 hours interval. |
|
|
jnxPtpPhaseErrorRelativeThreshold |
Indicates the currently configured phase-monitoring threshold. |
|
|
Following MIBs are specific for the Phase Adjustment Mitigation feature supported platforms: |
||
|
jnxPtpPhaseMonitoringPtpIntfName |
Indicates the name of the PTP interface being monitored for the Phase Adjustment Mitigation feature. This is not present if the interface is not being monitored. |
|
|
jnxPtpPhaseMonitoringSynceIntfName |
The name of the locked SyncE interface while the phase is being monitored. If SyncE
is in holdover due to the Phase Adjustment Mitigation feature, this displays the
locked SyncE interface prior to holdover start. This is not present if phase is not
being monitored, |
|
|
jnxPtpPhaseCorrection |
Denotes the last attempted phase correction when threshold was exceeded and phase corrections were ignored. Not queryable outside of a trap. |
|
|
jnxPtpPhaseMonitoringReason |
Indicates a reason for some phase monitoring event. Not queryable outside of a trap. |
|
|
jnxPtpPhaseMonitoringHoldoverLimit |
Provides the configured holdover time limit if the Phase Adjustment Mitigation feature brings the servo into holdover. 0 if no time limit configured. |
|
|
jnxPtpPhaseMonitoringSynceHoldover |
Indicates whether SyncE is configured to go into holdover when the servo goes into holdover due to the Phase Adjustment Mitigation feature. 0 if not configured, 1 if configured. |
|
| (ACX7332, ACX7348) | ||
| jnxPtpPhaseOffset | Denotes the PTP phase offset. | |
| jnxPtpUtcOffset | Denotes the PTP UTC offset. | |
| jnxPtpAdvClockClass | Denotes the PTP Advertised clock class. | |
| jnxTimingFrequencyTraceability | Denotes the frequency traceability indicator. | |
| jnxTimingTimeTraceability | Denotes the time traceability indicator. | |
| jnxClksyncPtpOperationalMasters | Denotes the PTP operational masters. | |
| jnxClksyncPtpOperationalSlaves | Denotes the PTP operational timeReceiver clocks. | |
|
SyncE MIB |
jnxClksyncQualityCode |
Denotes the SSM/ESMC quality level of the locked source in decimal format. |
|
jnxClksyncQualityCodeStr |
Denotes the SSM/ESMC quality level of the locked source in string format |
|
|
jnxClksyncIfIndex |
Denotes the interface index of the locked source in decimal format. |
|
|
jnxClksyncIntfName |
Denotes the interface name of the locked source in string format. |
|
| (ACX7332, ACX7348) | ||
| jnxClksyncSynceQualityTable | Denotes the SyncE table to get quality metrics for all configured sources. | |
| jnxClksyncSynceQualityEntry | Denotes the SyncE table entry to get quality metrics for all configured sources. | |
| jnxClksyncSynceQualityIntfName | Denotes the interface name of the configured source. | |
| jnxClksyncSynceQualityValue | Denotes the quality level of the configured source. | |
| jnxClksyncSynceLockedIfIndex | Denotes the locked SNMP ifIndex of member interface. | |
|
jnxClksyncSynceLockedIntfName |
Denotes the SyncE interface name. | |
| jnxClksyncDpllState | Denotes the SyncE DPLL states. | |
|
jnxClksyncDpllStateStr |
Denotes the DPLL state in string format. | |
|
GPS MIB |
jnxGpsRecvStatus |
Displays the status of the GPS receiver. |
-
The SNMP get and walk management are supported only for scalar objects.
Use the
show snmp mib get>andshow snmp mib walk <oid>commands to view the configured SNMP MIB objects. -
For SyncE objects, the jnxClksyncQualityCode, jnxClksyncQualityCodeStr, jnxClksyncIfIndex, and jnxClksyncIntfName objects displays only for locked source.
- For additional details, see Timing MIBs and Notifications.
You can use the show chassis synchronization extensive, show ptp
lock-status detail, show snmp mib get
<MIB-timing-objects>, and show snmp mib walk
jnxTimingNotfObjects show commands for monitoring and troubleshooting purposes.
The following are the sample show command outputs for reference:
show chassis synchronization extensive
user@host> show chassis synchronization extensive Current clock status : Locked Clock locked to : Primary SNMP trap status : Enabled Configured sources: Interface : ge-0/0/7 Status : Secondary Index : 136 Clock source state : Clk qualified Priority : Default(8) Configured QL : SEC ESMC QL : PRC Clock source type : ifd Clock Event : Clock qualified Interface State : Up,sec,ESMC Rx(SSM 0x2),ESMC TX(QL SEC/SSM 0xb), Interface : ge-0/1/1 Status : Primary Index : 138 Clock source state : Clk qualified Priority : Default(8) Configured QL : PRC ESMC QL : PRC Clock source type : ifd Clock Event : Clock locked Interface State : Up,pri,ESMC Rx(SSM 0x2),ESMC TX(QL DNU/SSM 0xf)
show chassis synchronization extensive
user@host> show chassis synchronization extensive Configured ports: Name : auxiliary Rx status : active Rx message : TL000001433759011353 Current ToD : Mon Jun 8 10:23:31 2015 Last ToD update : Mon Jun 8 10:23:30 2015 GPS receiver status : Lost Sync UTC Pending : FALSE UTC Offset : 35 One PPS status : Active Configured sources: Interface : gps Status : Primary Index : 1 Clock source state : Clk failed Priority : Default(6) Configured QL : PRC ESMC QL : DNU Clock source type : extern Clock Event : Clock failed Interface State : Up,pri
show ptp lock-status detail
user@host> show ptp lock-status detail Lock Status: Lock State : 1 (FREERUN) Phase offset : 0.000000000 sec State since : 2015-05-04 03:13:49 PDT (00:01:45 ago) Selected Master Details: Upstream Master address : 61.1.1.2 Slave interface : ge-0/1/1.0 Parent Id : 40:b4:f0:ff:fe:42:f5:00 GMC Id : 40:b4:f0:ff:fe:42:d5:00
show snmp mib get <MIB-timing-objects>
user@host> show snmp mib get jnxGpsRecvStatus.0 jnxGpsRecvStatus.0 = Lost Sync
show snmp mib walk jnxTimingNotfObjects
user@host> show snmp mib walk jnxTimingNotfObjects jnxClksyncIfIndex.0 = 138 jnxClksyncIntfName.0 = ge-0/1/1 jnxClksyncQualityCode.0 = 2 jnxPtpServoState.0 = 1 jnxPtpClass.0 = 6 jnxPtpGmId.0 = 40:b4:f0:ff:fe:42:d5:00 jnxClksyncQualityCodeStr.0 = PRC jnxPtpServoStateStr.0 = FREERUN