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|
no-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.

 

Formatting Options

format fields-to-display

Display output using a specific parameter. Use all to display all possible output.

parsable-delim character

Display output formatted for machine parsing using a specified delimiter.

sort-asc

Display output in ascending order.

sort-desc

Display output in descending order.

show dups

Display duplicate entries in the output.

layout vertical|horizontal

Format the output in a vertical or horizontal layout.

show-interval seconds-interval

Repeat the show command at a specified interval.

show-headers|
no-show-headers

Display column headers or not.

limit-output number

Limit the display output to a specific number of entries.

count-output

Display the number of entries in the output. This is useful with vRouter show commands.

unscaled

Display full values in the output instead of scaled approximate values.

raw-int-values

Display integer values instead of mapped values

sum-by

Aggregate output by specific parameters. If sum-by fields are specified, records that have the same value in sum-by fields are combined and displayed as one aggregate record. NOTE: This option is only available for show commands that collect statistics such as connection-stats-show.

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

See Also   

port-show

port-config-modify

port-config-show

port-phy-show

port-stats-clear

port-vlan-add

port-vlan-remove

port-vlan-show

port-xcvr-show