Configuring Smart-Port Macros; Default Smartport Macro Configuration; Smartport Macro Configuration Guidelines - Cisco WS-C3560-48PS-S Software Configuration Manual

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

Advertisement

Configuring Smart-Port Macros

Configuring Smart-Port Macros
You can create a new SmartPort macro or use an existing macro as a template to create a new macro that
is specific to your application. After you create the macro, you can apply it to an interface or range of
interfaces.
This section includes information about:

Default SmartPort Macro Configuration

There are no default SmartPort macros configured on the switch.

SmartPort Macro Configuration Guidelines

Follow these guidelines when configuring macros on your switch:
Catalyst 3560 Switch Software Configuration Guide
11-2
Default SmartPort Macro Configuration, page 11-2
SmartPort Macro Configuration Guidelines, page 11-2
Creating and Applying SmartPort Macros, page 11-3
Do not use exit or end commands when creating a macro. This could cause commands that follow
exit or end to execute in a different command mode.
When creating a macro, all CLI commands should be interface configuration mode commands.
Some CLI commands are specific to certain interface types. The macro will fail the syntax check or
the configuration check, and the switch will return an error message if it is applied to an interface
that does not accept the configuration.
When a macro is applied to an interface, all existing configuration on the interface is retained. This
is helpful when applying an incremental configuration to an interface.
If you modify a macro definition by adding or deleting commands, the changes are not reflected on
the interface where the original macro was applied. You need to reapply the updated macro on the
interface to apply the new or changed commands.
You can use the macro trace macro-name interface configuration command to show what macros
are running on an interface or to debug the macro to determine any syntax or configuration errors.
If a command fails when you apply a macro, either due to a syntax error or a to configuration error,
the macro continues to apply the remaining commands to the interface.
Applying a macro to an interface range is the same as applying a macro to a single interface. When
you use an interface range, the macro is applied sequentially to each individual interface within the
range. If a macro command fails on one interface, it is still applied to the remaining interfaces.
Chapter 11
Configuring SmartPort Macros
78-16156-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents