clear ancp statistics
Syntax
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
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.
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.