You are on page 1of 7

How to upgrade the PG1/PG2

Update with the Web GUI


1. Confirm no old firmware in the system before the upgrade

2. Copy the file from the server

You can use the ftp/scp server. Using the scp server for
example.
After about 1 minutes, you can see the following screen.

3. Kick off the firmware upgrade


Click the System -> Core -> Firmware. Click the UPGRADE to
kick off the upgrade.

After
about 40 seconds.

Click
the LOAD

The
switch will automatic reboot, you can access the switch
after 4 minutes. Please refresh the web page again.

Update with the ONS CLI commands


1. Check the current upgrade status before the upgrade
Command Syntax
show software-upgrade state
Run the command software upgrade cancel if the status is
not the NoInProgress.
Switch #show software-upgrade state

State ...................................
Detailed Info ...........................
Image Name ..............................
Target Bank .............................

NotInProgress
N/A
N/A
N/A

2. Copy the file from the tftp server


Command Syntax
copy <source> <destination>
This operation takes about 1 minute.
Not change the software upgrade state. Only copy the upgrade
image.
Switch # copy tftp://172.31.12.254/ons-paintedgorge-basic1.2.1_a.1441-1-upgrade.tar.gz flash:ons-paintedgorge-basic.tar.gz
Switch #show software-upgrade state
State ...................................
Detailed Info ...........................
Image Name ..............................
Target Bank .............................

NotInProgress
N/A
N/A
N/A

Switch #dir
File name
Size
----------------------------- --------ons-paintedgorge-basic.tar.gz 223257079

3. start the software upgrade


Command Syntax
software upgrade start<fileName>
This operation takes about 40 seconds.
Change the software upgrade state from the NotInProgress
toStarting, Started.
Switch #software upgrade start ons-paintedgorge-basic.tar.gz
Switch #show software-upgrade state
State ................................... Starting
Detailed Info ........................... Starting software
upgrade start actions.
Image Name .............................. None
Target Bank ............................. None

Switch #show software-upgrade state


State ................................... Started
Detailed Info ........................... Ready to load new
image file ons-paintedgorge-basic.tar.gz.
Image Name .............................. ons-paintedgorgebasic.tar.gz
Target Bank ............................. /dev/sda4

4. Load the upgrade software


Command Syntax

software upgrade Load

This operation takes about 11 minutes. The system will


automatic reboot.
Change the software upgrade state from Started to
Loading, Migrating, Loaded.
In fact sometimes the switch state is LoadingReady,please
reboot the switch to meet the above state change process.
Switch #software upgrade load
Switch #show software-upgrade state
State ................................... Loading
Detailed Info ........................... extracting new image
Image Name .............................. ons-paintedgorgebasic.tar.gz
Target Bank ............................. /dev/sda4
System will automatic reboot here.
Switch #show software-upgrade state
State ................................... Migrating
Detailed Info ........................... Migrating data.
Image Name .............................. ons-paintedgorgebasic.tar.gz
Target Bank ............................. /dev/sda4
Switch #show software-upgrade state
State ................................... Loaded
Detailed Info ........................... Data migration
complete.
Image Name .............................. ons-paintedgorgebasic.tar.gz
Target Bank ............................. /dev/sda4

5. Commit the software upgrade


Command Syntax
software upgrade upgrade
This operation takes about 2 minutes.
Change the software upgrade state from the Loaded to
Committing, NotInProgress.
Switch #software upgrade commit
Switch #show software-upgrade state
State ................................... Committing
Detailed Info ........................... Starting software
upgrade complete actions.
Image Name .............................. ons-paintedgorgebasic.tar.gz
Target Bank ............................. /dev/sda4
Switch #show software-upgrade state
State ................................... NotInProgress
Detailed Info ........................... Software upgrade
complete.
Image Name .............................. None
Target Bank ............................. None

You might also like