11-10-2006 03:09 PM - edited 07-03-2021 01:13 PM
I would like to write a script to automaticaly upload the configuration (all or only change some parameters) to a WLAN 1100 & 1200.
Is it possible ?
11-10-2006 05:40 PM
Sure. Perl already has some modules / packages (Net::Telnet::Cisco ... even just Net::Telnet would work)
Anything that can talk through telnet (Python, shell script, C, C#, Ruby ...) oughta work fine.
You might do a google for COSI too, there's already some scripts / applications available.
Kiwi CatTools can gather and (I think) push configs too.
Good Luck
Scott
11-11-2006 12:07 AM
Thanks for your answer,
but that I realy need is to know what commands of CISCO must I use.
telnet < pass "xx" get "file.txt"
??
11-11-2006 07:33 AM
What scripting method / language are you wanting to use?
You would use the same commands you'd use if you were connected via the console or telnet, maybe a tftp transfer, or you could just pump the raw command text for the command.
Also, how "automatic" does it have to be? Are you going to have the script fired by a timer (connect, do changes, disconnect), or will the connection be done manually, and you just want to automate the change process once the connection is made?
Let's not get into a "20 questions" thing: what do you want to do, and how do you want to do it?
Let us know
Scott
11-12-2006 12:40 PM
Thanks for your asnwers,
Scripting language isn't the problem. For exemple, perl. My problem are cisco commands.
I have to change the configuration of a lot of 1100 & 1200, and I need to do it in a less time that could be possible. So I was thinking in prepare all the config files for each AP. Anf after write a script like;
connect 1st AP; upload config.file1
connect 2nd AP; upload config.file2
connect 3rd AP; upload config.file3
...
(of course it could be made by a 'for' sentence)
But I don't know if there's a command to upload all the config file. It exists?
thanks,
11-12-2006 07:30 PM
If you are using SecureCRT you can get started here:
1. http://www.vandyke.com/support/crt/scripts/senddata_vbs.txt (VBScript)
2. http://www.vandyke.com/support/crt/scripts/senddata_js.txt (JScript).
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