OcNOS-RON : Licensing Guide : Install, License, and Upgrade Command Reference : Firmware Upgrade Commands
Firmware Upgrade Commands
This chapter describes the firmware upgrade commands.
onie-firmware download
Use this command to download the firmware package from a network path or a USB mount path.
Note: http, ftp, tftp and file protocol schemes are supported.
Command Syntax
onie-firmware download URL (|vrf management)
Parameters
URL
Firmware package URL
vrf management
Management VRF
Default
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
>onie-firmware download http://10.12.28.115/umakant/as7716_24sc-pak-v1.0.0.4_zz.updater vrf management
############################################################################ 100.0%
 
onie-firmware list
Use this command to display a list of firmware packages downloaded using onie-firmware download command.
Note: User downloaded packages must be copied to /firmware directory, to get listed here.
Command Syntax
onie-firmware list
Parameters
None
Default
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
>onie-firmware list
as7716_24sc-pak-v1.0.0.4_zz.updater
 
onie-firmware remove
Use this command to remove firmware packages listed in onie-firmware list command, from device filesystem.
Command Syntax
onie-firmware remove FILE
Parameters
FILE
Firmware package name
Default
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
>onie-firmware remove as7716_24sc-pak-v1.0.0.4_zz.updater
onie-firmware stage
Use this command to stage the firmware package for upgrade, which can be triggered using the CLI onie-firmware upgrade.
Command Syntax
onie-firmware stage FILE
Parameters
FILE
Firmware package name
Default
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
#onie-firmware stage as7716_24sc-pak-v1.0.0.4_zz.updater
Staging firmware update: /tmp/firmware/as7716_24sc-pak-v1.0.0.4_zz.updater
 
onie-firmware unstage
Use this command to remove the staged firmware package.
Command Syntax
onie-firmware unstage FILE
Parameters
FILE
Firmware package name
Default
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
#onie-firmware unstage as7716_24sc-pak-v1.0.0.4_zz.updater
Removing pending firmware update: as7716_24sc-pak-v1.0.0.4_zz.updater
 
onie-firmware upgrade
Use this command to install the staged firmware packages. This command will reboot the switch in firmware update mode and installs the staged firmware. After the installation switch will boot with OcNOS, Use show onie-firmware update-results command to view the results of firmware upgrade.
Command Syntax
onie-firmware upgrade
Parameters
None
Default
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
#onie-firmware upgrade
Please make sure the device running config is saved, enter 'y' to continue (y/n):y
Device rebooted by ocnos user from cmlsh at time:Tue Apr 2 13:28:43 2019
 
show onie-firmware staged
Use this command to view the staged firmware packages for firmware upgrade.
Command Syntax
show onie-firmware staged
Parameters
None
Default
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
#show onie-firmware staged
Name | Version | Attempts |Size (Bytes) | Date
===============+=============+======+=====+=========+=================
as7716_24sc-pak-v1.0.0.4_zz.updater | 1.0.0.4 | 0 | 3405652 | 2019-04-02 12:27:32
===============+=============+======+=====+=========+=================
 
show onie-firmware update-results
Use this command to view the result of firmware upgrade performed via onie-firmware upgrade command.
Command Syntax
show onie-firmware update-results (| FILE)
Parameters
FILE
Firmware package name
Default
None
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
#show onie-firmware update-results
Name | Version | Result | Date
=============================+============+=======+==================
as7716_24sc-pak-v1.0.0.4_zz.updater | 1.0.0.4 | Success | 2019-04-02 13:35:07
onie-updater | 2017.11.00.03 | Success | 2000-01-01 00:00:59
=============================+============+=======+==================
 
#show onie-firmware update-results as7716_24sc-pak-v1.0.0.4_zz.updater
Name | Version | Result | Date
=============================+=========+==========+====================
as7716_24sc-pak-v1.0.0.4_zz.updater | 1.0.0.4 | Success | 2019-04-02 13:35:07
=============================+=========+==========+====================
Additional firmware update results information:
onie_update_status_code=0
onie_update_image_url=/mnt/onie-boot/onie/update/pending/as7716_24sc-pak-v1.0.0.4_zz.updater
image_arch="x86_64"
image_vendor_id="259"
image_machine="accton_as7716_24sc"
image_machine_rev="0"
image_type="CPLD1, CPLD23, CPLD CPU"
image_version=1.0.0.4
image_build_date="2021-05-04T17:17+0800"
updater_version="Tue May 4 11:08:09 2021 +0800"
board_version_cpld23="07,07h"
image_version_cpld23="h"
board_version_cpld1="0x07"
image_version_cpld1="h"
board_version_cpld_cpu="40h"
image_version_cpld_cpu="h"
update_start_system_time=1554211888
unlock_bus_duration=12
run_reboot_duration=101
lock_bus_duration=11
update_cpld23_done=yes
update_cpld23_ret=0
update_cpld23_duration=21
update_cpld23_retry_times=0
update_cpld1_done=yes
update_cpld1_ret=0
update_cpld1_duration=58
update_cpld1_retry_times=0
update_cpld_cpu_done=yes
update_cpld_cpu_ret=0
update_cpld_cpu_duration=9
update_cpld_cpu_retry_times=0
update_total_duration=219
update_finish_system_time=1554212107