12-10-2005 05:42 AM
Hi,
We want to change SNMP community string in all our switches "we have around 5000 switches". Is there a tool or script that I can use that telnet or ssh to this switches than push a command 'snmp-server community ....' and do 'write mem'.
Thanks
12-10-2005 05:51 AM
If you have CiscoWorks LMS, you can use NetConfig
12-10-2005 08:06 AM
I use it but I have an issue netconfig, always overwriting RO community. Only snmp-server community xxxx RW is taken.
I tried all the options "Add, replace, remove No change" with no success, it always take one command "view CLI show the two commands snmp-server community xxxx RO, snmp-server community xxxx RW".
Any idea?
Thanks
12-10-2005 08:31 AM
I am not sure I follow. You mean Netconfig is changing RO even though you only want to change RW?
12-11-2005 03:25 AM
You might want to take a look at RANCID <http://www.shrubbery.net/rancid/>.
This is actually a config archiver for IOS, CatOS, JunOS, ... devices,
but the login scripts can be easily used for config changes.
I. e. put your commands in a text file "cmd.txt" and run something like:
clogin -x cmd.txt devicename
You can give more than one devicename as argument to clogin,
but with 5000 you will most likely hit a shell limit.
I'd suggest looping over a list with the devicenames.
We have been using this for changing configs on some
80 devices at once.
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