Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

clear ancp statistics

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
clear ancp statistics
<ip-address ip-address>
<system-name mac-address>

Description

Clear current statistics accumulated by the ANCP agent for all ANCP neighbors or the specified neighbor.

Options

none

Clear all ANCP statistics.

ip-address ip-address

(Optional) Clear statistics for the ANCP neighbor specified by the IP address.

system-name mac-address

(Optional) Clear statistics for the ANCP neighbor specified by the MAC address.

Required Privilege Level

clear

Output Fields

When you enter this command, you are provided no feedback on the status of your request. You can enter the show ancp neighbor command before and after clearing the ANCP neighbor statistics to verify the clear operation.

Sample Output

clear ancp statistics

content_copy zoom_out_map
user@host> clear ancp statistics

show ancp neighbor

The following sample output displays statistics for an ANCP neighbor before and after the clear ancp statistics command was issued.

content_copy zoom_out_map
user@host> show ancp neighbor ip-address 192.168.10.1 detail
Neighbor Information
      IP Address              : 192.168.10.1
      System Name             : 00:00:5E:00:53:02
          Up Time                             : 38
          TCP Port                            : 64959
          State                               : Established
          Subscriber Count                    : 7
          Capabilities                        : Topology Discovery
          System Instance                     : 11
          Peer Instance                       : 1
          Adjacency Timer (in 100ms)          : 50
          Peer Adjacency Timer (in 100ms)     : 100
          Partition Type                      : 0
          Partition Flag                      : 1
          Partition Identifier                : 0
          Dead Timer                          : 22
          Received Syn Count                  : 47
          Received Synack Count               : 48
          Received Rstack Count               : 2
          Received Ack Count                  : 12
          Received Port Up Count              : 8
          Received Port Down Count            : 2
          Received Other Count                : 0
          Sent Syn Count                      : 48
          Sent Synack Count                   : 47
          Sent Rstack Count                   : 1
          Sent Ack Count                      : 12
          Max Discovery Limit Exceed Count    : 0
      
user@host> clear ancp statistics ip-address 192.168.10.1 

user@host> show ancp neighbor ip-address 192.168.10.1 detail
Neighbor Information
      IP Address              : 192.168.10.1
      System Name             : 00:00:5E:00:53:02
          Up Time                             : 38
          TCP Port                            : 64959
          State                               : Established
          Subscriber Count                    : 7
          Capabilities                        : Topology Discovery
          System Instance                     : 11
          Peer Instance                       : 1
          Adjacency Timer (in 100ms)          : 50
          Peer Adjacency Timer (in 100ms)     : 100
          Partition Type                      : 0
          Partition Flag                      : 1
          Partition Identifier                : 0
          Dead Timer                          : 22
          Received Syn Count                  : 0
          Received Synack Count               : 0
          Received Rstack Count               : 0
          Received Ack Count                  : 0
          Received Port Up Count              : 0
          Received Port Down Count            : 0
          Received Other Count                : 0
          Sent Syn Count                      : 0
          Sent Synack Count                   : 0
          Sent Rstack Count                   : 0
          Sent Ack Count                      : 0
          Max Discovery Limit Exceed Count    : 0
      

Release Information

Command introduced in Junos OS Release 13.3.

footer-navigation