Sei sulla pagina 1di 8

upgrade of huaweis S5300 switch

Posted on September 21, 2011

Any time you want to upgrade huaweis device you have 2 methods to
do this. The first of them is to use CLI (command line interface), the second is to use bootrom
menu. Using CLI is the most popular method. You can configure FTP server on the device
and use your PC as FTP client or install
install FTP server on your PC and treat the device as FTP
client. Anyway, you can use TFTP or serial (slow connection) instead of FTP. Sometimes it is
not possible to get CLI because there is a problem with software file. It is damaged or does
not exist. In this case we can use bootrom menu to download a new software and upgrade the
device. Lets take S5300 as an example.

upgrade of huawei S5300 switch from CLI


huawei S5300 as FTP server:
FTP server enable
local-user
user labnario password simple labnario
local-user
er labnario privilege level 15
local-user labnario ftp-directory
directory flash:
local-user
user labnario service-type
service
ftp
interface MEth0/0/1
ip address 192.168.0.20 255.255.255.0

S5300 as FTP client:


<Quidway>ftp 192.168.0.22
Trying 192.168.0.22 ...
Press CTRL+K to abort
Connected to 192.168.0.22.
220 3Com FTP Server Version 1.1
User(192.168.0.22:(none)):huawei
331 User name ok, need password
Enter password:
230 User logged in
[ftp]dir
200 PORT command successful.
150 File status OK ; about to open data connection
---------- 1 owner group
327968 Sep 21 10:40 bootrom104.bin
---------- 1 owner group 11050836 Sep 21 10:40 S5300EIV100R005C00SPC100.cc
226 Closing data connection
FTP: 1000 byte(s) received in 1.280 second(s) 781.25byte(s)/sec.
[ftp]binary
200 Type set to I.
[ftp]get S5300EI-V100R005C00SPC100.cc

display all files stored in S5300 flash:


<Quidway>dir
Directory of flash:/

Idx Attr
Size(Byte) Date
0 -rw106,936 Oct 01
1 -rw5,169,809 Oct 01
2 -rw102 Oct 09
3 -rw7,369,844 Oct 01
SV100R002C02B093_for_5300.cc
4 -rw11,050,836 Oct 01
V100R005C00SPC100.cc
5 -rw327,968 Oct 01
6 -rw4,086 Oct 01
7 -rw28 Oct 01

2008
2008
2008
2008

Time
00:08:11
00:05:18
16:27:17
00:01:06

FileName
matnlog.dat
log.log
$_patchstate_a

2008 00:02:26

S5300EI-

2008 00:50:21
2008 00:51:42
2008 00:07:04

bootrom104.bin
vrpcfg.cfg
private-data.txt

30,008 KB total (6,504 KB free)

set the new software as startup software:


<Quidway>startup system-software S5300EI-V100R005C00SPC100.cc
Info: Succeeded in setting the software for booting system.
display startup
MainBoard:
Configured startup system software:
flash:/SV100R002C02B093_for_5300.cc
Startup system software:
flash:/SV100R002C02B093_for_5300.cc
Next startup system software:
flash:/s5300eiv100r005c00spc100.cc
Startup saved-configuration file:
flash:/vrpcfg.cfg
Next startup saved-configuration file:
flash:/vrpcfg.cfg
Startup paf file:
NULL
Next startup paf file:
NULL
Startup license file:
NULL
Next startup license file:
NULL
Startup patch package:
NULL
Next startup patch package:
NULL

the last task is to restart the switch:


<Quidway>reboot

upgrade of S5300 from bootrom menu


Sometimes it is necessary to upgrade bootrom, before of software upgrade. You can do this
directly from bootrom menu.
1. To enter bootrom menu power on or reboot the switch
2. Enter the bootrom menu by Ctrl+B, default bootrom password for S5300 is huawei.
BIOS LOADING ...
Copyright (c) 2008-2010 HUAWEI TECH CO., LTD.
(Ver104, Aug 17 2010, 16:50:12)
Press Ctrl+B to enter BOOTROM menu... 1
password:
BOOTROM MENU

1.
2.
3.
4.
5.
6.
7.

Boot with default mode


Enter serial submenu
Enter startup submenu
Enter ethernet submenu
Enter filesystem submenu
Modify BOOTROM password
Reboot

Enter your choice(1-7): 2


SERIAL
1.
2.
3.
4.

SUBMENU

Update BOOTROM system


Download file to Flash through serial interface
Modify serial interface parameter
Return to main menu

Enter your choice(1-4): 1


Please select file.
XMODEM downloading ...CC

3. After bootrom upgrade we can start upgrading software. The first task is to download
necessary software from FTP server. The whole procedure below:
BOOTROM
1.
2.
3.
4.
5.
6.
7.

MENU

Boot with default mode


Enter serial submenu
Enter startup submenu
Enter ethernet submenu
Enter filesystem submenu
Modify BOOTROM password
Reboot

Enter your choice(1-7): 4


ETHERNET
1.
system
2.
3.
4.

SUBMENU

Download file to SDRAM through ethernet interface and reboot the


Download file to Flash through ethernet interface
Modify ethernet interface boot parameter
Return to main menu

Be sure to select 3 to modify boot parameter before downloading!


Enter your choice(1-4): 3
BOOTLINE

SUBMENU

1. Set TFTP protocol parameters


2. Set FTP protocol parameters
3. Return to ethernet menu
Enter your choice(1-3): 2
'.' = clear field; '-' = go to previous field; ^D = quit
Load File name
: S5300EI-V100R005C00SPC100.cc S5300EIV100R005C00SPC100.cc

Switch IP address
Server IP address
FTP User Name
FTP User Password

:
:
:
:

192.168.0.20
192.168.0.22
huawei
huawei

Starting to write BOOTLINE into flash ... done


BOOTLINE

SUBMENU

1. Set TFTP protocol parameters


2. Set FTP protocol parameters
3. Return to ethernet menu
Enter your choice(1-3): 3
ETHERNET
1.
system
2.
3.
4.

SUBMENU

Download file to SDRAM through ethernet interface and reboot the


Download file to Flash through ethernet interface
Modify ethernet interface boot parameter
Return to main menu

Enter your choice(1-4): 2


boot device
unit number
processor number
host name
file name
inet on ethernet (e)
host inet (h)
user (u)
ftp password (pw)
flags (f)
target name (tn)

:
:
:
:
:
:
:
:
:
:
:

mottsec
0
0
host
S5300EI-V100R005C00SPC100.cc
192.168.0.20
192.168.0.22
huawei
huawei
0x0
V1R5SPC100.cc

Attached TCP/IP interface to mottsec0.


Warning: no netmask specified.
Attaching network interface lo0... done.
Loading...
Read file to sdram .............Done

4. After the new software is downloaded we can set the new software as startup software:
BOOTROM
1.
2.
3.
4.
5.
6.
7.
Enter
Enter
Enter
Enter
Enter
Enter

MENU

Boot with default mode


Enter serial submenu
Enter startup submenu
Enter ethernet submenu
Enter filesystem submenu
Modify BOOTROM password
Reboot
your
your
your
your
your
your

choice(1-7):
choice(1-7):
choice(1-7):
choice(1-7):
choice(1-7):
choice(1-7):

Enter your choice(1-7):


Enter your choice(1-7): 3
Startup Configuration Submenu
1. Display startup configuration
2. Modify startup configuration
3. Return to main menu
Enter your choice(1-3): 1
Current startup configuration
startup type
: Flash
startup file
: s5300ei-v100r005c00spc100.cc
configuration file: vrpcfg.cfg
license file
:
patch package
:
Last time startup state : Success
Latest successful startup configuration
startup file
: S5300EI-V100R005C00SPC100.cc
configuration file: vrpcfg.cfg
license file
:
patch package
:
Startup Configuration Submenu
1. Display startup configuration
2. Modify startup configuration
3. Return to main menu
Enter your choice(1-3): 2
Note: startup file field can not be cleared
'.'=clear field; '^D'=quit; Enter=use current configuration
startup type(1: Flash
current: 1
new
: 1

2: Server)

Flash startup file (can not be cleared)


current: SV100R002C02B093_for_5300.cc
new
: s5300ei-v100r005c00spc100.cc
saved-configuration file
current: vrpcfg.cfg
new
: vrpcfg.cfg
license file
current:
new
:
patch package
current:
new
:
Startup Configuration Submenu
1. Display startup configuration
2. Modify startup configuration
3. Return to main menu

Enter your choice(1-3): 3


BOOTROM
1.
2.
3.
4.
5.
6.
7.

MENU

Boot with default mode


Enter serial submenu
Enter startup submenu
Enter ethernet submenu
Enter filesystem submenu
Modify BOOTROM password
Reboot

Enter your choice(1-7): 7

If you choose 5 you will enter filesystem submenu. From this level you can display files
stored in flash and execute some operation on these files. Sometimes it is very usefull if you
do not have enough space in flash to download a new software. In this case you can format
flash and then follow procedure of software downloading from bootrom menu. I had such
case for example on S3300 switch where flash memory has not enough space to store 2
software versions.
BOOTROM
1.
2.
3.
4.
5.
6.
7.

MENU

Boot with default mode


Enter serial submenu
Enter startup submenu
Enter ethernet submenu
Enter filesystem submenu
Modify BOOTROM password
Reboot

Enter your choice(1-7): 5


FILESYSTEM SUBMENU
1.
2.
3.
4.
5.
6.
7.
8.
9.

Erase Flash
Format flash
Delete file from Flash
Rename file from Flash
Display Flash files
Update EPLD file
Update FPGA file
Update FansCard File
Return to main menu

Enter your choice(1-9):

It is also possible to enter boot-up diag submenu by using Ctrl+E shortcut


BOOTROM
1.
2.
3.
4.
5.
6.
7.

MENU

Boot with default mode


Enter serial submenu
Enter startup submenu
Enter ethernet submenu
Enter filesystem submenu
Modify BOOTROM password
Reboot

Enter your choice(1-7):


BOOT-UP DIAG MENU
1.
3.
5.
7.
9.
11.
Enter

Sdram Test
Epld Test
RTC Test
Aging Test
Reserved
Reserved
your choice(1-12):

2.
4.
6.
8.
10.
12.

Flash Test
Temperature Test
Show system information
E-Label Barcode and MAC Test
Reserved
Return MainMenu

Please remember that in older bootrom versions it is necessary to use Ctrl+Z shortcut to make
some additional functions visible in bootrom menu. The bootrom menu can be different on
different devices but after reading this post you will deal with them.
Any questions, anything is not clear for you, do not hesitate to ask me. Please be invite to
write your comments.