reset ntp-service statistics

Function

The reset ntp-service statistics command deletes statistics about NTP packets, peers, or clocks.

Format

reset ntp-service statistics packet [ ipv6 ]

reset ntp-service statistics packet [ ipv6 ] interface { interface-name | interface-type interface-number | all }

reset ntp-service statistics packet peer [ [ ip-address [ vpn-instance vpn-instance-name ] ] | ipv6 [ ipv6-address [ vpn-instance vpn-instance-name ] ] ]

Parameters

Parameter Description Value
ipv6 ipv6-address

Indicates the IPv6 address of a peer.

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

packet

Packet statistics.

-

interface interface-type

Resets statistics about NTP packets on a specified interface.

-

interface interface-number

Resets statistics about NTP packets on a specified interface.

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

interface interface-name

Resets statistics about NTP packets on a specified interface.

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

all

Reset all statistics.

-

peer

Peer packet statistics.

-

ip-address

Specifies the IP address of a peer.

The value is an IPv4 address in dotted decimal notation.

vpn-instance vpn-instance-name

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

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ntp execute

Usage Guidelines

This command helps you repeatedly delete NTP statistics during debugging.

Once deleted, statistics cannot be restored. Therefore, exercise caution when deleting statistics.

In VS mode, this command is supported only by the admin VS.

Example

# Delete statistics about NTP packets.
<HUAWEI> reset ntp-service statistics packet
# Delete statistics about NTP peers.
<HUAWEI> reset ntp-service statistics packet peer
# Delete statistics about NTP interfaces.
<HUAWEI> reset ntp-service statistics packet interface all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic