Updates the system firmware.
Note
As a best practice, do not list the password in the command line for security purposes. The user will be prompted for the password.Exec mode
This command is available only to users with admin role.
Host IP must be in the format of a valid IPv4 address.
Firmware images are .bin files with the version format, YearBorn.Major.Minor.Patch.
The following examples update the system firmware.
device# system firmware update system firmware update flash://firmware/TierraOS-21.1.1.0-NPB.bin device# system firmware update usb://TierraOS-21.1.1.0-NPB.bin device# system firmware update http://1.1.1.1:8000/path/TierraOS-21.1.0.0-NPB.bin device# system firmware update scp://test:pass@1.1.1.1/path/TierraOS-21.1.0.0-NPB.bin device# system firmware update sftp://test:pass@1.1.1.1/path/TierraOS-21.1.0.0-NPB.bin
The following examples show error messages for system firmware update.
Invalid URL format:
device# system firmware update temp.bin
temp.bin is not a valid URL format
Usage:
usb://<filename>
flash://firmware/<filename>
scp://<username>:<password>@<host>[:port]/<filepath>
sftp://<username>:<password>@<host>[:port]/<filepath>
http://[username:password@]<host>[:port]/<filepath>
https://[username:password@]<host>[:port]/<filepath>
Invalid host name or IP address:
device# system firmware update http://test.example.com:8000/home/test/filename.bin
Error: No such host test.example.com
# system firmware update http://1.1.1.1:8081/home/test/filename.bin
Error: Host IP not reachable
Invalid image file name:
device# system firmware update http://test.example.com:9000/home/test/filename.bin
Error: Input File does not exist
Invalid user credentials:
device# system firmware update scp://test:test@1.1.1.1/home/test/filename.bin
Error: Invalid user credentials
Invalid file type:
device# system firmware update scp://test:test@1.1.1.1/home/test/abc.txt
Error: File abc.txt is not the correct format for firmware images
Firmware version already installed:
device# system firmware update http://1.1.1.1:8000/home/test/TierraOS-21.1.0.0-NPB.bin
Activate failed with error: Activation failed - version TierraOS-21.1.0.0-NPB is already running
Checksum mismatch:
device# system firmware update http://1.1.1.1:8000/home/test/TierraOS-21.1.0.0-NPB.bin
Activate failed with error: Activation failed - Checksum mismatch for /var/data/firmware/ TierraOS-21.1.0.0-NPB.bin
Invalid firmware directory:
device# system firmware update flash://ms-images/TierraOS-21.1.1.0-NPB.bin
Firmware files should be in firmware directory and Microservices in ms-images directory
Pre-install script failure:
device# system firmware update http://1.1.1.1:8000/home/test/TierraOS-21.1.1.0-NPB.bin
Activate failed with error: Activation failed - PreInstall script failed with exit status 1
Downgrade validation failure:
device# system firmware update http://1.1.1.1:8000/home/test/TierraOS-21.1.1.0-NPB.bin
Activate failed with error: Activation failed - Downgrade validator failed with exit status 1
DB conversion failure:
device# system firmware update http://1.1.1.1:8000/home/test/TierraOS-21.1.0.0-NPB.bin
Activate failed with error: Activation failed - DB conversion failed with exit status 1
Invalid image file:
device# system firmware update flash://firmware/TierraOS-21.1.1.0-NPB.bin
File flash://firmware/TierraOS-21.1.10-NPB.bin does not exist
USB not enabled:
device# system firmware update usb://TierraOS-21.1.1.0-NPB.bin
Error: USB not enabled