port-stats-clear

This command is used to clear statistics from a port.

Syntax   port-stats-clear port port-list

port port-list

Specify a list of ports to clear statistics.

Defaults   None

Access   CLI

History   Command introduced in Version 2.0.

Usage   Use this command to clear statistics from a list of ports

Examples  To clear statistics from ports 43-47, use the following command:

CLI network-admin@switch > port-stats-clear port 43-47

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.


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

port-stats-settings-modify

This command is used to modify collecting statistics from a port.

Syntax   port-stats-settings-modify

Specify one or more of the following options:

enable|disable

Specify if you want to enable or disable statistics collection.

duration: #d#h#m#s disk-space

Specify the duration of the interval between collecting statistics.

disk-space disk-space-number

Specify the amount of disk space to store the port statistics.

Defaults   None

Access   CLI

History   Command introduced in Version 2.0.

Usage   Use this command to clear statistics from a list of ports

Examples  To clear statistics from ports 43-47, use the following command:

CLI network-admin@switch > port-stats-settings-modify port 43-47

port-stats-settings-show

This command displays the settings for collecting statistics on a port.

Syntax   port-stats-settings-show

Defaults   None

Access   CLI

History   Command introduced in Version 2.1.

Usage   Use this command to display the settings for collecting statistics from ports

Examples  To display settings for port statistics collection, use the following command:

CLI (network-admin@Spine-1) > port-stats-settings-show

switch:     Spine-1

enable:     yes

interval:   1m

disk-space: 8G

port-stats-snmp-show

This command displays SNMP statistics for switch data ports.

Syntax   port-stats-show

Specify any of the following options:

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 (-).

port-clear-count port-clear-count-number 

Displays the port clear count.

port_clear_time high resolution time: #ns

Displays when the port was cleared.

port-clear-time duration: #d#h#m#s

Displays duration that the port was cleared.

all-ports

Displays all ports.

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   Command introduced in Version 3.1.0.

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 SNMP statistics for network data ports on the switch, use the following command:

CLI (network-admin@Spine-1) > port-stats-snmp-show format all layout vertical

switch:           dorado-ext-04

port:             9

port-clear-count: 0

port-clear-time:  27m57s

all-ports:        false

counter:          0

ibytes:           916

ibits:            7.33K

iUpkts:           0

iBpkts:           6

iMpkts:           6

iPauseFs:         0

CongDrops:       0

idiscards:        0

ierrs:            0

ibytes:           477K

obits:            3.91M

oUpkts:           0

oBpkts:           91

oMpkts:           4.87K

oPauseFs:         0

oCongDrops:       0

odiscards:        0

oerrs:            0

mtu-errs:         0

HER-pkts:         0

ER-bytes:        0