2-75
Catalyst 6500 Series Switch Command Reference—Release 8.5
OL-7212-01
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
clear macro
clear macro
To clear user-defined SmartPorts macros, use the clear macro command.
clear macro name macro_name
clear macro all
clear macro variable {all | variable_name [mod/port]}
Syntax Description
Command Default This command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines When you clear a macro using the clear macro name name_of_macro command, you clear the
commands from the macro and remove the macro from the switch. The configurations that were applied
using the macro that is being cleared are retained. If the macro that is being cleared is using any
variables, and if the variables are not being used by any other macros, the variables are automatically
cleared.
Examples This example shows how to clear a specific macro and its variables (when those variables are not used
by other macros):
Console> (enable) clear macro name videophone
Clearing macro videophone....
Cleared Macro videophone ....
Console> (enable)
name Clears a user-defined SmartPorts macro.
macro_name Name of the macro.
all Clears all user-defined SmartPorts macros.
variable Clears a user-defined SmartPorts variable.
all Clears all user-defined variables on all ports.
variable_name Name of the variable.
mod/port (Optional) Number of the module and the port on the module.