port-stats-show
This command displays packet count statistics for switch data ports.
Syntax port-stats-show
Specify any of the following options: |
|
time date/time: yyyy-mm-ddThh:mm:ss |
Specifies a time for the packet count statistics using the timestamp format YYYY-MM-DDTHH:MM:SS, where: • YYYY specifies the 4 digit calendar year; • MM specifies the 2 digit month of the year; • DD specifies the 2 digit day of the month; • HH specifies the 2 digit time of the day (24H notation); • MM specifies the 2 digit minute of the hour; SS specifies the 2 digit second of the minute |
start-time start-time |
Specifies a start time for the packet count statistics using the timestamp format YYYY-MM-DDTHH:MM:SS, where: • YYYY specifies the 4 digit calendar year; • MM specifies the 2 digit month of the year; • DD specifies the 2 digit day of the month; • HH specifies the 2 digit time of the day (24H notation); • MM specifies the 2 digit minute of the hour; • SS specifies the 2 digit second of the minute. |
end-time end-time |
Specifies an end time for the packet count statistics using the timestamp format YYYY-MM-DDTHH:MM:SS, where: • YYYY specifies the 4 digit calendar year; • MM specifies the 2 digit month of the year; • DD specifies the 2 digit day of the month; • HH specifies the 2 digit time of the day (24H notation); • MM specifies the 2 digit minute of the hour; • SS specifies the 2 digit second of the minute. |
duration duration |
Specifies the duration in seconds. |
interval duration: #d#h#m#s |
Specifies the interval between statistics collection. |
since-start| |
Specifies if the statistics are collected from the start of collecting statistics. |
older-than duration: #d#h#m#s |
Specifies if the statistics are older than the duration in days, hours, minutes, and seconds. |
within-last duration: #d#h#m#s |
Specifies if the statistics are within the duration in days, hours, minutes, and seconds. |
port port-list |
Specifies one or more switch network data port numbers. The port number must be in the range of 1 to 64. Multiple ports can be specified as a comma-separated list of numbers or a range (-). |
description description |
Displays the port description. |
counter counter-number |
Displays the counter number. |
ibytes ibytes-number |
Displays the incoming number of bytes. |
ibits ibits-number |
Displays the number of bits. |
iUpkts iUpkts-number |
Displays the number of incoming unicast packets. |
iBpkts iBpkts-number |
Displays the number of incoming broadcast packets. |
iMpkts iMpkts-number |
Displays the number of incoming multicast packets. |
iPauseFs iPauseFs-number |
Displays the number of incoming pause frames. |
iCongDrops iCongDrops-number |
Displays the number of incoming packets dropped due to congestion. |
idiscards idiscards-number |
Displays the number of incoming packets discarded. |
ierrs ierrs-number |
Displays the number of incoming errors. |
obytes obytes-number |
Displays the number of outgoing bytes. |
oUpkts oUpkts-number |
Displays the number of outgoing unicast packets. |
oBpkts oBpkts-number |
Displays the number of outgoing broadcast packets. |
oMpkts oMpkts-number |
Displays the number of outgoing multicast packets. |
oPauseFs oPauseFs-number |
Displays the number of outgoing pause frames. |
oCongDrops oCongDrops-number |
DisplaysDisplays the number of outgoing packets dropped due to congestion. |
odiscards odiscards-number |
Displays the number of outgoing discarded packets. |
oerrs oerrs-number |
Displays the number of outgoing errors. |
mtu-errs mtu-errs-number |
Displays the number of MTU errors. |
HER-packets HER-pts-number |
Displays the number of Head End Replicated (HER) packets. |
HER-bytes HER-bytes-number |
Displays the number of Head End Replicated (HER) bytes. |
Defaults None.
Access CLI
History
Version 1.2 |
Command introduced. |
Version 2.2.3 |
The parameter, timestamp, removed. |
Version 2.4.1 |
The parameter, mtu-errs, added. |
Version 2.6.0 |
The parameters, HER-pkts and HER-bytes, added. |
Usage Switches are equipped with network data ports for host or inter-switch communication. This command shows the status of a specific network data port or all network data ports on the local switch. To see the output in bits, use the option format all.
Examples To display the packet count statistics for network data ports on the switch, use the following command:
CLI (network-admin@Spine-1) > port-stats-show format all layout vertical
switch: Spine-1
port: 10
counter: 0
timestamp: 09:24:21
ibytes: 66.6M
iUpkts: 451K
iBpkts: 173
iMpkts: 24
iPauseFs: 0
iCongDrops: 0
idiscards: 23
ierrs: 0
obytes: 1.37G
oUpkts: 1.19M
oBpkts: 2.23K
oMpkts: 10.5K
oPauseFs: 0
oCongDrops: 512
odiscards: 0
oerrs: 0
oPauseFs: 0
oCongDrops: 0
odiscards: 3
oerrs: 0