- Table of Contents
-
- 14-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-NTP commands
- 04-Network synchronization commands
- 05-SNMP commands
- 06-RMON commands
- 07-NETCONF commands
- 08-CWMP commands
- 09-EAA commands
- 10-Process monitoring and maintenance commands
- 11-Sampler commands
- 12-Mirroring commands
- 13-NetStream commands
- 14-IPv6 NetStream commands
- 15-Fast log output commands
- 16-Flow log commands
- 17-Information center commands
- 18-GOLD commands
- 19-Packet capture commands
- 20-Flow monitor commands
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Network synchronization commands | 78.70 KB |
Network synchronization commands
display network-clock self-test-result
Network synchronization commands
display network-clock self-test-result
Use display network-clock self-test-result to display the self-test result of the network clock monitoring module.
Syntax
In standalone mode:
display network-clock self-test-result
In IRF mode:
display network-clock self-test-result [ chassis chassis-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays the test result for all member devices. (In IRF mode.)
Examples
# Display the self-test result of the network clock monitoring module.
<Sysname> display network-clock self-test-result
Clock module state: Normal
FPGA : Normal
E1A : Normal
E1B : Normal
Clock Chip : Normal
Table 1 Command output
Field |
Description |
Clock module state |
State of the network clock monitoring module: · Normal—The network clock monitoring module is operating correctly. · Fault—The network clock monitoring module is not operating correctly. The module changes to this state when its FPGA, E1A, E1B, or clock chip has failed. |
FPGA |
State of the field programmable gate array (FPGA): · Normal—The FPGA is operating correctly. · Fault—The FPGA has failed. |
E1A |
State of the network clock chip E1A: · Normal—The E1A is operating correctly. · Fault—The E1A has failed. |
E1B |
State of the network clock chip E1B: · Normal—The E1B is operating correctly. · Fault—The E1B has failed. |
Clock Chip |
State of the clock chip: · Normal—The clock chip is operating correctly. · Fault—The clock chip has failed. |
display network-clock source
Use display network-clock source to display the states of clock sources.
Syntax
In standalone mode:
display network-clock source
In IRF mode:
display network-clock source [ chassis chassis-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays the states of clock sources on all IRF member devices. (In IRF mode.)
Examples
# Display the states of clock sources.
<Sysname> display network-clock source
Traced reference: Pos3/1/1
Reference State Priority SSM level Force SSM Sa-Bit LPU port Frequency
BITS0 Lost 255 Unknown ON 4 In 2 Mbps
BITS1 Lost 255 Unknown ON 4 Out 2 MHz
PTP N/A 1 Unknown ON N/A N/A N/A
Pos3/1/1 Normal 10 Unknown OFF N/A Yes N/A
Pos3/1/3 Normal 15 Unknown ON N/A No N/A
Table 2 Command output
Field |
Description |
Traced reference |
Traced clock source. If a clock source is traced, the network clock monitoring module distributes its timing signal to all interface cards. If no clock source has been traced, this field displays N/A. |
Reference |
Clock source. |
State |
State of the clock source: · Normal—The clock source is operating correctly. · Lost—The clock source is not available or is in an error condition. · N/A—PTP is used for time synchronization. |
Priority |
Priority of the clock source. |
SSM level |
Clock source quality level in the SSM, by descending order of quality: · PRC—G.811 primary reference clock. · SSU-A—G.812 primary-level SSU. · SSU-B—G.812 second-level SSU. · SEC—SDH equipment clock. · DNU—Do not use for synchronization. · Unknown—Unknown quality level. |
Force SSM |
Method for setting the quality of the clock source: · ON—Sets the clock source's quality level to the user-assigned SSM value. · OFF—Extracts the SSM quality level from the timing signal sent by the clock source. |
Sa-Bit |
Sa bit used by BITS to transmit the SSM: · sa4—Bit Sa4. · sa5—Bit Sa5. · sa6—Bit Sa6. · sa7—Bit Sa7. · sa8—Bit Sa8. This field displays N/A for line clock sources, because line clocks do not support the Sa bit configuration. |
LPU port |
Line clock input role of the port: · Yes—The port has been specified as a line clock input port. · No—The port is not specified as a line clock input port. This field displays N/A for BITS 0, BITS 1, and PTP. |
Frequency |
Frequency of the BITS clock: · 2 Mbps. · 2 MHz. This field displays N/A for a non-BITS clock source. |
display network-clock status
Use display network-clock status to display the operating state of the network clock monitoring module.
Syntax
In standalone mode:
display network-clock status
In IRF mode:
display network-clock status [ chassis chassis-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays information for all IRF member devices. (In IRF mode.)
Examples
# Display the operating state of the network clock monitoring module.
<Sysname> display network-clock status
Mode : Auto
Reference : N/A
Traced reference : N/A
Lock mode : Unknown
SSM output level : SSUB
SSM control enable: On
Table 3 Command output
Field |
Description |
Mode |
Clock reference selection mode: · Auto—Automatic reference selection. · Manual—Manual reference selection. |
Reference |
Clock source. |
Traced reference |
Clock source that has been selected and traced. This field displays N/A if no clock reference has been selected. |
Lock mode |
Phase lock state of the clock monitoring module: · Freerun—Freerun mode. · Locked—Locked (traced) mode. · Holdover—Holdover state. · Pre-locked—Pre-locked mode. · Pre-locked2—Pre-locked mode 2. · Lost—The clock signal has been lost. · Unknown—No timing signal is available. The network clock monitoring module is in an exceptional condition. |
SSM output level |
Signal quality level of the clock source in the SSM, by descending order of quality: · PRC—G.811 primary reference clock. · SSU-A—G.812 primary-level SSU. · SSU-B—G.812 second-level SSU. · SEC—SDH equipment clock. · DNU—Do not use for synchronization. · Unknown—Unknown quality level. |
SSM control enable |
Contribution of SSM to automatic reference selection: · On—SSM is used in the selection process. · Off—SSM is not used in the selection process. |
display network-clock version
Use display network-clock version to display the version of the network clock monitoring module.
Syntax
In standalone mode:
display network-clock version
In IRF mode:
display network-clock version [ chassis chassis-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays information for all IRF member devices. (In IRF mode.)
Examples
# Display version information for the network clock monitoring module.
<Sysname> display network-clock version
Clock card
Type : SR07CK3C
PCB : Ver.A
FPGA version: 100
Release date: 2017-05-14
Table 4 Command output
Field |
Description |
Type |
Model of the clock daughter card. The available model is SR07CK3C. |
PCB |
PCB version of the clock daughter card. |
FPGA version |
FPGA version of the clock daughter card. |
Release date |
Release date of the clock daughter card. |
network-clock lpuport
Use network-clock lpuport to specify a line clock input port.
Use undo network-clock lpuport to remove a line clock input port.
Syntax
network-clock lpuport interface-type interface-number
undo network-clock lpuport interface-type interface-number
Default
No ports are specified as line clock input ports.
Views
System view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
Only main physical interfaces can act as clock input ports.
When you specify a main interface as a clock input port, you must set its clock mode to slave. The network clock monitoring module extracts clock signal from an interface only when the interface is operating in slave mode.
Examples
# Specify POS 3/1/1 as a line clock input port.
<Sysname> system-view
[Sysname] network-clock lpuport pos 3/1/1
Related commands
display network-clock source
network-clock source forcessm
Use network-clock source forcessm to configure the method for setting the quality level of a clock source.
Use undo network-clock source forcessm to restore the default.
Syntax
In standalone mode:
network-clock source { bits0 | bits1 | lpuport interface-type interface-number | ptp } forcessm { off | on }
undo network-clock source { bits0 | bits1 | lpuport interface-type interface-number | ptp } forcessm
In IRF mode:
network-clock chassis chassis-number source { bits0 | bits1 | ptp } forcessm { off | on }
network-clock source lpuport interface-type interface-number forcessm { off | on }
undo network-clock chassis chassis-number source { bits0 | bits1 | ptp } forcessm
undo network-clock source lpuport interface-type interface-number forcessm
Default
The network clock monitoring module sets the quality level of a clock source to the user-assigned value. It does not extract the quality level from the SSM sent by the clock source.
Views
System view
Predefined user roles
network-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
bits0: Specifies the BITS 0 clock.
bits1: Specifies the BITS 1 clock.
lpuport interface-type interface-number: Specifies a line clock. The interface-type interface-number arguments specify the type and number of the line clock input port.
ptp: Specifies the Precision Timing Protocol (PTP).
off: Sets the quality level of a clock source to the value extracted from the SSM sent by the clock source.
on: Sets the quality level of a clock source to the user-assigned value.
Examples
# Set the quality level of BITS 0 to the value extracted from the SSM sent by the clock source.
<Sysname> system-view
[Sysname] network-clock source bits0 forcessm off
Related commands
display network-clock source
network-clock source frequency
Use network-clock source frequency to set the frequency of a BITS clock.
Use undo network-clock source frequency to restore the default.
Syntax
In standalone mode:
network-clock source { bits0 | bits1 } frequency { bps-2m | hz-2m }
undo network-clock source { bits0 | bits1 } frequency
In IRF mode:
network-clock chassis chassis-number source { bits0 | bits1 } frequency { bps-2m | hz-2m }
undo network-clock chassis chassis-number source { bits0 | bits1 } frequency
Default
The frequency of a BITS clock is 2 Mbps.
Views
System view
Predefined user roles
network-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
bits0: Specifies the BITS 0 clock.
bits1: Specifies the BITS 1 clock.
bps-2m: Sets the frequency to 2 Mbps.
hz-2m: Sets the frequency to 2 MHz.
Examples
# Set the frequency to 2 MHz for BITS 0.
<Sysname> system-view
[Sysname] network-clock source bits0 frequency hz-2m
Related commands
display network-clock source
network-clock source priority
Use network-clock source priority to set the priority of a clock source.
Use undo network-clock source priority to restore the default.
Syntax
In standalone mode:
network-clock source { bits0 | bits1 | lpuport interface-type interface-number | ptp } priority priority
undo network-clock source { bits0 | bits1 | lpuport interface-type interface-number | ptp } priority
In IRF mode:
network-clock chassis chassis-number source { bits0 | bits1 | ptp } priority priority
network-clock source lpuport interface-type interface-number priority priority
undo network-clock chassis chassis-number source { bits0 | bits1 | ptp } priority
undo network-clock source lpuport interface-type interface-number priority
Default
All clock sources have a priority of 255.
Views
System view
Predefined user roles
network-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
bits0: Specifies the BITS 0 clock.
bits1: Specifies the BITS 1 clock.
lpuport interface-type interface-number: Specifies a line clock. The interface-type interface-number arguments specify the type and number of the line clock input port.
ptp: Specifies PTP.
priority priority: Sets a priority value in the range of 1 to 255. The lower the value, the higher quality the timing signal.
Examples
# Assign a priority of 3 to BITS 0.
<Sysname> system-view
[Sysname] network-clock source bits0 priority 3
Related commands
display network-clock source
network-clock source sa-bit
Use network-clock source sa-bit to set the Sa bit used to transmit the SSM for a BITS clock.
Use undo network-clock source sa-bit to restore the default.
Syntax
In standalone mode:
network-clock source { bits0 | bits1 } sa-bit { sa4 | sa5 | sa6 | sa7 | sa8 }
undo network-clock source { bits0 | bits1 } sa-bit
In IRF mode:
network-clock chassis chassis-number source { bits0 | bits1 } sa-bit { sa4 | sa5 | sa6 | sa7 | sa8 }
undo network-clock chassis chassis-number source { bits0 | bits1 } sa-bit
Default
BITS clocks use Sa4 to transmit the SSM.
Views
System view
Predefined user roles
network-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
bits0: Specifies the BITS 0 clock.
bits1: Specifies the BITS 1 clock.
sa-bit: Specifies an Sa bit.
· sa4—Specifies bit Sa4.
· sa5—Specifies bit Sa5.
· sa6—Specifies bit Sa6.
· sa7—Specifies bit Sa7.
· sa8—Specifies bit Sa8.
Examples
# Specify Sa5 as the SSM bit for BITS 0.
<Sysname> system-view
[Sysname] network-clock source bits0 sa-bit sa5
network-clock source ssm
Use network-clock source ssm to assign an SSM quality level to a clock source.
Use undo network-clock source ssm to restore the default.
Syntax
In standalone mode:
network-clock source { bits0 | bits1 | lpuport interface-type interface-number | ptp } ssm { dnu | prc | sec | ssua | ssub | unknown }
undo network-clock source { bits0 | bits1 | lpuport interface-type interface-number | ptp } ssm
In IRF mode:
network-clock chassis chassis-number source { bits0 | bits1 | ptp } ssm { dnu | prc | sec | ssua | ssub | unknown }
network-clock source lpuport interface-type interface-number ssm { dnu | prc | sec | ssua | ssub | unknown }
undo network-clock chassis chassis-number source { bits0 | bits1 | ptp } ssm
undo network-clock source lpuport interface-type interface-number ssm
Default
The SSM quality level is unknown for all clock sources.
Views
System view
Predefined user roles
network-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
bits0: Specifies the BITS 0 clock.
bits1: Specifies the BITS 1 clock.
lpuport interface-type interface-number: Specifies a line clock. The interface-type interface-number arguments specify the type and number of the line clock input port.
ptp: Specifies the PTP.
dnu: Sets the SSM quality level to DNU SSM quality level. DNU clock sources cannot participate in automatic clock reference selection.
prc: Sets the SSM quality level to G.811 primary reference clock.
sec: Sets the SSM quality level to SDH equipment clock.
ssua: Sets the SSM quality level to G.812 primary-level SSU.
ssub: Sets the SSM quality level to G.812 second-level SSU.
unknown: Sets the SSM quality level to unknown.
Usage guidelines
For the manually assigned SSM quality level to take effect, you must configure the network-clock source forcessm on command.
It takes time for an SSM quality level change to take effect. To verify the effectiveness of the change, use the display network-clock source command or check the log.
Examples
# Set the SSM quality level of BITS 0 to DNU.
<Sysname> system-view
[Sysname] network-clock source bits0 ssm dnu
network-clock ssmcontrol
Use network-clock ssmcontrol to control the use of SSM quality level in the automatic reference selection process.
Use undo network-clock ssmcontrol to restore the default.
Syntax
In standalone mode:
network-clock ssmcontrol { off | on }
undo network-clock ssmcontrol
In IRF mode:
network-clock chassis chassis-number ssmcontrol { off | on }
undo network-clock chassis chassis-number ssmcontrol
Default
The SSM quality level is ignored in the automatic reference selection process.
Views
System view
Predefined user roles
network-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
off: Ignores the SSM quality level in clock reference selection.
on: Includes the SSM quality level as a factor for clock reference selection.
Usage guidelines
This command takes effect for automatic clock reference selection.
Examples
# Include the SSM quality level into the automatic clock reference selection process.
<Sysname> system-view
[Sysname] network-clock ssmcontrol on
Related commands
display network-clock source
network-clock ssm
network-clock work-mode
Use network-clock work-mode to set the clock reference selection mode.
Use undo network-clock work-mode to restore the default.
Syntax
In standalone mode:
network-clock work-mode { auto | manual source { bits0 | bits1 | lpuport interface-type interface-number } }
undo network-clock work-mode
In IRF mode:
network-clock chassis chassis-number work-mode { auto | manual source { bits0 | bits1 } }
network-clock work-mode manual source lpuport interface-type interface-number
undo network-clock chassis chassis-number work-mode
Default
Automatic reference selection mode applies.
Views
System view
Predefined user roles
network-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
auto: Enables automatic reference selection.
manual source: Enables manual reference selection.
bits0: Specifies BITS 0 as the reference.
bits1: Specifies BITS 1 as the reference.
lpuport interface-type interface-number: Specifies a line clock input port as the reference. The interface-type interface-number arguments specify an interface by its type and number.
Usage guidelines
To use the timing signal from an interface as the synchronization reference, you must also specify the interface as a line clock input port by using the network-clock lpuport command.
It takes time for a clock reference selection mode change to take effect. To verify the effectiveness of the change, use the display network-clock status command or check the log.
Examples
# Specify BITS 0 as the clock reference.
<Sysname> system-view
[Sysname] network-clock work-mode manual source bits0
# Enable automatic reference selection.
<Sysname> system-view
[Sysname] network-clock work-mode auto
Related commands
display network-clock source
display network-clock status
network-clock lpuport
reset network-clock
Use reset network-clock to reset the state of the network clock monitoring module.
Syntax
In standalone mode:
reset network-clock
In IRF mode:
reset network-clock chassis chassis-number
Views
Any view
Predefined user roles
network-admin
Parameters
chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.)
Usage guidelines
When two devices are traced references of each other, a clock loop occurs between them. The phase lock states of the network clock monitoring modules of two devices change from Locked to Holdover. The Holdover state remains even if you clear the incorrect configurations that cause the loop. To restore the operation of the device clocks, use this command on the device that acts the clock reference to reset the state of the network clock monitoring module so that it can provide clock signals correctly to the peer device. For example, Device A and Device B are traced references of each other. To use Device A as the clock reference to provide clock signals to Device B, perform the following steps:
1. Clear the incorrect configurations on Device A.
2. Execute this command on Device B to reset the state of the network clock monitoring module.
3. Configure Device A to use Device B as its clock reference.
Examples
# Reset the state of the network clock monitoring module.
<Sysname> reset network-clock
Related commands
display network-clock source