- Table of Contents
-
- 13-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System Maintenance and Debugging Commands
- 02-NQA Commands
- 03-NTP Commands
- 04-Clock Monitoring Commands
- 05-IPC Commands
- 06-SNMP Commands
- 07-RMON Commands
- 08-CWMP Commands
- 09-Sampler Commands
- 10-Mirroring Commands
- 11-Protocol Packet Statistics Commands
- 12-sFlow Commands
- 13-Information Center Commands
- 14-Packet Capture Commands
Title | Size | Download |
---|---|---|
04-Clock Monitoring Commands | 115.23 KB |
Contents
Clock monitoring configuration commands
display clock phase-lock-state
display clock self-test-result
This feature is supported only on the LSR1SRP2D1.
clock
Syntax
clock { auto | manual source source-number }
undo clock work-mode
View
System view
Default level
2: System level
Parameters
auto: Sets the clock monitoring module to operate in auto mode.
manual source source-number: Sets the clock monitoring module to operate in manual mode, where source-number represents the primary clock source number in manual mode, in the range of 1 to 14.
Description
Use clock to set the work mode of the clock monitoring module, either auto mode or manual mode.
Use undo clock work-mode to restore the default.
By default, the work mode of the clock monitoring module is auto.
Before configuring the work mode, use the display clock source command to display the clock source state. Only clocks that work correctly can be successfully configured as the primary clock source.
After you set the work mode of the clock monitoring module, it takes a period of time for device response. You can use the display clock device command or logs to verify the configuration.
Examples
# Set the clock work mode to manual, and the primary clock source to 1.
<Sysname> system-view
[Sysname] clock manual source 1
clock forcessm
Syntax
clock forcessm { on | off } source source-number
View
System view
Default level
2: System level
Parameters
on: Specifies not to derive the SSM levels from the clock source, which means to use the manually configured SSM levels.
off: Specifies deriving the SSM levels from the clock source, which means the user-configured SSM levels do not take effect.
source source-number: Specifies the number of the clock source, which takes the value of 1 or 2.
Description
Use clock forcessm to set how the SSM levels are derived.
By default, no SSM level is derived from any clock source, which means the SSM levels are manually configured.
Related commands: clock ssm.
Examples
# Derive SSM level from clock source 1.
<Sysname> system-view
[Sysname] clock forcessm off source 1
clock lpuport
Syntax
clock lpuport interface-type interface-number
undo clock lpuport interface-type interface-number
View
System view
Default level
2: System level
Parameters
interface-type interface-number: Specifies a port by its type and number.
Description
Use clock lpuport to specify the input port of the line clock source.
Use undo clock lpuport to restore the default.
By default, the clock input port is the first configurable port by port name in lexical order of the interface card.
For a POS interface card, if you set the port clock to operate in slave mode, you must use this command to select the input port of the board clock source.
Examples
# Set the input port of the line clock source to POS interface 3/1/1.
<Sysname> system-view
[Sysname] clock lpuport pos 3/1/1
clock priority
Syntax
clock priority value source source-number
undo clock priority source source-number
View
System view
Default level
2: System level
Parameters
value: Specifies the priority value in the range of 1 to 14, or takes the value of 255.
source source-number: Specifies the number of the clock source, in the range of 1 to 14.
Description
Use clock priority to set the reference source priority.
Use undo clock priority to restore the default.
By default, the priority of all reference sources is 255.
Examples
# Set the priority of reference source 2 to 3.
<Sysname> system-view
[Sysname] clock priority 3 source 2
clock sa-bit
Syntax
clock sa-bit { sa4 | sa5 | sa6 | sa7 | sa8 } source source-number
undo clock sa-bit source source-number
View
System view
Default level
2: System level
Parameters
sa4: Sets the bit position to sa4.
sa5: Sets the bit position to sa5.
sa6: Sets the bit position to sa6.
sa7: Sets the bit position to sa7.
sa8: Sets the bit position to sa8.
source source-number: Specifies the number of the bits clock source. The source-number argument takes 1 or 2.
Description
Use clock sa-bit to set the bit used to transmit Bits clock source information.
Use undo clock sa-bit to restore the default.
By default, sa4 carries SSM information.
Examples
# Set the bit for transmitting Bits clock source 1 information to sa5.
<Sysname> system-view
[Sysname] clock sa-bit sa5 source 1
clock ssm
Syntax
clock ssm { dnu | lnc | prc | sets | tnc | unknown } source source-number
undo clock ssm source source-number
View
System view
Default level
2: System level
Parameters
dnu: Specifies the SSM level as DNU (DoNotUse).
lnc: Specifies the SSM level as LNC (G.812 local node clock signal).
prc: Specifies the SSM level as PRC (G.811 clock signal).
sets: Specifies the SSM level as SETS (SDH device clock source signal).
tnc: Specifies the SSM level as TNC (G.812 transit node clock signal).
unknown: Specifies the SSM level as unknown (unknown synchronization quality).
source source-number: Specifies the number of the reference source, in the range of 1 to 14.
Description
Use clock ssm to set the SSM levels of the reference sources.
Use undo clock ssm to restore the default.
By default, the SSM level of all reference sources is unknown.
For the line clock source, the SSM level configured is that of the clock source.
For Bits clock source, if the input signal is a 2048 kbps (E1) signal and the clock forcessm off source is executed, the clock source adopts the SSM level derived from the input signals and the SSM configured is omitted.
For Bits clock source, if the input signal is a 2048 kHz signal or a 2048 kbps signal and the clock forcessm on source command is executed, the clock source adopts the SSM level configured.
After you set the SSM levels of the reference sources, it takes a period of time for device response. You can check whether your configuration takes effect through the display clock ssm-level command and the logging information.
Examples
# Set the SSM level of clock source 1 to DNU.
<Sysname> system-view
[Sysname] clock ssm dnu source 1
clock ssmcontrol
Syntax
clock ssmcontrol { on | off }
undo clock ssmcontrol
View
System view
Default level
2: System level
Parameters
on: Specifies activating SSM level.
off: Specifies deactivating SSM level.
Description
Use clock ssmcontrol to activate or deactivate SSM level.
Use undo clock ssmcontrol to restore the default.
By default, SSM level is deactivated.
If SSM level is activated, the clock source is decided by the SSM level in reference source automatic selection.
If SSM level is not activated, you can still set and view the SSM levels, but they are ignored in reference source automatic selection and the clock source is determined by the reference source priority.
Examples
# Activate SSM of clock monitoring module.
<Sysname> system-view
[Sysname] clock ssmcontrol on
display clock config
Syntax
display clock config [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock config to display the current configurations of the clock monitoring module.
Examples
# Display the current configurations of the clock monitoring module.
<Sysname> display clock config
Clock module current configuration:
Work mode : auto
SSM participate in control : no
Reference Priority SSM level Forcessm Sa-bit Lpu port
1 255 UNKNOWN yes 4 N/A
2 255 UNKNOWN yes 4 N/A
3 255 UNKNOWN N/A N/A -
4 255 UNKNOWN N/A N/A -
5 255 UNKNOWN N/A N/A -
6 255 UNKNOWN N/A N/A -
7 255 UNKNOWN N/A N/A -
8 255 UNKNOWN N/A N/A -
9 255 UNKNOWN N/A N/A -
10 255 UNKNOWN N/A N/A -
11 255 UNKNOWN N/A N/A -
12 255 UNKNOWN N/A N/A -
13 255 UNKNOWN N/A N/A -
14 255 UNKNOWN N/A N/A -
Table 1 Command output
Field |
Description |
Clock module current configuration: |
Current configuration of the clock monitoring module. |
Work mode |
Working mode of the clock monitoring module, with auto indicating the auto mode and manual indicating the manual mode. |
SSM participate in control |
Displays whether SSM is activated. |
Reference |
Serial number of the reference source. |
Priority |
Priority of the reference source. |
SSM level |
SSM level of the reference source. |
Forcessm |
Derive mode of the SSM level, with yes meaning derived from Bits clock source and N/A meaning this function is not supported. |
Sa-bit |
Bits used to transmit SSM level information of the Bits clock source. |
Lpu port |
Input port of the line clock source. N/A indicates this function is not supported. A hyphen (-) indicates this port is not configured. |
display clock device
Syntax
display clock device [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock device to display detailed information about the clock monitoring module.
Examples
# Display detailed information about the clock monitoring module.
<Sysname> display clock device
Clock module state is OK
SRAM state: OK
Output 38.88Mhz signal state: OK
PLL tru050 state: OK
PLL 88915 state: OK
OSC state: OK
I2C bus state: OK
EPLD state: OK
HDLC state: OK
E1 A state: OK
E1 B state: OK
Reference state
Work mode : auto
Traced reference : 0
Lock mode : freerun
OSC state : normal
SSM output level : LNC
SSM participate in control : No
Reference State Priority SSM-level Forcessm Sa-bit Lpu port
1 lost 255 UNKNOWN yes 4 N/A
2 lost 255 UNKNOWN yes 4 N/A
3 lost 255 UNKNOWN N/A N/A -
4 lost 255 UNKNOWN N/A N/A -
5 lost 255 UNKNOWN N/A N/A -
6 lost 255 UNKNOWN N/A N/A -
7 lost 255 UNKNOWN N/A N/A -
8 lost 255 UNKNOWN N/A N/A -
9 lost 255 UNKNOWN N/A N/A -
10 lost 255 UNKNOWN N/A N/A -
11 lost 255 UNKNOWN N/A N/A -
12 lost 255 UNKNOWN N/A N/A -
13 lost 255 UNKNOWN N/A N/A -
14 lost 255 UNKNOWN N/A N/A -
Table 2 Command output
Field |
Description |
Clock module detail information |
Displaying detailed information about the clock monitoring module. |
Clock module state |
Current state of the clock monitoring module. |
Lock mode |
Phase lock state of the clock monitoring module: · freerun. · fastlock. · lock. · hold. · invalid lock mode. |
SSM participate in control |
Displays whether SSM is activated. |
Reference |
Number of the reference source. |
State |
State of the reference source. |
Priority |
Priority of the reference source. |
SSM-level |
SSM of the reference source. |
Forcessm |
Displays whether the SSM level of the reference source is activated or not. |
Sa-bit |
Bits for transmitting SSM level information for the Bits clock source. |
Lpu port |
Input port of the line clock source. N/A indicates this function is not supported. A hyphen (-) indicates this port is not configured. |
display clock lpuport
Syntax
display clock lpuport [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock lpuport to display the input port of the line clock source.
Examples
# Display the input port of the line clock source.
<Sysname> display clock lpuport
The LPU port(s) which output(s) clock reference:
Reference Lpu port(portname)
4 Pos3/1/1
Table 3 Command output
Field |
Description |
The LPU port(s) which output(s) clock reference: |
Input port for the line clock source. |
Reference |
Serial number of the reference source. |
Lpu port (portname) |
Input port of the line clock source (port name). |
display clock phase-lock-state
Syntax
display clock phase-lock-state [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock phase-lock-state to display the phase lock state of the clock monitoring module.
Examples
# Display the phase lock state of the clock monitoring module.
<Sysname> display clock phase-lock-state
Phase lock state: hold
Osc state: normal, finished warm-up
Table 4 Command output
Field |
Description |
Phase lock state: |
Phase lock state of the clock monitoring module, including free-run, lock, fast-lock, and hold. |
display clock priority
Syntax
display clock priority [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock priority to display the priority of all reference sources.
Examples
# Display the priority of all reference sources.
<Sysname> display clock priority
Reference Priority
1 255
2 4
3 255
4 255
5 255
6 255
7 255
8 255
9 255
10 255
11 255
12 255
13 255
14 255
display clock self-test-result
Syntax
display clock self-test-result [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock self-test-result to display the self-test result of the clock monitoring module.
Examples
# Display the self-test result of the clock monitoring module.
<Sysname> display clock self-test-result
Clock module work mode: normal
Detail test report:
SRAM : normal
Output 38.88MHz signal: normal
PLL TRU050 : normal
PLL 88915 : normal
OSC : normal
I2C bus : normal
EPLD : normal
HDLC : normal
E1a : normal
E1b : normal
Table 5 Command output
Field |
Description |
Clock module work mode: |
Work mode of the clock monitoring module. |
Detail test report: |
Detailed test report. |
SRAM : |
SRAM state. |
Output 38.88MHz signal: |
Displays whether 38.88 MHz signal can be output. |
EPLD : |
EPLD state. |
HDLC : |
HDLC state. |
E1a : |
E1a state. |
E1b : |
E1b state. |
display clock source
Syntax
display clock source [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock source to display the status of all reference sources.
Examples
# Display the status of all reference sources.
<Sysname> display clock source
No primary reference is traced
Reference State Lpu port(portname)
1 lost N/A
2 lost N/A
3 lost -
4 lost -
5 lost -
6 lost -
7 lost -
8 lost -
9 lost -
10 lost -
11 lost -
12 lost -
13 lost -
14 lost -
Table 6 Command output
Field |
Description |
No primary reference is traced |
No primary reference is traced, meaning no primary reference is manually specified. |
Reference |
Serial number of the clock source. |
State |
State of the reference source. |
Lpu port (portname) |
Input port of the line clock corresponding with the reference source (port name). |
display clock ssm-level
Syntax
display clock ssm-level [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock ssm-level to display the SSM level of all reference sources.
Related commands: clock ssm.
Examples
# Display the SSM level of all reference sources.
<Sysname> display clock ssm-level
Reference SSM level
1 LNC
2 UNKNOWN
3 UNKNOWN
4 LNC
5 UNKNOWN
6 UNKNOWN
7 UNKNOWN
8 UNKNOWN
9 UNKNOWN
10 UNKNOWN
11 UNKNOWN
12 UNKNOWN
13 UNKNOWN
14 UNKNOWN
The Reference field indicates the serial number of the reference source, and the SSM level field indicates the SSM level of the reference source.
display clock ssm-output
Syntax
display clock ssm-output [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock ssm-output to display the SSM level of the output clock signal.
Examples
# Display the SSM level of the output clock signal.
<Sysname> display clock ssm-output
SSM output level is LNC.
display clock version
Syntax
display clock version [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock version to display the version of the clock monitoring module.
Examples
# Display the version of the clock monitoring module.
<Sysname> display clock version
Clock module version
Software version: v010
Hardware version: Rev.A
CPLD version: v009
Release date: 2006-02-26
Table 7 Command output
Field |
Description |
Clock module version |
Version of the clock monitoring module. |
Software version |
Software version of the clock monitoring module. |
Hardware version |
Hardware version of the clock monitoring module. |
CPLD version |
CPLD version of the clock monitoring module. |
Release date |
Release version of the clock monitoring module. |
display clock work-mode
Syntax
display clock work-mode [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display clock work-mode to display the working mode of the clock monitoring module.
Examples
# Display the working mode of the clock monitoring module.
<Sysname> display clock work-mode
Clock working in auto mode.
The output shows that the clock monitoring module is operating in auto mode.