Configuring with a script?

Post Reply
bdillard
Member
Posts: 20
Joined: 17 May 2016 21:21

Configuring with a script?

Post by bdillard »

Hello,

We configure a lot of the thee the same way - e.g.
aaa authentication...
vlan 10
vlan 20...
ip address... (different for each but the rest of the commands are the same)
and so on

Is there a way I can type all this up in notepad and run it on a switch?

Thanks
devnull
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 976
Joined: 07 Sep 2010 10:16
Location: Germany

Re: Configuring with a script?

Post by devnull »

Either copy and paste in terminal
or upload a file and issue
"configuration apply cmd.txt"

configuration apply
Applies a configuration file to the switch. Files may be applied immediately or after a designated timer session. With the timer session option, files are applied either at a scheduled date and time or after a specified period of time (that is, a countdown) has passed.

You can put boot.cfg on a USB Stick together with firmware and use usb auto-copy

You could also create the boot.cfg by script and use zero/autoconfig/dhcp to give each device the correct bootfile by dhcp ..

So depending on what you want to achive, how many devices you have to config you can use one of the strategies
bdillard
Member
Posts: 20
Joined: 17 May 2016 21:21

Re: Configuring with a script?

Post by bdillard »

Thanks! I'll give it a try.
bdillard
Member
Posts: 20
Joined: 17 May 2016 21:21

Re: Configuring with a script?

Post by bdillard »

I tried it - it worked!!
devnull
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 976
Joined: 07 Sep 2010 10:16
Location: Germany

Re: Configuring with a script?

Post by devnull »

What solution did you use?
bdillard
Member
Posts: 20
Joined: 17 May 2016 21:21

Re: Configuring with a script?

Post by bdillard »

I created the commands in notepad
then put the txt file on a thumb drive
I consoled to the switch
I enabled the thumb drive
then ran the conguration apply to the file on the thumb drive
After it ran there was just a . to tell me it ran
I then did write memory
Copy working certified
I then verified it had all the vlans and and IPs and it could ping 8.8.8.8 and everything worked perfectly.
Post Reply

Return to “OmniSwitch 6450”