I'm looking to script the config of some Cisco devices. I am happy to select the nodes and interfaces and configure them all with the same config.
However I have two lines of config per interface which are dependent on the switch access vlan number.
So does anyone know how I get this as a variable and config the interfaces based on the vlan? Thanks
switchport access vlan 10
authentication event server dead action authorize vlan 10