For examples of how to use each REST API command type, see the following sections:
-
GET: View a Configuration
-
PATCH: Make a Configuration Change
-
POST: Action Operations
-
DELETE: Unset a Configuration Change
Version
nv show system version
|
|
Shows system version information, including the ONIE, kernel, base OS, and product release versions, and the build ID and build date of the system image. |
||
|
Syntax Description |
N/A |
||
|
Default |
N/A |
||
|
History |
25.02.2002 25.02.5002
|
||
|
Example |
|
||
|
REST API |
|
||
|
Related Commands |
|
||
Image
nv show system image
|
|
Shows system image information, including the current partition, the partition to boot from next, and the image build ID in each partition. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.2002 25.02.3000
|
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
nv show system version image
|
|
Shows the build ID and build date of the system image. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.5002 |
|
|
Example |
|
|
|
REST API |
|
|
nv show system version packages installed
|
|
Shows the software packages installed on the system. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.5002 |
|
|
Example |
|
|
|
REST API |
|
|
nv show system version packages installed id
|
|
Shows information about a specific installed software package. |
|
|
Syntax Description |
|
The package name, for example, |
|
Default |
N/A |
|
|
History |
25.02.5002 |
|
|
Example |
|
|
|
REST API |
|
|
nv show system image files
|
|
Shows the image files available on the switch. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
nv action fetch system image
|
|
Fetches (downloads) an image file from a remote server to the switch. |
||
|
Syntax Description |
|
|
|
|
Default |
N/A |
||
|
History |
25.02.2002 |
||
|
Example |
|
||
|
REST API |
|
||
|
Related Commands |
|
||
|
Notes |
Using HTTPS requires the remote server to have a valid CA certificate. |
||
nv action install system image files
|
|
Installs a system image file. By default, the system reboots after the installation. |
|
|
Syntax Description |
|
The image file to install. To list the available image files, run |
|
|
Specifies whether to reboot the system after the installation: |
|
|
|
Installs the image and reboots the system without prompting for confirmation. |
|
|
issu |
Installs the image in ISSU (In-Service Software Upgrade) mode, without a reboot. |
|
|
skip-sm |
Skips the Subnet Manager (SM) confirmation for ISSU. Use it only when the SM is not available. |
|
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
|
Notes |
If you run the command for an image that is already installed on the other partition, the command does not install the image again; it only changes the |
|
nv action rename system image files
|
|
Renames an image file. |
||
|
Syntax Description |
|
The name of the image file to rename. |
|
|
|
The new name for the image file. |
||
|
Default |
N/A |
||
|
History |
25.02.2002 |
||
|
Example |
|
||
|
REST API |
|
||
|
Related Commands |
|
||
nv action upload system image files
|
|
Uploads an image file to a remote server. |
|
|
Syntax Description |
|
The image file to upload. |
|
|
Remote URL path to upload the file to.
|
|
|
Default |
N/A |
|
|
History |
25.02.2002 25.02.4002
|
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
nv action uninstall system image
|
|
Uninstalls unused images (images that are not the current image or the boot-next image). |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
nv action delete system image files
|
|
Deletes an image file from the switch. |
||
|
Syntax Description |
|
The image file name. |
|
|
Default |
N/A |
||
|
History |
25.02.2002 |
||
|
Example |
|
||
|
REST API |
|
||
|
Related Commands |
|
||
nv action uninstall system image force
|
|
Uninstalls unused images, including an image that is set as the boot-next image. |
|
|
Syntax Description |
|
Uninstalls the image even if it is set as the boot-next image. |
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
|
Notes |
To see the current image and the boot-next image, run the |
|
nv action boot-next system image
|
|
Sets the partition (system image) to boot from at the next reboot. |
|
|
Syntax Description |
|
The partition to boot from: |
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
|
Notes |
|
|
Firmware
nv show platform firmware
|
|
Shows firmware information for platform components, such as the ASIC, BIOS, CPLD, SSD, and transceivers. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
nv show platform firmware id
|
|
Shows firmware information for a specific platform component, such as the ASIC, BIOS, CPLD, SSD, or transceiver. |
|
|
Syntax Description |
|
The platform component name, for example, ASIC, BIOS, or transceiver. |
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
nv show platform firmware files
|
|
Shows the firmware files available for a specific platform component, such as the ASIC, BIOS, CPLD, or transceiver. |
|
|
Syntax Description |
|
The platform component name, for example, ASIC, BIOS, or transceiver. |
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
nv set/unset platform firmware
|
|
Sets the firmware auto-update state and the firmware source for the ASIC or BIOS. The unset command restores the default. |
|
|
Syntax Description |
|
The platform component: |
|
|
Turns automatic firmware update on or off for the component: |
|
|
|
The firmware source for the component: |
|
|
Default |
|
ASIC: |
|
|
|
|
|
History |
25.02.2002 25.02.6007
|
|
|
Example |
|
|
|
REST API |
|
|
|
Notes |
BIOS configuration is not available on systems with a BMC. |
|
nv action install platform firmware files
|
|
Installs a firmware file on a platform component. |
|
|
Syntax Description |
|
The platform component name, for example, ASIC, BIOS, SSD, or transceiver. |
|
|
The firmware file name. To list the available files, run |
|
|
|
Installs the firmware without prompting for confirmation. |
|
|
|
Skips the reboot after the firmware installation, even if you specify |
|
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
|
Notes |
|
|
nv action delete platform firmware files
|
|
Deletes a firmware file for a specific platform component, such as the ASIC, BIOS, CPLD, or transceiver. |
|
|
Syntax Description |
|
The platform component name, for example, ASIC, BIOS, or transceiver. |
|
|
The firmware file name. |
|
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
nv action rename platform firmware files
|
|
Renames a firmware file for a specific platform component, such as the ASIC, BIOS, CPLD, or transceiver. |
|
|
Syntax Description |
|
The platform component name, for example, ASIC, BIOS, or transceiver. |
|
|
The name of the firmware file to rename. |
|
|
|
The new name for the firmware file. |
|
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
nv action fetch platform firmware
|
|
Fetches (downloads) a firmware file from a remote server to the switch for a specific platform component, such as the ASIC, BIOS, CPLD, or transceiver. |
|
|
Syntax Description |
|
The platform component name, for example, ASIC, BIOS, or transceiver. |
|
|
|
|
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
nv action upload platform firmware files
|
|
Uploads a firmware file for a specific platform component, such as the ASIC, BIOS, CPLD, or transceiver, to a remote server. |
|
|
Syntax Description |
|
The platform component name, for example, ASIC, BIOS, or transceiver. |
|
|
The firmware file name. |
|
|
|
Remote URL path to upload the file to.
|
|
|
Default |
N/A |
|
|
History |
25.02.2002 25.02.4002
|
|
|
Example |
|
|
|
REST API |
|
|
|
Related Commands |
|
|
Last updated: