cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2377
Views
0
Helpful
3
Replies

possible to change password snmp set based switch

Hello,

I am trying to build some scripts to auomatic change passwords for some routers and switches. Now with IOS based swiches

I can easilly change the switch or routers password if a have a SNMP RW string.

But for set based switches this does not seem to work. I think this is because the switch needs the "old" password. Has anybody been able to modify for example the enable secret on a set based switch with just the snmp RW ?

3 Replies 3

nhabib
Level 9
Level 9

It is possible, but you have to create a configlet and tftp it over to the switch

The configlet will contain something like this (equates to ww):

set password $2$qxvs$23DaZuPZeHxLjUPwCK0Ul0

end

In other words, you need to know what is the encrypted password, and send it over.

But this means that you need to know the old password right?

And if not then I need to have user/tacacs rights. I do have this all but it are a lot of switches with a lot of different passwords, i am looking for a way without needing to know the old passwords or tacacs rights.

You do not require the password on the switch

You simply need to know the encrypted password on a switch and use it in your configlet

Review Cisco Networking for a $25 gift card