01-18-2023 10:57 AM
Is there a command to add a vlan to only unused ports on switch. We have existing production switches but we would like to add a unused vlan to all unused ports. I know the range command, but there are many active ports on the switch and wanted to find a quicker way to add this besides configuring each individual port.
Thanks.
01-18-2023 11:13 AM
You can try EEM and TCL script :
01-18-2023 11:14 AM
the port by default assign to VLAN1, only make keep VLAN1 not use and hence you get what you want.
01-18-2023 01:20 PM - edited 01-18-2023 01:21 PM
EEM and TCL would be the easiest once they have been added to the switch configuration. Alternatively you could look into using products like Cisco Prime or APIC EM. And if you really want to start coding, you could go down the python route.
Ansible could also be an option.
But as for an "on the box" command. The range command is the best you will get.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide