Reset config to factory defaults/Erase config

Post Reply
LRU

Reset config to factory defaults/Erase config

Post by LRU »

Hi,
is there any way to reset a OmniSwitch 6850 to factory defaults, i.e. erase all existing configuration?
I do have the current password! ;)
But i would like to come back to a clean onfiguration.
So how to erase all configuration settings?
Thanks.
User avatar
gbrits
Member
Posts: 14
Joined: 22 Feb 2010 00:26

Post by gbrits »

HI There

You need to console to the switch and reboot it.
WHile booting, you need to interrupt the boot, to get to the CLi prompt

From there you need to enetrer the following commands:

setenv bootflags 0x1000
saveenv
boot

THis takes you to a Mini boot prompt. Once here, just delete the UserTable file under the /flash/network directory.

Once done, reboot the switch again, and interrupt the boot again.

DO the following command then

setenv bootflags 0x0
saveenv

Reboot the switch again, and that should be it....
LRU

Post by LRU »

Hello,
thanks, but that looks like it will reset the user database and passwords.
But i'd like to reset all the configuration to factory defaults too.
Does it do this??
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3404
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

Post by frank »

Hi ,

Let the 6850 boot.
Login. Then the secret is to delete both boot.cfg files form the working and certified directory:
cd working
rm boot.cfg
cd ..
cd certified
rm boot.cfg
reload
and here you go, brand new empty configuration. You can validate with
show configuration snapshot
Code Free Or Die
User avatar
gbrits
Member
Posts: 14
Joined: 22 Feb 2010 00:26

Post by gbrits »

Thank for the answer Frank !
LRU

Post by LRU »

Yes, many thanks!
Some precision concerning the password reset procedure:

[booting...]
Hit any key to stop autoboot: 1 0
[Press a key quickly!]
=> setenv bootflags 0x1000
=> saveenv
=> boot
[booting...]
WARNING: Stopping in miniboot as directed by boot flags...
[Miniboot]->cd "network"
value = 0 = 0x0
[Miniboot]->ll
drw 512 Feb 28 09:32 ./
drw 512 Jan 1 1970 ../
-rw 23040 Jan 30 2007 userTable4
-rw 33 Nov 24 2006 policy.cfg
-rw 404 Nov 24 2006 ssh_host_dsa_key
-rw 358 Nov 24 2006 ssh_host_dsa_key.pub
-rw 91392 Feb 28 09:32 userTable5
-rw 12 Feb 28 09:32 lockoutSetting

1267200 bytes free
value = 0 = 0x0
[Miniboot]->rm "userTable4"
value = 0 = 0x0
[Miniboot]->rm "userTable5"
value = 0 = 0x0
[Miniboot]->reboot
[booting...]
Hit any key to stop autoboot: 1 0
[Press a key quickly!]
=> setenv bootflags 0x0
=> saveenv
=> reboot
[Done]
cedric1

Post by cedric1 »

Nice to have the complete procedure

LRU thanks for this end of topics

Cedric
sneff

Post by sneff »

LRU wrote:Hello,
thanks, but that looks like it will reset the user database and passwords.
But i'd like to reset all the configuration to factory defaults too.
Does it do this??

If you need to also remove the stack topology file remove the boot.slot.cfg file from the root.
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3404
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

Post by frank »

Yeah.
Once you log in the switch, do that:

rm /flash/working/*.cfg
rm /flash/certified/*.cfg
reload

This will reboot to default

If you want to remove the login / password to , you need to go in the network folder, and delete the user table.
before the upload above , do "cd network" then "dir". You will see a file called usertableX or something like that.
Just do "rm xxxxx" xxxx being the name of the file (case sensitive) then enter the command "reload".
You'll be all set.
Code Free Or Die
ashwaniarora

Re: Reset config to factory defaults/Erase config

Post by ashwaniarora »

thanks it worked fine
Post Reply

Return to “OmniSwitch 6850 / 6850E”