Displaying Smartport Macros - Cisco WS-C3560-48PS-S Software Configuration Manual

Software configuration guide
Hide thumbs Also See for WS-C3560-48PS-S:
Table of Contents

Advertisement

Displaying SmartPort Macros

This example shows how to define the desktop-config macro for an access switch interface, apply the
macro to Gigabit Ethernet port 2, add a description to the interface, and verify the configuration.
Switch(config)# macro name desktop-config
# Put the switch in access mode
switchport mode access
# Allow port to move to forwarding state quickly
spanning-tree portfast
# BPDUs should not be sent into the network
spanning-tree bpduguard enable
# Restrict the port to one address -- that of desktop
switchport port-security maximum 1
# Put all data traffic in vlan 1
switchport access vlan 1
@
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# macro apply desktop-config
Switch(config-if)# macro description desktop-config
Switch(config-if)# end
Switch# show parser macro name desktop-config
Macro name : desktop-config
Macro type : customizable
macro description desktop-config
# Put the switch in access mode
switchport mode access
# Allow port to move to forwarding state quickly
spanning-tree portfast
# BPDUs should not be sent into the network
spanning-tree bpduguard enable
# Restrict the port to one address -- that of desktop
switchport port-security maximum 1
# Put all data traffic in vlan 1
switchport access vlan 1
Switch# show parser macro description
Interface
--------------------------------------------------------------
Gi0/2
--------------------------------------------------------------
Displaying SmartPort Macros
To display the SmartPort macros, use one or more of the privileged EXEC commands in
Table 11-1 Commands for Displaying SmartPort Macros
Command
show parser macro
show parser macro name macro-name
show parser macro brief
show parser macro description [interface
interface-id]
Catalyst 3560 Switch Software Configuration Guide
11-4
Macro Description
desktop-config
Purpose
Displays all configured macros.
Displays a specific macro.
Displays the configured macro names.
Displays the macro description for all interfaces or for a specified
interface.
Chapter 11
Configuring SmartPort Macros
Table
78-16156-01
11-1.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents