Displaying and
Debugging NTP
Typical NTP
Configuration
Examples
Configure NTP Server
Setting Maximum Local Sessions
This configuration task is to set the maximum local sessions.
Perform the following configurations in System View.
Table 575 Set the Maximum Local Sessions
Operation
Set the maximum local sessions
Resume the maximum number of
local sessions
specifies the maximum number of local sessions, ranges from 0 to 100, and
number
defaults to 100.
After completing the above configurations, you can use the
show how NTP runs and verify the configurations according to the outputs.
In User View, you can use the
Table 576 NTP Display and Debugging
Operation
Display the status of NTP service
Display the status of sessions maintained by NTP
service
Display the brief information about every NTP time
server on the way from the local equipment to the
reference clock source.
Enable NTP debugging
This section contains examples of typical NTP configurations.
Network Requirements
On Switch1, set the local clock as the NTP master clock at stratum 2. On Switch 2,
configure Switch 1 as the time server in server mode and set the local equipment as in
client mode. (Note that Switch 1 must support setting local clock as the NTP master
clock.)
Typical NTP Configuration Examples 499
Command
ntp-service max-dynamic-sessions number
undo ntp-service max-dynamic-sessions
command to debug NTP.
debugging
Command
display ntp-service status
display ntp-service sessions [
verbose ]
display ntp-service trace
debugging ntp-service
command to
display