- Table of Contents
-
- 12-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-Sampler Commands
- 09-Mirroring Commands
- 10-NetStream Commands
- 11-IPv6 NetStream Commands
- 12-Protocol Packet Statistics Commands
- 13-Information Center Commands
- 14-Flow Logging Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Clock Monitoring Commands | 126.73 KB |
Contents
Clock monitoring configuration commands
display clock phase-lock-state
display clock self-test-result
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 work in auto mode.
manual source source-number: Sets the clock monitoring module to work in manual mode, where source-number represents the primary clock source number in manual mode, in the range of 1 to 14.
Description
Use the clock command to set the work mode of the clock monitoring module, either auto mode or manual mode.
Use the undo clock work-mode command to restore the default.
By default, the work mode is auto.
Before configuring the work mode to manual, use the display clock source command to view the clock source state. Only clocks that work normally can be 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 check whether your configuration takes effect through the display clock device command and the logging information.
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 SSM levels manually configured by users.
off: Specifies to derive the SSM levels from the clock source, which means the user-configured SSM levels do not take effect.
source source-number: Number of clock source, in the range of 1 to 2.
Description
Use the clock forcessm command 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 the 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 the clock lpuport command to specify the input port of the line clock source.
Use the undo clock lpuport command 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.
|
NOTE: · For a POS interface card, if you set the port clock to work in slave mode, you must use this command to select the input port of the board clock source. · The clock of the input port of the line clock source must work in slave mode. For how to set the clock mode by using the clock command, see Interface Command Reference. |
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: Priority value, which is in the range of 1 to 14 or takes the value of 255.
source source-number: Number of clock source, in the range of 1 to 14.
Description
Use the clock priority command to set the reference source priority.
Use the undo clock priority command 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: Indicates that the bit position is sa4.
sa5: Indicates that the bit position is sa5.
sa6: Indicates that the bit position is sa6.
sa7: Indicates that the bit position is sa7.
sa8: Indicates that the bit position is sa8.
source source-number: Number of Bits clock source, in the range of 1 to 2.
Description
Use the clock sa-bit command to set the bit used to transmit Bits clock source information.
Use the undo clock sa-bit command to restore the default.
By default, sa4 is used to carry the SSM information.
Examples
# Set the bit used to transmit 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: Number of reference source, in the range of 1 to 14.
Description
Use the clock ssm command to set the SSM levels of the reference sources.
Use the undo clock ssm command 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 forcesssm 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. In this case, 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 to activate SSM level.
off: Specifies to deactivate SSM level.
Description
Use the clock ssmcontrol command to activate or deactivate SSM level.
Use the undo clock ssmcontrol command to restore the default.
By default, SSM level is deactivated.
When SSM level is activated, the clock source is determined by the SSM level in reference source automatic selection.
When 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 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 the display clock config command to display the current configurations of the clock monitoring module.
Examples
# View 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 Output description
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 |
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 the SSM level of the Bits clock source |
Lpu port |
Input port of the line clock source (N/A indicates this function is not supported and semicolon (;) 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 the display clock device command to view detailed information for the clock monitoring module.
Examples
# View detailed information for the clock monitoring module.
<Sysname> display clock device
Clock module detail information:
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 Output description
Field |
Description |
Clock module detail information |
Displays detailed information about the clock monitoring module |
Clock module state |
Current state of the clock monitoring module |
SRAM state |
State of SRAM |
EPLD state |
State of EPLD |
E1 A state |
State of E1 A |
E1 B state |
State of E1 B |
Reference state |
Reference state |
Work mode |
Work mode |
Traced reference |
Traced reference |
Lock mode |
Lock mode |
SSM output level |
SSM output level |
SSM participate in control |
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 |
Whether the SSM level of the reference source is activated or not |
Sa-bit |
Bits used to transmit the SSM level of the Bits clock source |
Lpu port |
Input port of the line clock source |
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 the display clock lpuport command to view the input port of the line clock source.
Examples
# View 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 Output description
Field |
Description |
The LPU port(s) which output(s) clock reference: |
Input port information of 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 the display clock phase-lock-state command to view the phase lock state of the clock monitoring module.
Examples
# View the phase lock state of the clock monitoring module.
<Sysname> display clock phase-lock-state
Phase lock state: hold
Table 4 Output description
Field |
Description |
Phase lock state: |
The 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 the display clock priority command to view the priority of all reference sources.
Examples
# View 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 the display clock self-test-result command to view the self-test result of the clock monitoring module.
Examples
# View 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
EPLD : normal
E1a : normal
E1b : normal
Table 5 Output description
Field |
Description |
Clock module work mode: |
Work mode of the clock monitoring module |
Detail test report: |
Detailed test report |
SRAM : |
SRAM state |
EPLD : |
EPLD 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 the display clock source command to view the status of all reference sources.
Examples
# View 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 Output description
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 the display clock ssm-level command to view the SSM level of all reference sources.
Related commands: clock ssm.
Examples
#View 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
In the output information, 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 the display clock ssm-output command to view the SSM level of the output clock signal.
Examples
# View 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 the display clock version command to view clock monitoring module version.
Examples
# View clock monitoring module version.
<Sysname> display clock version
Clock module version
Software version: v103
Hardware version: Rev.A
CPLD version: v001
Release date: 2007-08-15
Table 7 Output description
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 the display clock work-mode command to view the working mode of the clock monitoring module.
Examples
# View 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 works in auto mode.