Cisco Catalyst 4500 Series Configuration Manual page 528

Release ios xe 3.3.0sg and ios 15.1(1)sg
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 19-4
Table 19-4
Command
{
}
[[
]]
else
-eq
fi
if
then
-z
$
#
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
19-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 19
Configuring Cisco IOS Auto Smartport Macros
OL-25340-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents