Chapter 55
Configuring a VoIP Network
•
•
•
Clearing Macros and Macro Variables
When you clear a macro by entering the 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.
This section describes the various methods of clearing macros and macro variables:
•
•
OL-8978-04
Display an individual macro variable and all of the ports that it is applied by entering the show
macro variable name name_of_macro command as follows:
Console> (enable) show macro variable name $DATAVLAN
Variable
--------
DATAVLAN
DATAVLAN
DATAVLAN
Console> (enable)
Display an individual macro variable and a specific port that it is applied by entering the show
macro variable name name_of_macro mod/port command as follows:
Console> (enable) show macro variable name $DATAVLAN 3/2
Variable
--------
DATAVLAN
Console> (enable)
Display macro variables by macro name by entering the show macro variables name
name_of_macro mod/port command as follows:
Console> (enable) show macro variables name videophone 3/2
Variable-Name
-------------
DATAVLAN
AUXVLAN
Console> (enable)
The syntax is as follows:
clear macro name name_of_macro
clear macro all
clear macro variable [all] [name_of_variable] [mod/ports]
Clear an individual macro and its variables by entering the the clear macro name name_of_macro
command as follows:
Console> (enable) clear macro name videophone
Clearing macro videophone....
Cleared Macro videophone ....
Console> (enable)
Port
Value
----
-----
3/2
3
3/3
5
NA
99
Port
Value
----
-----
3/2
3
Variable Value
--------------
3
4
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
Using SmartPorts
Type
------
Per-port
Per-portGlobal
Global
Type
------
Per-port
Port
-----
3/2
3/2
55-53