Reference Guide
Ports 283
Configuring Port Profile Using CLI Commands
The following table summarizes the CLI commands for configuring port
profiles.
The following is an example of the CLI commands:
Sample CLI Scripts
This section provides sample scripts of CLI commands. These particular
actions cannot be performed through the GUI, which only allows applying
built-in macros. These scripts describe how to create macros, display them
and apply them.
Table 10-5. Port Profiles CLI Commands
CLI Command Description
macro {apply|trace} macro-name
[parameter-name1 {value}]
[parameter-name2 {value}]
[parameter-name3 {value}]
Applies a macro to an interface or
traces a macro configuration on an
interface.
show parser macro
[{brief|description [interface
interface-id | detailed]| name
macro-name}]
Displays the parameters for all
configured macros or for one
macro on the switch.
Switch(config) # interface gi0/2
Switch(config-if) # macro trace dup
Applying command… ‘duplex full’
Applying command… ‘speed auto’
Switch(config) # interface gi0/2
Switch(config-if) # macro apply duplex $DUPLEX full
$SPEED auto
Switch(config-if) # exit
Switch(config) # interface gi0/3
Switch(config-if) # macro apply dup
Switch(config-if) # exit










