Cisco Nexus 1000V Quality of Service Configuration Guide, Release 4.2(1) SV1(4)
Configuring QoS Statistics
Downloads: This chapterpdf (PDF - 129.0KB) The complete bookPDF (PDF - 2.36MB) | Feedback

Monitoring QoS Statistics

Table Of Contents

Monitoring QoS Statistics

Information About QoS Statistics

Prerequisites for Monitoring QoS Statistics

Enabling QoS Statistics

Displaying QoS Statistics

Clearing QoS Statistics

Configuration Example for QoS Statistics

Additional References

Related Documents

Standards

MIBs

RFCs

Technical Assistance

Feature History for QoS Statistics


Monitoring QoS Statistics


This chapter describes how to enable, display, and clear QoS statistics from the Cisco Nexus 1000V.

This chapter includes the following sections:

Information About QoS Statistics

Prerequisites for Monitoring QoS Statistics

Enabling QoS Statistics

Displaying QoS Statistics

Clearing QoS Statistics

Configuration Example for QoS Statistics

Feature History for QoS Statistics

Information About QoS Statistics

Statistics are maintained for each policy, class action, and match criteria per interface. You can enable or disable the collection of statistics globally using the [no] qos statistics command. You can display statistics using the show policy-map interface command, and you can clear statistics based on an interface or policy map with the clear qos statistics command. Statistics are enabled by default and can be disabled globally.

Prerequisites for Monitoring QoS Statistics

Monitoring QoS statistics has the following prerequisites:

You are logged in to the CLI in EXEC mode.

Enabling QoS Statistics

You can enable or disable QoS statistics for all interfaces on the device.

BEFORE YOU BEGIN

Before beginning this procedure, you must know or do the following:

By default, QoS statistics are enabled.

SUMMARY STEPS

1. config t

2. qos statistics

3. show policy-map interface

4. copy running-config startup-config

DETAILED STEPS

 
Command
Purpose

Step 1 

config t

Example:

n1000v# config t

n1000v(config)#

Places you into global configuration mode.

Step 2 

qos statistics

Example:

n1000v(config)# qos statistics

Enables QoS statistics on all interfaces.

Step 3 

show policy-map interface

Example:

n1000v(config)# show policy-map interface

(Optional) Displays the status of the global statistics and the configured policy maps on all interfaces.

Step 4 

copy running-config startup-config

Example:

n1000v(config)# copy running-config startup-config

(Optional) Saves the running configuration persistently through reboots and restarts by copying it to the startup configuration.

Displaying QoS Statistics

You can display QoS statistics for an interface.

BEFORE YOU BEGIN

Before beginning this procedure, you must know or do the following:

You know the interface for which statistics are needed.


Note Statistics for individual interfaces are often the most useful.


SUMMARY STEPS

1. show policy-map [policy-map-name | interface [brief | ethernet interface_number |
output type qos | port-channel number | vethernet interface_number | input type qos] | type qos]

DETAILED STEPS

 
Command
Purpose

Step 1 

show policy-map [policy-map-name | interface [brief | ethernet interface_number |
output type qos | port-channel number | vethernet interface_number | input type qos] | type qos]

Example:

n1000v# show policy-map interface ethernet 2/1

Displays the specified statistics.

To achieve the best result when your system has a large number of policies, use this command with specific arguments, such as specifying a particular interface or port channel.

Use the interface keyword with the following keywords to display the service policy on an interface:

brief—displays a brief report of all policies attached to interfaces.

ethernet—displays statistics for an Ethernet interface.

input type qos—displays statistics for QoS input policies.

output type qos—displays statistics for QoS output policies.

port-channel—displays statistics for a port channel interface.

vethernet—displays the statistics for a vEthernet interface.

Use the type qos keyword to display the type of policy map.

Clearing QoS Statistics

You can clear QoS statistics.

SUMMARY STEPS

1. clear qos statistics [interface {ethernet interface_number | port-channel number | vethernet interface_number | output type qos | input type qos}]

DETAILED STEPS

 
Command
Purpose

Step 1 

clear qos statistics [interface {ethernet interface_number | port-channel number | vethernet interface_number | output type qos | input type qos}]

Example:

n1000v# clear qos statistics type qos

Clears the specified QoS statistics.

Configuration Example for QoS Statistics

This example shows how to display statistics for policy maps that are configured on interfaces:

n1000v(config)# show policy-map interface 
 
   
 
   
Global statistics status :   enabled
 
   
Vethernet3
 
   
  Service-policy (qos) input:   new-policy 
    policy statistics status:   enabled
 
   
    Class-map (qos):   class-default (match-any)
      59610700 packets 
      set prec 5
 
   
Vethernet5
 
   
  Service-policy (qos) output:   new-policer 
    policy statistics status:   enabled
 
   
    Class-map (qos):   new-class (match-all)
      344661013 packets 
      Match: precedence 5
      police cir 900 mbps bc 200 ms 
        conformed 505953339796 bytes, 899924196 bps action: transmit 
        violated 12285218014 bytes, 22283000 bps action: drop 
 
   

This example shows how to display statistics for a specific IPv4 access control list (ACL):

n1000v(config)# show ip access-lists protoacl
 
   
IP access list protoacl
        statistics per-entry 
        10 permit icmp 7.120.1.10/32 7.120.1.20/32 
        20 permit tcp 7.120.1.10/32 7.120.1.20/32 dscp af11 
        30 permit udp 7.120.1.10/32 7.120.1.20/32 precedence critical 
        50 permit ip 7.120.1.20/32 7.120.1.10/32 
        60 permit ip 7.120.1.20/32 7.120.1.10/32 dscp af11 
        70 permit ip 7.120.1.20/32 7.120.1.10/32 precedence critical 
 
   

This example shows how to display the status of the global statistics and the configured policy maps on a specific interface:

n1000v(config)# show policy-map interface vethernet 3
 
   
 
   
Global statistics status :   enabled
 
   
Vethernet3
 
   
  Service-policy (qos) input:   policy-protoacl
    policy statistics status:   enabled
 
   
    Class-map (qos):   class-protoacl (match-any)
      132 packets 
      Match: access-group protoacl
        132 packets 
      set qos-group 100
 
   

Additional References

For additional information related to implementing system-level HA features, see the following sections:

Related Documents

Standards

MIBs

RFCs

Technical Assistance

Related Documents

Related Topic
Document Title

QoS Classification

"Configuring QoS Classification" section

QoS Policies and Marking

"Configuring QoS Marking Policies" section

QoS Overview

"Overview" section

QoS Policing

"Configuring QoS Policing" section

Configuring ACLs

Cisco Nexus 1000V Security Configuration Guide, Release 4.2(1)SV1(4)

Cisco Nexus 1000V commands

Cisco Nexus 1000V Command Reference, Release 4.2(1)SV1(4)


Standards

Standards
Title

No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.


MIBs

MIBs
MIBs Link

CISCO-PROCESS-MIB

To locate and download MIBs, go to the following URL:

http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml


RFCs

RFCs
Title

No RFCs are supported by this feature


Technical Assistance

Description
Link

Technical Assistance Center (TAC) home page, containing 30,000 pages of searchable technical content, including links to products, technologies, solutions, technical tips, and tools. Registered Cisco.com users can log in from this page to access even more content.

http://www.cisco.com/cisco/web/support/index.html


Feature History for QoS Statistics

This section provides the QoS statistics release history.

Feature Name
Releases
Feature Information

QoS Statistics

4.0

This feature was introduced.