I need a command script for changing enable passwords-CatOS and IOS.
Does anyone have one already?
Thanks,
-Jessica
Jessica, try executing this script on IOS:
${EnterConfigMode}enable secret <new password>exitwrite memory
AND this script on CatOS:
${EnterConfigMode}set enablepass${EnablePassword}<new password><new password>exitwrite memory
Hmm. Well, I haven't tried the IOS script yet, but unfortunately the CatOS script doesn't work. It gave me the same response with "wrong password".
-jessica
Can you replace any passwords with <old password> or <new password> and post the results you see in the command script execution window? I've gotten this script to work on the Catalyst 6k we have here in the lab.
Here are my results.___________________________________________________________________________5/12/2008 1:27:52 PM : Started Change enable password on CatOS switches : Job-309413Execute Command Script on Devices1 devices selectedCommand Script--------------${EnterConfigMode}set enablepass${EnablePassword}<new password><new password>exitwrite memory--------------switchname.x.x.x------------------set enablepassEnter old password:Sorry password incorrect.old passwordUnknown command "old password". Use 'help' for more info.<new password>Unknown command "<new password>". Use 'help' for more info.<new password>Unknown command "<new password>". Use 'help' for more info.
Ok, that helps. Can you go to the device details and ensure that the enable password is set correctly? Try running a Validate Login credentials.
Let's say your current Enable Password was "longhorns" and you wanted to change it to "cowboys". Here's what should get sent on the command line:
${EnterConfigMode}set enablepasslonghornscowboyscowboysexitwrite memory
The credentials were fine. Here are the results of the script above:
5/12/2008 3:36:59 PM : Started Change enable password on CatOS switches : Job-309413
Execute Command Script on Devices1 devices selected
Command Script--------------${EnterConfigMode}set enablepassoldpasswordnewpasswordnewpasswordexitwrite memory--------------
1iron.labs.x.x
------------------
set enablepassEnter old password:Sorry password incorrect.
oldpasswordUnknown command "oldpassword". Use 'help' for more info.
newpasswordUnknown command "newpassword". Use 'help' for more info.
5/12/2008 3:37:05 PM : Completed Change enable password on CatOS switches : Job-309413 ; Devices : 1 ; Errors : 0Execution time : 6 seconds
That's really strange. It seems that it's trying oldpassword and CatOS is saying oldpassword is not correct. Can you try telneting into the device directly and trying to reset the password to see what happens.
Here's what I see when running the job on our Cisco 6k in the lab:___________________________________________________________________________
5/12/2008 3:57:18 PM : Started Change CatOS Enable Password : Job-175668
Command Script--------------'ADVANCED:FILTER RESULTS:False'ADVANCED:FILTER PATTERN:Serial'ADVANCED:SHOW COMMANDS:True'' Change Enable Password'' ${EnterConfigMode} is a macro that is equivalent to "Config Terminal" on Cisco devices'${EnterConfigMode}set enablepass${EnablePassword}passwordpasswordexitwrite memory--------------
Cur-6506--------
set enablepass
passwordEnter old :
passwordEnter new :
passwordRetype new :Password changed.
5/12/2008 3:57:35 PM : Completed Change CatOS Enable Password : Job-175668 ; Devices : 1 ; Errors : 0Execution time : 17 seconds__________________________________________________________________________
:-( I wish mine worked. I would think I have been making typos, except that I have tried 1000 times. Yes, I can change the password manually. Is it possible the macros somehow aren't working or aren't set up correctly in my software? I entered a ticket for this, but they just said "we can't help you write a script" and were kind of done with me.
I just tried something that might drive you crazy (if it fixes your issue). I entered a single space after the ${EnablePassword} command in the script and it came back with invalid password. Can you ensure that there aren't any spaces before or after any of the commands in your script? Cirrus simply obeys and sends exactly what you put in...
Alas, no spaces in mine.