connection-clear
To clear connection statistics for a switch, use the connection-clear command.
Syntax connection-clear
Specify any of the following options: |
|
time date/time: yyyy-mm-ddThh:mm:ss |
Clear statistics from a specific timestamp period. |
start-time date/time: yyyy-mm-ddThh:mm:ss |
Clear statistics from a specific start time, and date. |
end-time date/time: yyyy-mm-ddThh:mm:ss |
Clear statistic from a specific end time, and date. |
duration: #d#h#m#s |
Clear statistics for a specific duration. |
interval duration: #d#h#m#s |
Clear statistics for a specific interval duration. |
since-start |
Clear statistics from the start of collection. |
older-than duration: #d#h#m#s |
Clear statistics older than a specified date, and time. |
within-last duration: #d#h#m#s |
Clear statistics within a specified duration time. |
count count-number |
Clear the count number. |
vlan vlan_id |
Specifies the VLAN identifier. |
egress-vnet vnet-name |
Specifies the egress vNET. |
egress-bd bridge-domain name |
Specifies the bridge domain of the connection information. |
egress-vlan vlan_id |
Specifies the egress VLAN of the connection. |
vxlan vxlan-id |
Specifies the VXLAN identifier. |
vnet vnet-string |
Specifies the name of the virtual network (vNET). |
src-switch-port |
Specifies the physical port number on the switch where a client requested a connection. |
dst-switch-port |
Specifies the physical port number on the switch where a server responded to a connection. |
ether_type |
Specifies the EtherType value or keyword of the connection. The keywords can be arp, dot1X, fcoe, fcoe-init, ipv4, ipv6, jumbo, lldp, macsec, mpls-multi, mpls-uni, ptp, qing, rarp, vlan, and wake. |
src-mac-addr |
Specifies the MAC address of the client requesting a connection. |
dst-mac-addr |
Specifies the MAC address of the server responding to a connection. |
src-ip |
Specifies the IP address of the client requesting a connection. |
dst-ip |
Specifies the IP address of the server responding to a connection. |
src-port |
Specifies the type of port used by the client requesting a connection. This includes HDFS, Hive, Ganglia, Cassandra, Nutanix, and other server types. |
dst-port |
Specifies the type of port used by the server responding to a connection. This includes HDFS, Hive, Ganglia, Cassandra, Nutanix, and other server types. |
dscp |
Specifies the 6-bit Differentiated Services Code Point (DSCP). |
protocol tcp|udp|icmp|igmp|ip |
Specifies the protocol. |
tunnel-vnet vnet-name |
Specifies the tunnel vNET name. |
tunnel-bd bridge-domain name |
Specifies the tunnel bridge domain. |
tunnel-vlan vlan-id |
Specifies the VLAN ID. |
tunnel-src-mac mac-address |
Specifies the tunnel source MAC address. |
tunnel-dst-mac mac-address |
Specifies the tunnel destination MAC address. |
tunnel-src-ip ip-address |
Specifies the tunnel source IP address |
tunnel-dst-ip ip-address |
Specifies the tunnel destination IP address. |
tunnel-src-port |
Specifies the type of port used by the client requesting a connection. This includes HDFS, Hive, Ganglia, Cassandra, Nutanix, and other server types. |
tunnel-dst-port |
Specifies the type of port used by the client requesting a connection. This includes HDFS, Hive, Ganglia, Cassandra, Nutanix, and other server types. |
tunnel-proto tcp|udp|icmp|igmp|ip|icmpv6 |
Specifies the protocol assigned to the tunnel. |
cur-state syn|est|fin|rst |
Specifies the current state of the connection. |
dur high resolution time:#ns |
Specifies the duration for high resolution time in nano seconds. |
latency high resolution time:#ns |
Specifies the latency for high resolution time in nano seconds |
latency(us) |
Specifies the network transmit time (latency) experienced by the connection in microseconds. |
obytes |
Specifies the number of bytes sent from the client side of the connection. |
ibytes |
Specifies the number of bytes received by the client side of the connection. |
total-bytes |
Specifies the total number of bytes for the connection. |
update-id high resolution time: #ns |
Specifies the last update to the connection in elapse time (nanoseconds). |
started-time-ns high resolution time: #ns |
Specifies the started time of the connection in nanoseconds. |
started-time date/time: yyyy-mm-ddThh:mm:ss |
Specifies the time, and date of the initial connection. |
ended-time date/time: yyyy-mm-ddThh:mm:ss |
Specifies the time, and date when the connection ended. |
transition-state any|started-and-ended |started|ended|ongoing |
Specifies the transition state of the connection. |
Defaults None
Access CLI
History
Version 1.2 |
Command introduced. |
Version 1.2.2 |
Command changed to connection-clear. bytes-sent, and bytes-recvd changed to obytes, and ibytes. older-than, and within-last parameters added. |
Version 2.1 |
The parameters client, and server changed to src and dst. The parameter service, is deprecated. The parameters started-time, ended-time, and transition-state added. |
Version 2.2 |
The parameter no-since-start deprecated. |
Version 2.2.5 |
The parameters HDFS- added. |
Version 2.4 |
The parameter egress-vlan added. |
Version 2.4.1 |
The parameter egress-vnet added. |
Version 2.6.2 |
The parameters tunnel-* added. |
Version 5.1.1 |
The parameters egress-bd, tunnel-bd, update-id high resolution time, and started-time-ns high resolution time added. |
Usage Clears statistical information about the current connections on the switch.
Examples To clear the history of connection statistics on switch1, use the following command:
CLI (network-admin@switch) > connection-clear