06-23-2005 09:51 AM
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 ?
06-23-2005 11:17 AM
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.
06-23-2005 12:29 PM
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.
06-23-2005 01:39 PM
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
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