The following commands can be used to monitor application visibility on the switch and access ports.
Table 8: Monitoring Application Visibility Commands on the Switch
PurposeCommand
Displays the statistics gathered by the NBAR Protocol
Discovery feature.
• (Optional) Enter keywords and arguments to fine-tune
the statistics displayed. For more information on each
of the keywords, refer to the show ip nbar
protocol-discoverycommand in Cisco IOS Quality
of Service Solutions Command Reference.
show ip nbar protocol-discovery [interface
interface-type interface-number]
[stats{byte-count | bit-rate | packet-count
| max-bit-rate}] [protocol protocol-name
| top-n number]
Displays information about policy map applied to the
interface.
show policy-map interface interface-type
interface-number
Displays statistics about all flows on the specified switch.show platform software fed switch switch id
wdavc flows
Examples: Application Visibility and Control Configuration
This example shows how to create class maps with apply match protocol filters for application name:
Device# configure terminal
Device(config)# class-map match-any NBAR-VOICE
Device(config-cmap)# match protocol ms-lync-audio
Device(config-cmap)#end
This example shows how to create policy maps and define existing class maps for egress QoS:
Device # configure terminal
Device(config)# policy-map test-avc-up
Device(config-pmap)# class cat-browsing
Device(config-pmap-c)# police 150000
Device(config-pmap-c)# set dscp 12
Device(config-pmap-c)#end
This example shows how to create policy maps and define existing class maps for ingress QoS:
Device# configure terminal
Device(config)# policy-map test-avc-down
Device(config-pmap)# class cat-browsing
Device(config-pmap-c)# police 200000
Device(config-pmap-c)# set dscp 10
Device(config-pmap-c)#end
This example shows how to apply policy maps to a switch port:
Device# configure terminal
Device(config)# interface GigabitEthernet 1/0/1
Device(config-if)# switchport mode access
Device(config-if)# switchport access vlan 20
Device(config-if)# service-policy input POLICING_IN
Device(config-if)#end
This example shows how to create class maps based on NBAR attributes.
System Management Configuration Guide, Cisco IOS XE Amsterdam 17.2.x (Catalyst 9500 Switches)
150
Configuring Application Visibility and Control in a Wired Network
Examples: Application Visibility and Control Configuration