Update switch credentials
This article shows how to change the administrator (admin) and SNMP credentials on all switches in a ruggedized Azure Stack Hub.
Prerequisites
Before you run the procedures:
- Use Remote Desktop to connect to the Hardware Lifecycle Host (HLH).
- Locate PuTTY on the HLH, usually E:/\Tools/\Putty/\putty.exe. If PuTTY isn't available, download and install it on the HLH.
- You need both the current and new credentials for the switches.
Update credentials for the Admin user and Enable accounts
For each switch in the scale unit (BMC, TOR1, and TOR2):
On the HLH, use PuTTY to sign on to the switch using the current credentials.
Run the following command, replacing <new password> with the new password and then Enable credentials.
enable configuration terminal username admin pass word <new_password> privilege 15 enable password <new_password>
Leave the current session to the switch open.
On the HLH, use PuTTY to sign on to the switch using the new credentials.
Run the following command. Enable shouldn't prompt for a password.
enable write dir flash:
Verify that the startup-config shows the current date.
Once confirmed, close both this session and the original session.
Update credentials for SNMP accounts
For each switch in the scale unit (BMC, TOR1, and TOR2):
On the HLH, use PuTTY to sign on to the switch.
Run the following command to get the current SNMP read/write users and groups:
enable show run snmp | grep user
The following example shows the results including user, group name, and password hashes:
snmp-server user <user> <group> 3 encrypted auth sha <password_hash>
Run the following command, replacing <user> and <group> with the results from the previous step. Replace <password> with the new password:
configuration terminal snmp-server user <user> <group> 3 auth sha <password_new> end write exit
Next steps
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for