cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1226
Views
0
Helpful
4
Replies

script or tool to do change in 5000 switches

tmesbah
Level 1
Level 1

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

4 Replies 4

nhabib
Level 9
Level 9

If you have CiscoWorks LMS, you can use NetConfig

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

I am not sure I follow. You mean Netconfig is changing RO even though you only want to change RW?

kka
Level 5
Level 5

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.