F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices System Management and Maintenance Command Reference-6PW100

122
NTP configuration commands
display ntp-service sessions
Use display ntp-service sessions to display information about all NTP sessions.
Syntax
display ntp-service sessions [ verbose ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
verbose: Displays detailed information about all NTP sessions. If you do not specify this keyword, only
brief information about the NTP sessions is displayed.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Getting Started 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.
Examples
# Display brief information about all NTP sessions.
<Sysname> display ntp-service sessions
source reference stra reach poll now offset delay disper
********************************************************************************
[12345]127.127.1.0 127.127.1.0 3 1 64 33 0.0 0.0 0.0
note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured
Total associations : 1
Table 24 Command output
Field Descri
p
tion
source IP address of the clock source.
reference
Reference clock ID of the clock source:
If the reference clock is the local clock, the value of this field is related to the
value of the stra field:
{ When the value of the stra field is 0 or 1, this field will be LOCL.
{ When the stra field has another value, this field will be the IP address of
the local clock.
If the reference clock is the clock of another device on the network, the value
of this field will be the IP address of that device.