CHAPTER
10-1
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
10
Configuring SmartPort Macros
This chapter describes how to configure and apply SmartPort macros on your Cataly st 2940 switch.
Note For complete syntax and usage information for the commands used in this chapter, refer to the command
reference for this release.
This chapter consists of these sections:
Understanding SmartPort Macros, page 10-1
Configuring Smart-Port Macros, page 10-1
Displaying SmartPort Macros, page 10-4

Understanding SmartPort Macros

SmartPort macros provide a convenient way to save and share common configurations. You can use
SmartPort macros to enable features and settings based on the location of a switch in the network and
for mass configuration deployments across the network.
Each SmartPort macro is a set of CLI commands that you define. SmartPort macros do n ot contain new
CLI commands; they are simply a group of existing CLI commands .
When you apply a SmartPort macro on an interface, the CLI com mands wi thi n the macr o are configured
on the interface. When the macro is applied to an interface, the existing interface configurations are not
lost. The new commands are added to interface and are saved in the running configuration file.

Configuring Smart-Port Macros

You can create a new SmartPort macro or u se an e xisti ng ma cro a s a templa te to cr eate a n e w mac ro that
is specific to your application. After you create the macro, you can apply it to an interface or a range of
interfaces.
This section includes information about:
Default SmartPort Macro Configuration, page 10-2
SmartPort Macro Configuration Guidelines, page 10-2
Creating and Applying SmartPort Macros, page 10-2