Vous êtes sur la page 1sur 5

Centro de suporte HP

HP
S5100 Switch Series - Password Lost And Needing
Recovery
Issue
The user has lost the switch password. Below discusses how to recover or change the console login
password if lost it.
Solution
Follow the below steps:
1. Access the Boot menu (ctrl+B when switch is starting)
******************************************************************************** * * * H3C S5100-
48P-
EI BOOTROM, Ver si on 618 * * * ******************************************************************************** Copyr i ght
( c) 2004- 2007 Hangzhou H3C Technol ogi es Co. , Lt d.
Cr eat i on dat e : Nov 22 2007, 18: 52: 49
CPU Cl ock Speed : 200MHz
BUS Cl ock Speed : 33MHz
Memor y Si ze : 64MB
Mac Addr ess : 000f e2754e35
Pr ess Ct r l - B t o ent er Boot Menu. . . 5
passwor d:
BOOT MENU
1. Downl oad appl i cat i on f i l e t o f l ash
2. Sel ect appl i cat i on f i l e t o boot
3. Di spl ay al l f i l es i n f l ash
4. Del et e f i l e f r omf l ash
5. Modi f y boot r ompasswor d
6. Ent er boot r omupgr ade menu
7. Ski p cur r ent conf i gur at i on f i l e
8. Set boot r ompasswor d r ecover y
9. Set swi t ch st ar t up mode
0. Reboot
Ent er your choi ce( 0- 9) :
2. Enter 7 (Skip current system configuration) and restart the switch (opcion 0). The switch reboots
with empty configuration, and can log in through the console port without entering the password to
check the configuration file for the user password.
Ent er your choi ce( 0- 9) : 7
The cur r ent set t i ng wi l l boot wi t h cur r ent conf i gur at i on f i l e when r eboot ed.
Ar e you sur e you want t o ski p cur r ent conf i gur at i on f i l e when r eboot ? Yes or No [ Y/ N] y
Set t i ng. . . . . . done!
BOOT MENU
1. Downl oad appl i cat i on f i l e t o f l ash
2. Sel ect appl i cat i on f i l e t o boot
3. Di spl ay al l f i l es i n f l ash
4. Del et e f i l e f r omf l ash
5. Modi f y boot r ompasswor d
6. Ent er boot r omupgr ade menu
7. Ski p cur r ent conf i gur at i on f i l e
8. Set boot r ompasswor d r ecover y
9. Set swi t ch st ar t up mode
0. Reboot
Pgina 1 de 5
09/09/2014 http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay?javax...
Ent er your choi ce( 0- 9) : 0
St ar t i ng. . . . . .
3. Using the command mor e look for the configuration file where it was set up the password that the
user lost. The command will show the configuration saved on this file.
<H3C>mor e uni t 1>f l ash: / st ar t up. cf g
#
sysname H3C
#
r adi us scheme syst em
#
domai n syst em
#
l ocal - user admi n
passwor d ci pher S; I KAY5^0NWQ=^Q`MAF4<1! !
ser vi ce- t ype ssh t el net t er mi nal
l evel 3
#
vl an 1
#LOCCFG. MUST NOT DELETE
#
i nt er f ace Aux1/ 0/ 0
#
i nt er f ace Gi gabi t Et her net 1/ 0/ 1
#
i nt er f ace Gi gabi t Et her net 1/ 0/ 2
#
.
.
.
#
i nt er f ace Gi gabi t Et her net 1/ 0/ 51
shut down
#
i nt er f ace Gi gabi t Et her net 1/ 0/ 52
shut down
#TOPOLOGYCFG. MUST NOT DELETE
#GLBCFG. MUST NOT DELETE
#
i nt er f ace NULL0
#
user - i nt er f ace aux 0
aut hent i cat i on- mode scheme
user - i nt er f ace vt y 0 4
#
r et ur n
<H3C>
4. Select all the configuration a copy it in a text document. Now one can change the currently user
password by an known password.
Currently password:
l ocal - user admi n
passwor d ci pher S; I KAY5^0NWQ=^Q`MAF4<1! !
ser vi ce- t ype ssh t el net t er mi nal
l evel 3
New password:
l ocal - user admi n
passwor d ci pher newpasswor d ( wi t hout quot at i on mar ks)
ser vi ce- t ype ssh t el net t er mi nal
l evel 3
5. Select all the configuration in the text documet and paste it in the system view of the switch.
<H3C>sys
Syst emVi ew: r et ur n t o User Vi ew wi t h Ct r l +Z.
[ H3C] #
[ H3C] sysname H3C
[ H3C] #
Pgina 2 de 5
09/09/2014 http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay?javax...

[ H3C] r adi us scheme syst em
[ H3C- r adi us- syst em] #
[ H3C- r adi us- syst em] domai n syst em
[ H3C- i sp- syst em] #
[ H3C- i sp- syst em] l ocal - user admi n
New l ocal user added.
[ H3C- l user - admi n] passwor d ci pher newpasswor d
[ H3C- l user - admi n] ser vi ce- t ype ssh t el net t er mi nal
[ H3C- l user - admi n] l evel 3
[ H3C- l user - admi n] #
[ H3C- l user - admi n] vl an 1
[ H3C- vl an1] #LOCCFG. MUST NOT DELETE
[ H3C- vl an1] #
[ H3C- vl an1] i nt er f ace Aux1/ 0/ 0
[ H3C- Aux1/ 0/ 0] #
[ H3C- Aux1/ 0/ 0] i nt er f ace Gi gabi t Et her net 1/ 0/ 1
[ H3C- Gi gabi t Et her net 1/ 0/ 1] #
[ H3C- Gi gabi t Et her net 1/ 0/ 1] i nt er f ace Gi gabi t Et her net 1/ 0/ 2
[ H3C- Gi gabi t Et her net 1/ 0/ 2] #
.
.
.
[ H3C- Gi gabi t Et her net 1/ 0/ 50] i nt er f ace Gi gabi t Et her net 1/ 0/ 51
[ H3C- Gi gabi t Et her net 1/ 0/ 51] shut down
[ H3C- Gi gabi t Et her net 1/ 0/ 51] #
[ H3C- Gi gabi t Et her net 1/ 0/ 51] i nt er f ace Gi gabi t Et her net 1/ 0/ 52
[ H3C- Gi gabi t Et her net 1/ 0/ 52] shut down
[ H3C- Gi gabi t Et her net 1/ 0/ 52] #TOPOLOGYCFG. MUST NOT DELETE
[ H3C- Gi gabi t Et her net 1/ 0/ 52] #GLBCFG. MUST NOT DELETE
[ H3C- Gi gabi t Et her net 1/ 0/ 52] #
[ H3C- Gi gabi t Et her net 1/ 0/ 52] i nt er f ace NULL0
[ H3C- NULL0] #
[ H3C- NULL0] user - i nt er f ace aux 0
[ H3C- ui - aux0] aut hent i cat i on- mode scheme
[ H3C- ui - aux0] user - i nt er f ace vt y 0 4
[ H3C- ui - vt y0- 4] #
[ H3C- ui - vt y0- 4] r et ur n
<H3C>
6. Save the new configuration using the name of the configuration file where it was set up the
password that one lost.
<H3C>save
The conf i gur at i on wi l l be wr i t t en t o t he devi ce.
Ar e you sur e?[ Y/ N] y
Pl ease i nput t he f i l e name( *. cf g) ( To l eave t he exi st i ng f i l ename
unchanged pr ess t he ent er key) : st ar t up. cf g
f l ash: / st ar t up. cf g exi st s, over wr i t e?[ Y/ N] : y
Now savi ng cur r ent conf i gur at i on t o t he devi ce.
Savi ng conf i gur at i on. Pl ease wai t . . .
. . . . . . . . . . . . . . . . . . . . . . .
Uni t 1 save conf i gur at i on f l ash: / st ar t up. cf g successf ul l y
<H3C>
%
Apr 2 00: 14: 24: 459 2000 H3C CFM/ 3/ CFM_LOG: - 1 - Uni t 1 saved conf i gur at i on successf ul l y.
7. Ask the switch to star using the configuration file on step 7, reboot the device and go to the Boot
Menu to disable skip current configurati on fi le option. After that the user will reboot the switch
from the Boot menu and be able to log into the console port using the new password.
<H3C>st ar t up saved- conf i gur at i on uni t 1>f l ash: / st ar t up. cf g mai n
Pl ease wai t . . . . . . . . . . . . . . . . . . . Done!
<H3C>
%
Apr 2 00: 15: 42: 911 2000 H3C CFM/ 3/ CFM_LOG: - 1 - Uni t 1 set t he conf i gur at i on successf ul l y.
<H3C>r eboot
St ar t t o check conf i gur at i on wi t h next st ar t up conf i gur at i on f i l e,
pl ease wai t . . . . . . . . . Checki ng i s f i ni shed!
Pgina 3 de 5
09/09/2014 http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay?javax...

Thi s wi l l r eboot devi ce. Cont i nue? [ Y/ N] y
#Apr 2 00: 16: 06: 932 2000 H3C COMMONSY/ 5/ REBOOT: - 1 -
Reboot devi ce by command.
<H3C>
%Apr 2 00: 16: 10: 926 2000 H3C DEV/ 5/ DEV_LOG: - 1 -
Swi t ch i s r eboot i ng. . .
St ar t i ng. . . . . .
*********************************************************** * * * H3C S5100-
48P-
EI BOOTROM, Ver si on 618 * * * ***********************************************************
Copyr i ght ( c) 2004- 2007 Hangzhou H3C Technol ogi es Co. , Lt d.
Cr eat i on dat e : Nov 22 2007, 18: 52: 49
CPU Cl ock Speed : 200MHz
BUS Cl ock Speed : 33MHz
Memor y Si ze : 64MB
Mac Addr ess : 000f e2754e35
Pr ess Ct r l - B t o ent er Boot Menu. . . 1
passwor d:
BOOT MENU
1. Downl oad appl i cat i on f i l e t o f l ash
2. Sel ect appl i cat i on f i l e t o boot
3. Di spl ay al l f i l es i n f l ash
4. Del et e f i l e f r omf l ash
5. Modi f y boot r ompasswor d
6. Ent er boot r omupgr ade menu
7. Ski p cur r ent conf i gur at i on f i l e
8. Set boot r ompasswor d r ecover y
9. Set swi t ch st ar t up mode
0. Reboot
Ent er your choi ce( 0- 9) : 7
The cur r ent set t i ng i s ski ppi ng conf i gur at i on f i l e when r eboot .
Ar e you sur e you want t o ski p cur r ent conf i gur at i on f i l e when r eboot ? Yes or No [ Y/ N] n
Set t i ng. . . . . . done!
BOOT MENU
1. Downl oad appl i cat i on f i l e t o f l ash
2. Sel ect appl i cat i on f i l e t o boot
3. Di spl ay al l f i l es i n f l ash
4. Del et e f i l e f r omf l ash
5. Modi f y boot r ompasswor d
6. Ent er boot r omupgr ade menu
7. Ski p cur r ent conf i gur at i on f i l e
8. Set boot r ompasswor d r ecover y
9. Set swi t ch st ar t up mode
0. Reboot
Ent er your choi ce( 0- 9) : 0
St ar t i ng. . . . . .
*********************************************************** * * * H3C S5100-
48P-
EI BOOTROM, Ver si on 618 * * * ***********************************************************
Copyr i ght ( c) 2004-
2007 Hangzhou H3C Technol ogi es Co. , Lt d.
Cr eat i on dat e : Nov 22 2007, 18: 52: 49
CPU Cl ock Speed : 200MHz
BUS Cl ock Speed : 33MHz
Memor y Si ze : 64MB
Mac Addr ess : 000f e2754e35
Pr ess Ct r l - B t o ent er Boot Menu. . . 0
Aut o- boot i ng. . .
Decompr ess I mage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OK! St ar t i ng at 0x80100000. . .
User i nt er f ace aux0 i s avai l abl e.
Pgina 4 de 5
09/09/2014 http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay?javax...
Pr ess ENTER t o get st ar t ed.
Logi n aut hent i cat i on
User name: admi n
Passwor d:
<H3C>
%Apr 1 23: 55: 55: 010 2000 H3C SHELL/ 5/ LOGI N: - 1 - admi n
( aux0) i n uni t 1 l ogi n
<H3C>
Pgina 5 de 5
09/09/2014 http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay?javax...

Vous aimerez peut-être aussi