 
		   
		   Displaying and Configuring Port Queue Statistics
You can view the port queue statistics by using the command port-cos-stats-show. This command displays the number of bits of transmitted and dropped packets on a per queue basis.
CLI (network-admin@switch) > port-cos-stats-show
| port-cos-stats-show | Display per port CoS queue statistics. | 
| time date/time: yyyy-mm-ddThh:mm:ss | Time to start statistics collection. | 
| start-time date/time: yyyy-mm-ddThh:mm:ss | Start time for statistics collection. | 
| end-time date/time: yyyy-mm-ddThh:mm:ss | End time for statistics collection. | 
| duration: #d#h#m#s | Duration of statistics collection. | 
| interval duration: #d#h#m#s | Interval between statistics collection. | 
| since-start | Displays statistics from the start of collection. | 
| older-than duration: #d#h#m#s | Displays statistics older than a specified duration. | 
| within-last duration: #d#h#m#s | Displays statistics within the last specified duration. | 
For example:
CLI (network-admin@switch) > port-cos-stats-show layout vertical
switch: switch
time: 21:36:59
port: 21
cos0-obits: 0
cos0-dropbits: 0
cos1-obits: 0
cos1-dropbits: 0
cos2-obits: 0
cos2-dropbits: 0
cos3-obits: 0
cos3-dropbits: 0
cos4-obits: 0
cos4-dropbits: 0
cos5-obits: 0
cos5-dropbits: 0
cos6-obits: 0
cos6-dropbits: 0
cos7-obits: 0
cos7-dropbits: 0
To modify the port queue statistics collection settings, use the command:
CLI (network-admin@switch) > port-cos-stats-settings-modify
| port-cos-stats-settings-modify | Modify port CoS statistics collection settings. | 
| enable|disable | Specify if you want to enable or disable statistics collection. | 
| interval duration: #d#h#m#s | Specify the interval to collect statistics. | 
| disk-space disk-space-number | Specify the amount of memory allocated for statistics (including rotated log files). The default value is 50MB. | 
For example:
CLI (network-admin@switch) > port-cos-stats-settings-modify enable
To view the port CoS statistics collection settings, use the command:
CLI (network-admin@switch) > port-cos-stats-settings-show
switch: Spine-1
enable: yes
interval: 30m
disk-space: 50M
You can clear port queue statistics by using the command port-cos-stats-clear.
