We have 200+ switches, there is any script to change the password?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-25-2016 04:14 PM
We have 200+ switches, there is any script to change the password?
8 REPLIES 8
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-27-2016 06:30 PM
Don't discredit TACACS (as Jarek suggested) or RADIUS for future use.
Here's some information on RADIUS configuration if it comes up later.
Here's some information on RADIUS configuration if it comes up later.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-26-2016 07:57 AM
I used the below to create a user on multiple x450 switches with OneView, but you'd have to delete the script after using it as password is stored in clear text. As previously stated expect would be a good option too. #@MetaDataStart ############################################################################################# # Define your user parameters in this section. For reference, see bundled scripts. ############################################################################################# #@MetaDataEnd # Enter all CLI commands from here ####################################################################### # Add System Accounts ####################################################################### ## Admin create account admin <> regexp {.*password:.*} ${CLI.OUT} foundit1 IF ([info exists foundit1]) THEN CLI <> ENDIF regexp {.*Reenter password:.*} ${CLI.OUT} foundit2 IF ([info exists foundit2]) THEN CLI <> ENDIF Ed.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-26-2016 05:29 AM
Hello,
I think for users login/password you should configure TACACS+.
Switch login/password should be a last resort login when TACACS server is not available..
For password changing you can use telnet/netcat in bash.
Example:
echo "commands "| netcat -v -i 3 IP_Address 23 -T
(this means telnet to IP and enter each command with 3 sec. delay)
But for 200+ switches you should be careful....don't do this in one script.
--
Jarek
I think for users login/password you should configure TACACS+.
Switch login/password should be a last resort login when TACACS server is not available..
For password changing you can use telnet/netcat in bash.
Example:
echo "commands "| netcat -v -i 3 IP_Address 23 -T
(this means telnet to IP and enter each command with 3 sec. delay)
But for 200+ switches you should be careful....don't do this in one script.
--
Jarek
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-26-2016 04:07 AM
You can use the Command Script Execution tool within Netsight Console. Each line you type in will be just like you typed it in with telnet/ssh. So for example in EOS if I wanted to change the admin password to "password" I would type: set password password password exit (the blank space is for the old password)
