beautypg.com

Loading files at the cli, Loading files by using ftp – H3C Technologies H3C S5120 Series Switches User Manual

Page 68

background image

60

After loading the boot file, the switch displays that you should configure the application attribute, that is,

main, backup, or none. Type a specific attribute to complete loading the boot file.

Writing flash..................................................................

................Done!

Please input the file attribute (Main/Backup/None) M

Done!

NOTE:

If a boot file with a specific attribute already exists when you set a new file with the attribute, the attribute
of the existing file becomes none after the new file becomes effective.

Loading files at the CLI

By connecting a terminal to the switch, you can load the Boot ROM and boot files of the switch remotely

at the CLI.

Loading files by using FTP

Run FTP Server on the local host, configure username admin and the password, and specify the path of

the file to be downloaded (suppose the IP address of the FTP server is 10.10.110.1). Then, telnet to the

switch and send the host program file to the switch using FTP.
Assume the Boot ROM and boot files are stored in the file named update.bin, follow these steps after you

telnet to the switch.

Step1

Download the file to the switch by using FTP.

ftp 10.10.110.1

Trying ...

Press CTRL+K to abort

Connected.

220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user

User(none):admin

331 Give me your password, please

Password:

230 Logged in successfully

[ftp] get update.bin update.bin

[ftp] bye

Step2

Load the Boot ROM file.

bootrom update file update.bin

This command will update bootrom file on the specified board(s), Continue? [Y/N]:y

Now updating bootrom, please wait...

Step3

Load the boot file, and specify the file as the main boot file.

boot-loader file update.bin main

This command will set the boot file. Continue? [Y/N]:y

The specified file will be used as the main boot file at the next reboot on slot 1!

display boot-loader

Current boot app is: flash:/update.bin

Next main boot app is: flash:/update.bin