I want to create a change request template to allow our staff to configure PC ports to meet our security and documentation requirements.
The trick is that for each port configured it would have to include a description for each interface. There was nothing in the documentation explaining how to do this. Another option would be to limit the template so it could only be executed on a single interface at a time. Again nothing in the documentation about this.
My script would run something like this.
First clear any existing interface configuraiton.
CLI { default interface (@ITF.InterfaceName) }
Next enter the required interface configuration.
CLI {
interface (@ITF.InterfaceName)
description computer: @PCName
switchport mode access
switchport nonegotiate
switchport voice vlan 60
switchport port-security
switchport port-security maximum 3
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
dot1x port-control auto
dot1x timeout quiet-period 2
dot1x timeout tx-period 2
dot1x timeout reauth-period server
dot1x timeout supp-timeout 2
dot1x timeout server-timeout 2
dot1x max-req 5
dot1x max-reauth-req 5
dot1x guest-vlan 20
dot1x reauthentication
dot1x auth-fail vlan 20
dot1x auth-fail max-attempts 2
fair-queue
hold-queue 64 in
hold-queue 64 out
}