Creating a Smartport Macro
Cisco Networking: Static ARP Entry Managment
Cisco Network Security Management Areas

Viewing Ports Using Your Smartport Macro

After you have applied your Smartport macro to a Cisco network interface, you now may be curious to find out which ports are using the new macro. For the purposes of this example, your macro is named Awesome_Macro and you have applied it to the FastEthernet 0/4 interface. So to verify the installation, use the following command, which lists exactly what macro(s) have been applied to which ports:

Switch1> enable
Switch1# configure terminal 
Switch1#show parser macro description
Global Macro(s): cisco-global
Interface    Macro Description(s)
--------------------------------------------------------------
Fa0/4        Awesome_Macro
Fa0/7        cisco-switch
Fa0/12       cisco-router
--------------------------------------------------------------

In reverse, you can use the show command to find out which macros are applied to a specific port, as illustrated here:

Switch1> enable
Switch1# configure terminal 
Switch1#show parser macro description interface FastEthernet 0/4
Global Macro(s): cisco-global
Interface    Macro Description(s)
--------------------------------------------------------------
Fa0/4        Awesome_Macro
--------------------------------------------------------------

Now that you know that Awesome_Macro is applied to interface FastEthernet 0/4, you can review the running-config and see exactly what has been applied. Notice that in addition to the actual macro commands, one additional line appears in the interface configuration: the macro description line. This additional line names the macro that has been applied to the port.

Switch1> enable
Switch1# configure terminal 
Switch1#show running-config interface FastEthernet 0/4
Building configuration...
Current configuration : 326 bytes
!
interface FastEthernet0/4
 switchport access vlan 5
 switchport mode access
 macro description Awesome_Macro
 spanning-tree portfast
 spanning-tree bpduguard enable
end
blog comments powered by Disqus
Cisco Networking: Show Version Command on a Router
Cisco Unified Wireless Networks Architecture (CUWN)
Sending Data over the Airwaves
Network Basics: TCP/IP and OSI Network Model Comparisons
Internet Group Management Protocol (IGMP) Basics
Advertisement

Inside Dummies.com