show statistics
Syntax
show statistics policy POLICY-NAME-STR port PORT-NUM
Description
Displays the statistics for a configured policy applied at a port.
Command context
config
Parameters
POLICY-NAME-STR
To view the statistics, specify the policy name.
port PORT-NUM
To view the port statistics, specify either inward or outward bound port number. Currently, traffic policing is supported only for inward direction.
Usage
show statistics policy qos-policy-1 port 1 in help
- Total
Total number of packets or bytes that matches with the class statement.
- Total - Exceeded CIR
Number of packets or bytes that are not metered (which are in the green band as per RFC 2698).
- Exceeded CIR - Exceeded PIR
Number of packets or bytes that are remarked due to violation of CIR (which are in the yellow band as per RFC 2698).
- Exceeded PIR
Number of packets or bytes that are dropped or remarked due to violation of PIR (which are in the red band as per RFC 2698).
Example
switch(config)# interface 1 service-policy qos-policy-1 in Apply the policy to inbound packets on the port. out Apply the policy to outbound packets on the port. switch(config)# interface 1 service-policy qos-policy-1 out The QoS policy with the action 'meter' cannot be applied to a port in the outbound direction. switch(config)# interface 1 service-policy qos-policy-1 in switch(config)# show statistics policy qos-policy-1 port The port to show statistics for. vlan The VLAN to show statistics for. switch(config)# show statistics policy qos-policy-1 port [ethernet] PORT-NUM Enter a port name. switch(config)# show statistics policy qos-policy-1 port 1 switch(config)# show statistics policy qos-policy-1 port 1 in Hit Counts for Policy qos-policy-1 in the last 39 seconds Total 10 class ipv4 "class1" action meter commit-rate kbps 1000 dscp-remark cs7 peak-rate kbps 2000 drop ( 713 ) 10 match ip 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 Exceeded PIR | 0 | 0 switch(config)# show statistics policy qos-policy-1 switch(config)# interface 1 service-policy qos-policy-1 in help Usage: [no] interface [ethernet] <PORT-LIST> [...] [no] interface loopback <Num> [...] [no] interface tunnel <Num> [...] Description: Enter the Interface Configuration Level, or execute one command for that level. With no optional parameters specified, the "interface" command enters the Interface Configuration Context Level for execution of multiple configuration changes to the same interface. "interface ?" will show a list of all valid commands. switch(config)# interface 1 service-policy q switch(config)# interface 1 service-policy qos-policy-1 in help switch(config)# show statistics policy qos-policy-1 port 1 in help Usage: show statistics policy <POLICY-ID> port <PORT> {in|out} show statistics policy <POLICY-ID> vlan <VLAN-ID> {in|out}