I have to define a big amount of VLANs in a rather big amount of switches using Cisco packet tracer software. I was wondering whether there is a way to copy-paste all those commands from one switch to the others, or if it exists any kind of scripting available for that.
When I have to copy-paste big configurations I use a text editor. I put there all the reusable rows in this manner:
enable ! configure terminal ! vlan 10 ! name VLAN10 ! vlan 20 ! name VLAN20 ! exit ! exit
Please notice the exclamation mark ( "!" ) that I put below each row, it makes the text reusable! And I don't put the "Switch>" part, just copy the text and paste it in the CLI. It doesn't look very automated, but... it's just Packet Tracer. :)