display ntp-service statistics packet

Function

The display ntp-service statistics packet command displays statistics about global NTP packets.

Format

display ntp-service statistics packet [ ipv6 ]

display ntp-service statistics packet [ ipv6 ] interface { ifname | interface_type interface_num | all }

display ntp-service statistics packet peer [ [ ipv4Addr [ vpn-instance vpnName ] ] | ipv6 [ ipv6Addr [ vpn-instance vpnName ] ] ]

Parameters

Parameter Description Value
ipv6 ipv6Addr

Displays NTP packet statistics on a specified IPv6 peer.

The address is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

interface ifname

Interface name.

-

interface interface_type

Interface type.

-

interface interface_num

Interface number.

-

all

Displays the packet statistics on all interfaces.

-

peer

Displays packet statistics on IPv4 peers.

-

ipv4Addr

Displays NTP packet statistics on a specified IPv4 peer.

The value is an IPv4 address in dotted decimal notation.

vpn-instance vpnName

Specifies the name of a VPN instance associated with the NTP peer.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
ntp read

Usage Guidelines

This command provides the following information, which can be used for debugging NTP:

  • Number of NTP packets sent by the peer
  • Number of NTP packets sent to the peer
  • Number of NTP packets processed
  • Number of NTP packets dropped

Example

The actual command output varies according to the device. The command output here is only an example.

# Display statistics about global NTP packets.
<HUAWEI> display ntp-service statistics packet
 NTP IPv4 Packet Statistical Information
 --------------------------------------------------
 Sent                                  :          100
    Send failures                      :          10
 Received                              :          1000
    Processed                          :          800
    Dropped                            :          200
       Validity test failures          :          50
          Authentication failures      :          20
       Invalid packets                 :          50
       Access denied                   :          50
       Rate-limited                    :          0
       Processing delay                :          30
       Interface disabled              :          0
       Max dynamic association reached :          0
       Server disabled                 :          0
       Others                          :          0
Last 2 packets drop reasons:
Table 1 Description of the display ntp-service statistics packet command output
Item Description
NTP IPv4 Packet Statistical Information

Statistics about NTP IPv4 packets.

Sent

Number of packets sent.

Send failures

Number of times packet sending failed.

Received

Number of packets received.

Processed

Number of packets processed.

Dropped

Number of packets dropped.

Validity test failures

Number of packets dropped due to NTP validity test failures.

Authentication failures

Number of packets dropped due to authentication failures.

Invalid packets

Number of packets dropped due to invalid packets.

Access denied

Number of packets dropped due to denial of access.

Rate-limited

Number of packets dropped due to rate limit.

Processing delay

Number of packets dropped due to processing delay.

Interface disabled

Number of packets dropped as the interface is disabled.

Max dynamic association reached

Number of packets dropped as the maximum number of dynamic associations is reached.

Server disabled

Number of packets dropped as server disabled.

Others

Number of packets dropped due to other reasons.

Last 2 packets drop reasons

Reason for dropping the last n packets, where the maximum value of n can be 10.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >