H3C Switch Software Upgrade Guide-6W101

HomeSupportInstall & UpgradeUpgrade GuidesH3C Switch Software Upgrade Guide-6W101
11-Appendix A Downloading the upgrade file
Title Size Download
11-Appendix A Downloading the upgrade file 76.15 KB

Appendix A Downloading the upgrade file

The switch can function as the TFTP client, FTP client, or FTP server. For more information about FTP and TFTP, see the FTP and TFTP configuration in the fundamentals configuration guide.

Using FTP to download upgrade file

This section uses the switch as an FTP client to download files from an FTP server.

Downloading software images at the CLI

 

NOTE:

The BootWare menu varies by switch model and BootWare version. This section uses an S10500 switch as an example.

 

1.     Set up an upgrade environment as described in "Preparing for the upgrade."

2.     Run the FTP server program on a PC (its IP address is 192.168.0.23), and set the working directory, FTP username, and password. Store the upgrade file on the working directory of the FTP server.

3.     Make sure the PC and the switch can reach each other.

4.     Log in to the switch, and access the root directory of the storage medium for the startup software images.

<Sysname> cd flash:/

<Sysname>

 

 

NOTE:

If the storage medium to which the startup software images are downloaded is not the specified storage medium, access the root directory of the storage medium of startup software images before downloading the software images.

 

5.     Download the upgrade file (newest.ipe in this example) to the storage medium on the switch.

# Log in to the FTP server.

<Sysname> ftp 192.168.0.23

Connected to 192.168.0.23 (192.168.0.23).

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

User (192.168.0.23:(none)):username                     

331 Give me your password, please

Password:                                                

230 Logged in successfully

Remote system type is MSDOS.

ftp>

# Set the file transfer mode to binary.

ftp> binary

200 Type is Image (Binary)

# Download the upgrade file newest.ipe to the root directory of the storage medium.

ftp> get newest.ipe

227 Entering Passive Mode (192,168,0,23,7,100)

150 "C:\ newest.ipe " file ready to send (385 bytes) in in IMAGE / Binary mode

226 Transfer finished successfully.

74948608 bytes received in 35.974 seconds (896.00 kbyte/s)

ftp> bye

221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye

# Verify that the upgrade file has been in the root directory of the storage medium.

<Sysname> dir

# Use the MD5 algorithm to calculate the digest of the file, and compare it with the MD5 digest on the H3C website to verify file integrity.

<Sysname> md5sum newest.ipe

MD5 digest:

4f22b6190d151a167105df61c35f0917

Downloading software images from the BootWare menu

1.     Set up an upgrade environment as described in "Preparing for the upgrade."

2.     Run the FTP server program on a PC (its IP address is 192.168.0.23), and set the working directory, FTP username, and password. Store the upgrade file on the working directory of the FTP server.

3.     Run the terminal emulation program on the PC, and power on the switch. Press Ctrl+B at prompt to access the EXTENDED-BOOTWARE menu.

==========================<EXTENDED-BOOTWARE MENU>==========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> Skip Current System Configuration                                     |

|<7> BootWare Operation Menu                                               |

|<8> Skip Authentication for Console Login                                 |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Ctrl+C: Display Copyright

Enter your choice(0-9):

4.     (Optional.) Set the default storage medium.

 

IMPORTANT

IMPORTANT:

If the storage medium storing the upgrade file is not the default storage medium, set it as the default storage medium.

 

# Enter 9 to access the storage device submenu.

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

# Enter 2 to set the storage medium for storing the upgrade file.

Please set the operating device:

============================================================================

|Note:the operating device is flash                                        |

|NO.  Device Name  File System  Total Size  Available Space                |

|1    flash        YAFFS2       1048576KB   184920KB                       |

|0    Exit                                                                 |

============================================================================

Enter your choice(0-2):

# Enter 1 to set the flash memory as the storage medium for storing the upgrade file.

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

# Enter 3 to set the default storage medium.

Please set the default device:

============================================================================

|Note:the default device is flash                                          |

|NO.  Device Name  File System  Total Size  Available Space                |

|1    flash        YAFFS2       1048576KB   184920KB                       |

|0    Exit                                                                 |

============================================================================

Enter your choice(0-2):

# Enter 1 to set the flash memory as the default storage medium.

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

# Enter 0 to exit the storage device submenu.

5.     Download and upgrade the BootWare.

==========================<EXTENDED-BOOTWARE MENU>==========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> Skip Current System Configuration                                     |

|<7> BootWare Operation Menu                                               |

|<8> Skip Authentication for Console Login                                 |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Ctrl+C: Display Copyright

Enter your choice(0-9):

# Enter 3 to access the Ethernet submenu.

==========================<Enter Ethernet SubMenu>==========================

|Note:the operating device is flash                                        |

|<1> Download Image Program To SDRAM And Run                               |

|<2> Update Main Image File                                                |

|<3> Update Backup Image File                                              |

|<4> Download Files(*.*)                                                   |

|<5> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

|<Ensure The Parameter Be Modified Before Downloading!>                    |

============================================================================

Enter your choice(0-5):

# Enter 5 to configure the network settings.

==========================<ETHERNET PARAMETER SET>==========================

|Note:       '.' = Clear field.                                            |

|            '-' = Go to previous field.                                   |

|         Ctrl+D = Quit.                                                   |

============================================================================

Protocol (FTP or TFTP) :ftp

Load File Name         :newest.ipe

                       :

Target File Name       :newest.ipe

                       :

Server IP Address      :192.168.0.23

Local IP Address       :192.168.0.105

Subnet Mask            :255.255.255.0

Gateway IP Address     :0.0.0.0

FTP User Name          :xxx

FTP User Password      :***

Table 1 Network parameter fields and shortcut keys

Field

Description

'.' = Clear field

Press a dot (.) and then press Enter to clear the setting for a field.

'-' = Go to previous field

Press a hyphen (-) and then press Enter to return to the previous field.

Ctrl+D = Quit

Press Ctrl+D to exit the ETHERNET PARAMETER SET menu.

Protocol (FTP or TFTP)

Set the file transfer protocol to FTP or TFTP.

Load File Name

Set the name of the file to be downloaded.

Target File Name

Set a file name for saving the file on the switch. The target file name must have the same extension as the source file.

By default, the target file name is the same as the source file name.

Server IP Address

Set the IP address of the FTP or TFTP server.

Local IP Address

Set the IP address of the Ethernet interface that connects to the TFTP server.

Subnet Mask

Set the IP address mask.

Gateway IP Address

Set a gateway IP address if the switch is on a different network than the server.

 

After you finish setting the FTP parameters, the system returns to the Ethernet submenu. Choose option 2 to 3. For example, enter 2 to upgrade the main startup software images.

Loading.....................................................................

............................................................................

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

31911744 bytes downloaded!

Image file BOOT.bin is self-decompressing... Saving file flash:/ BOOT.bin ..............................................Done.

Image file SYSTEM.bin is self-decompressing...Saving file flash:/ SYSTEM.bin .................................. ..Done.

# Enter 0 in the Ethernet submenu to return to the EXTENDED-BOOTWARE menu.

# Enter 0 to reboot the switch.

Using TFTP to download software images

This section uses the switch as an FTP client to download files from an FTP server.

Downloading software images at the CLI

1.     Set up an upgrade environment as described in "Preparing for the upgrade."

2.     Run the TFTP server program on a PC (its IP address is 192.168.0.23), and set the working directory, TFTP username, and password. Store the upgrade file on the working directory of the TFTP server.

3.     Make sure the PC and the switch can reach each other.

4.     Log in to the switch, and access the root directory of the storage medium for the startup software images.

<Sysname> cd flash:/

<Sysname>

 

 

NOTE:

If the storage medium to which the startup software images are downloaded is not the specified storage medium, access the root directory of the storage medium of startup software images before downloading software images.

 

5.     Download the upgrade file (newest.ipe in this example) to the storage medium on the switch.

<Sysname> tftp 192.168.0.23 get newest.ipe

Press CTRL+C to abort.

   % Total    % Received % Xferd  Average Speed   Time    Time     Time   Current

                                  Dload  Upload   Total   Spent    Left   Speed

100 13.9M  100 13.9M    0     0  1206k      0  0:00:11  0:00:11  --:--:-- 1206k

Writing file...Done.

# Verify that the upgrade file has been in the root directory of the storage medium.

<Sysname> dir

# Use the MD5 algorithm to calculate the digest of the file, and compare it with the MD5 digest on the H3C website to verify file integrity.

<Sysname> md5sum newest.ipe

MD5 digest:

4f22b6190d151a167105df61c35f0917

Downloading software images from the BootWare menu

 

NOTE:

The BootWare menu varies by switch model and BootWare version. This section uses an S10500 switch as an example.

 

1.     Set up an upgrade environment as described in "Preparing for the upgrade."

2.     Run the TFTP server program on a PC (its IP address is 192.168.0.23), set the working directory, TFTP username, and password. Store the upgrade file on the working directory of the TFTP server.

3.     Run the terminal emulation program on the PC, and power on the switch. Press Ctrl+B at prompt to access the EXTENDED-BOOTWARE menu.

==========================<EXTENDED-BOOTWARE MENU>==========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> Skip Current System Configuration                                     |

|<7> BootWare Operation Menu                                               |

|<8> Skip Authentication for Console Login                                 |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Ctrl+C: Display Copyright

Enter your choice(0-9):

4.     (Optional.) Set the default storage medium for downloading the upgrade file.

 

IMPORTANT

IMPORTANT:

If the storage medium storing the upgrade file is not the default storage medium, set it as the default storage medium.

 

# Enter 9 to access the storage device submenu.

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

# Enter 2 to set the storage medium for storing the upgrade file.

Please set the operating device:

============================================================================

|Note:the operating device is flash                                        |

|NO.  Device Name  File System  Total Size  Available Space                |

|1    flash        YAFFS2       1048576KB   184920KB                       |

|0    Exit                                                                 |

============================================================================

Enter your choice(0-2):

# Enter 1 to set the flash memory as the storage medium for storing the upgrade file.

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

# Enter 3 to set the default storage medium.

Please set the default device:

============================================================================

|Note:the default device is flash                                          |

|NO.  Device Name  File System  Total Size  Available Space                |

|1    flash        YAFFS2       1048576KB   184920KB                       |

|0    Exit                                                                 |

============================================================================

Enter your choice(0-2):

# Enter 1 to set the flash memory as the default storage medium.

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

# Enter 0 to exit the storage device submenu.

5.     Download and upgrade the BootWare.

==========================<EXTENDED-BOOTWARE MENU>==========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> Skip Current System Configuration                                     |

|<7> BootWare Operation Menu                                               |

|<8> Skip Authentication for Console Login                                 |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Ctrl+C: Display Copyright

Enter your choice(0-9):

# Enter 3 to access the Ethernet submenu.

==========================<Enter Ethernet SubMenu>==========================

|Note:the operating device is flash                                        |

|<1> Download Image Program To SDRAM And Run                               |

|<2> Update Main Image File                                                |

|<3> Update Backup Image File                                              |

|<4> Download Files(*.*)                                                   |

|<5> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

|<Ensure The Parameter Be Modified Before Downloading!>                    |

============================================================================

Enter your choice(0-5)::

# Enter 5 to configure the network settings.

==========================<ETHERNET PARAMETER SET>==========================

|Note:       '.' = Clear field.                                            |

|            '-' = Go to previous field.                                   |

|         Ctrl+D = Quit.                                                   |

============================================================================

Protocol (FTP or TFTP) :tftp

Load File Name         :test.bin

                       :newest.ipe

Target File Name       :test.bin

                       :newest.ipe

Server IP Address      :192.168.0.23

Local IP Address       :192.168.0.105

Subnet Mask            :255.255.255.0

Gateway IP Address     :0.0.0.0

Table 2 Network parameter fields and shortcut keys

Field

Description

'.' = Clear field

Press a dot (.) and then press Enter to clear the setting for a field.

'-' = Go to previous field

Press a hyphen (-) and then press Enter to return to the previous field.

Ctrl+D = Quit

Press Ctrl+D to exit the ETHERNET PARAMETER SET menu.

Protocol (FTP or TFTP)

Set the file transfer protocol to FTP or TFTP.

Load File Name

Set the name of the file to be downloaded.

Target File Name

Set a file name for saving the file on the switch. The target file name must have the same extension as the source file.

By default, the target file name is the same as the source file name.

Server IP Address

Set the IP address of the FTP or TFTP server.

Local IP Address

Set the IP address of the Ethernet interface that connects to the TFTP server.

Subnet Mask

Set the IP address mask.

Gateway IP Address

Set a gateway IP address if the switch is on a different network than the server.

 

After you finish setting the FTP parameters, the system returns to the Ethernet submenu. Choose option 2 to 3. For example, enter 2 to upgrade the main startup software images.

Loading.....................................................................

............................................................................

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

31911744 bytes downloaded!

Image file BOOT.bin is self-decompressing... Saving file flash:/ BOOT.bin ..............................................Done.

Image file SYSTEM.bin is self-decompressing...Saving file flash:/ SYSTEM.bin .................................. ..Done.

# Enter 0 in the Ethernet submenu to return to the EXTENDED-BOOTWARE menu.

# Enter 0 to reboot the switch.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网