Showing and Clearing CPTP Statistics


You can view the CPTP statistics, including class 0s by using  the following command:


CLI (network-admin@switch) > cpu-class-stats-show


name

Specify the name of the CPU class to clear statistics.

cos cos-number

Specify the CoS value for the CPU class.

                                             

Or to clear them:


CLI (network-admin@switch) > cpu-class-stats-clear


name

Specify the name of the CPU class to clear statistics.

cos cos-number

Clear the CoS value for the CPU class.

hw-out-pkts hw-out-pkts-number

Clear the hardware transmitted packet count.

hw-drop-pkts hw-drop-pkts-number

Clear the number of hardware dropped packets.

sw-pkts sw-pkts-number

Clear the number of packets processed in software.

sw-drops-pkts sw-drops-pkts-number 

Clear the number of packets dropped in software because the queue is full.

hog-violations hog-violations-number

Clear the number of hog protection host violations and moved to separate queue.

hog-warnings hog-warnings-number

Clear the number of hog protection delegated bandwidth warnings.

hog-hosts-in hog-hosts-in-number

Clear the number of added hosts for hog protection.

hog-hosts-out hog-hosts-out-number

Clear the number of hosts removed from hog protection.

hog-max-hosts-drops hog-max-hosts-drops-number

Clear the number of dropped hosts with hog protection because the maximum number of hosts is  reached.

                       

A handy command to periodically check the CPU traffic statistics is the following:


CLI (network-admin@switch) > cpu-class-stats-show show-diff-interval 1


which refreshes the statistics every second on screen, and thus can be used to observe traffic spikes.


In case of an auto-quarantined traffic source, the violator’s information and related statistics can be displayed with the following commands:


CLI (network-admin@switch) > hog-violator-show


mac mac-address

Displays the hog violator MAC address.

vlan vlan-id

Displays the hog violator VLAN ID.

vxlan vxlan-id

Displays the hog violator VXLAN ID.

port port-number

Displays the hog violator ingress port.

cpu-class cpu-class-string

Displays the hog violator original class.

hog-cpu-class hog-cpu-class-string

Displays the hog violator hog queue CPU class.

created date/time: yyyy-mm-ddTHH:mm:ss

Displays the time and date when hog violator is created.

vflow vflow-string

Displays the redirect vFlow.

vflow2 vflow-string

Displays the redirect vFlow 2.

vflow3 vflow-string

Displays the redirect vFlow 3.


CLI (network-admin@switch) > hog-violator-stats-show


time date/time: yyyy-mm-ddTHH:mm:ss

Displays the time and date to start statistics collection.

start-time date/time: yyyy-mm-ddTHH:mm:ss

Displays the start time of the statistics collection.

end-time date/time: yyyy-mm-ddTHH:mm:ss

Displays the end time of the statistics collection.

duration duration: #d#h#m#s

Displays the duration of statistics collection.

interval duration: #d#h#m#s

Displays the interval between statistics collection.

since-start

Displays the statistics collection since the start time.

older-than duration: #d#h#m#s

Displays the statistics collection older than the time.

within-last duration: #d#h#m#s

Displays the statistics collection within a specified time period.

name vflow-name

Displays the name of the vFlow.

vnet vnet-name

Displays the VNET name of the vFlow.

id

Displays the ID assigned to the vFlow.

                                         

north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south