If this switch is running EXOS 16.2 or higher, you can use a one-time failsafe password to login.
Otherwise, you will need to use one of the following methods. The first involves creating an autoexec script to add a temporary account, and the second involves transferring the XML config off the switch and modifying it in a text editor. Both require the same initial steps.
Initial Steps: Reboot the switch with a default configuration
At this point, perform one of the procedures below. Either continue with the steps below, to create an autoexec script, or skip down to "Transferring the XML config off and modifying it"
- Connect to the switch via console connection.
- Power cycle the switch.
- During the boot process “hold the spacebar” to enter bootrom.
Alternate BootStrap Image
Starting CRC of Default image
Using Default image ...
Default BootLoader Image
Press and hold the <spacebar> to enter the bootrom.
- In the bootrom, type the commands below to select a default configuration to be booted:
BootRom > config none
BootRom > boot
- The switch should now boot with a factory default configuration. Username:admin, Password:<blank>
Method 1: Creating an autoexec script
At this point, the switch should be back to its initial configuration, except for the passwords on the modified accounts.
- Enter the vi editor to create an autoexec.xsf file
- Press the i key to enter insert mode.
- Type the following line, which will create a new user called 'temp' with admin privileges and a password of 'password'
create account admin temp password
- Exit insert mode by pressing ESC, then write the file and quit vi by typing :wq
- Reboot the switch by typing reboot, but do NOT save the config. Saving the config at this point will overwrite the existing configuration with a blank one.
- When the switch reboots, the autoexec.xsf script will be executed, creating the new account.
- Log in using the new account, and make the appropriate changes to the other accounts to allow access. If the password for an account is unknown, the only way to change the password is to delete the account and re-create it.
- Log out, and ensure that the other accounts can now be used to log into the switch.
- While logged in using a different account than one created in the script, delete the temp account and the autoexec.xsf script.
delete account temp
Method 2: Transferring the XML config off and modifying it:
- Once logged into the switch: configure an IP address on VLAN: mgmt and connect a PC with a TFTP server.
configure vlan mgmt ipaddress <SWITCH_IP>
- Use ls to list files present on the switches memory.
- Use TFTP to collect the original configuration file. Likely “primary.cfg”.
tftp put <TFTP_SERVER_IP> primary.cfg
- Save a new config file with the current factory default credentials
save configuration nopassword
- Use TFTP to collect this file
tftp put <TFTP_SERVER_IP> nopassword.cfg
- Use a text editor such as Notepad++ to replace the password data as demonstrated below:
- Use TFTP to overwrite the configuration on the switch with the password edited version.
tftp get <TFTP_SERVER_IP> primary.cfg force-overwrite
- Use the new configuration
use configuration primary
- Login to switch with admin/no password and verify that the expected configuration is present.
- If not, collect any other .cfg files present on the switch and repeat the process.