connection-show
To display connection statistics for a switch, use the connection-show command.
Syntax connection-show
start-time date/time: yyyy-mm-ddThh:mm:ss |
Specifies statistics from a specific start time and date. |
end-time date/time: yyyy-mm-ddThh:mm:ss |
Specifies statistic from a specific end time and date. |
duration: #d#h#m#s |
Specifies statistics for a specific duration. |
interval duration: #d#h#m#s |
Specifies statistics for a specific interval duration. |
since-start |
Specifies statistics from the start of collection. This is another way to specify the start time for the connection output. |
older-than duration: #d#h#m#s |
Specifies statistics older than a specified date and time. This is another way to specify the end time for the connection output. |
within-last duration: #d#h#m#s |
Specifies statistics within a specified duration time. This is another way to specify the start time for the connection output. Also, only the closed connections are displayed. |
vlan vlan-id |
Specifies the VLAN identifier. |
egress-vnet vnet-name |
Specifies the egress VNET. |
egress-vlan vlan_id |
Specifies the egress VLAN of the connection. |
vnet vnet-name |
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 data on the source port. HDFS indicates ports connected to Hadoop systems. Also includes HDFS, Hive, Ganglia, Cassandra, Nutanix and other server types. |
dst-port |
Specifies the type of data on the destination port. This includes HDFS, Hive, Ganglia, Cassandra, Nutanix and other server types. |
dscp |
Specifies the 6-bit Differentiated Services Code Point (DSCP). |
tunnel-vnet vnet-name |
Specifies the tunnel VNET name. |
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. |
proto [tcp|udp|icmp|igmp|ip |
Specifies the protocol. |
cur-state syn|est|fin|rst |
Specifies the current state of the connection. syn — synchronized est — established fin — finished rst — reset |
dur high resolution time: #ns |
Specifies the duration of the connection. |
latency(us)high resolution time: #ns |
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. |
active |
Specifies whether the connection is currently active or inactive. |
age duration:#d#h#m#s |
Specifies the duration of the connection in days, hours, minutes and seconds. |
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 Each switch maintains a set of standard flow-based statistics that are “always-on”, meaning that they are continuously tracked and updated by the switch. This command displays the TCP connections transiting the local switch as identified through the SYN/FIN protocol handshake between the client and the server of the application.
Examples To show the connection statistics for vnet MyVNET, use the following command:
CLI network-admin@switch > connection-show vnet MyVNET layout vertical
switch: pleiades24
vlan: 51
vxlan: 0
vnet:
src-ip: 10.222.1.1
dst-ip: 10.222.1.2
client-switch-port: 8000
server-switch-port:
client-port:
server-port:
dscp:
proto:
service dur(s:
latency(us):
bytes-sent:
bytes-recv:
active: