Cisco Catalyst 4500 Series Software Configuration Manual page 696

Cisco ios xe release 3.9.xe and cisco ios release 15.2(5)ex
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Configuring Auto Smartport Macros
switchport mode access
switchport port-security
switchport port-security maximum 1
switchport port-security violation restrict
switchport port-security aging time 2
switchport port-security aging type inactivity
spanning-tree portfast
spanning-tree bpduguard enable
exit
fi
The following represents the anti-macro portion of the automacro:
if [[ $LINKUP -eq NO ]]; then
conf t
interface $INTERFACE
fi
}
Switch(config)# end
Table 22-4
Table 22-4
Command
{
}
[[
]]
else
-eq
fi
if
then
-z
$
#
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
22-12
no macro description $TRIGGER
no switchport access vlan 1
if [[ $AUTH_ENABLED -eq NO ]]; then
no switchport mode access
fi
no switchport port-security
no switchport port-security maximum 1
no switchport port-security violation restrict
no switchport port-security aging time 2
no switchport port-security aging type inactivity
no spanning-tree portfast
no spanning-tree bpduguard enable
exit
lists the supported shell keywords your can apply in your macros and antimacro statements.
Supported Cisco IOS Shell Keywords
Description
Begin the command grouping.
End the command grouping.
Use as a conditional construct.
Use as a conditional construct.
Use as a conditional construct.
Use as a conditional construct.
Use as a conditional construct.
Use as a conditional construct.
Use as a conditional construct.
Use as a conditional construct.
Variables that begin with the $ character are
replaced with a parameter value.
Use the # character to enter comment text.
Chapter 22
Configuring Cisco IOS Auto Smartport Macros

Advertisement

Table of Contents
loading

Table of Contents