NVUE Configuration
nv config apply
|
|
nv config apply [--assume-yes | -y | --assume-no | --confirm <time> | --confirm-status] Applies the pending configuration, which becomes the applied configuration. |
|
|
Syntax Description |
--assume-yes | -y | --assume-no |
Automatically answers yes (--assume-yes or -y) or no (--assume-no) to all prompts. |
|
--confirm |
Applies the configuration change, which you must then confirm. If you do not confirm within 10 minutes, the configuration rolls back automatically. To change the default time, specify the time argument. |
|
|
--confirm-status |
Shows the time left before the automatic rollback. |
|
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/revision/<revision-id> -H 'Content-Type: application/json' -d '{"state": "apply", "auto-prompt": {"ays": "ays_yes"}}' |
|
|
Related Commands |
|
|
|
Notes |
NVOS applies but does not save the configuration; the configuration does not persist after a reboot. |
|
nv config detach
|
|
nv config detach Detaches the configuration from the current pending configuration. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
DELETE https://<ip>/nvue_v1/revision/<revision-id> |
|
|
Related Commands |
|
|
|
Notes |
NVOS names the detached configuration pending and includes a timestamp with extra characters. For example: pending_20210128_212626_4WSY |
|
nv config diff
|
|
nv config diff [<revision> <revision>] [-o commands] [--expand] Shows differences between configurations, such as the pending configuration and the applied configuration or the detached configuration and the pending configuration. |
|
|
Syntax Description |
revision |
The revisions to compare: the pending, applied, detached, or startup configuration. |
|
-o commands |
Shows the differences as NVUE commands. |
|
|
--expand |
Shows the configuration in expanded form, without ranges. |
|
|
Default |
N/A |
|
|
History |
25.02.2002
25.02.6007 Added --expand option
|
|
|
Example |
|
|
|
REST API |
GET https://<ip>/nvue_v1/<resource>?rev=<rev-A>&diff=<rev-B> GET https://<ip>/nvue_v1/<resource>?rev=<rev-A>&diff=<rev-B>&expand=true |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv config find
|
|
nv config find <string> [-o commands] [--expand] Finds the parts of the applied configuration that match a string. |
|
|
Syntax Description |
string |
The search string. |
|
-o commands |
Shows the configuration as NVUE commands. |
|
|
--expand |
Shows the configuration in expanded form, without ranges. |
|
|
Default |
N/A |
|
|
History |
25.02.2002
25.02.6007 Added --expand option
|
|
|
Example |
|
|
|
REST API |
GET https://<ip>/nvue_v1/?rev=applied&filled=False&diff=&search-string=<string> GET https://<ip>/nvue_v1/?rev=applied&filled=False&diff=&search-string=<string>&expand=true |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv config history
|
|
nv config history <revision> Shows the apply history for the revision. |
|
|
Syntax Description |
revision |
The revision: the pending, applied, detached, or startup configuration, or a revision ID. |
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
GET https://<ip>/nvue_v1/revision/<revision-id>
|
|
|
Related Commands |
|
|
|
Notes |
|
|
nv config patch
|
|
nv config patch <file> Updates the pending configuration with the specified YAML configuration file or a text file containing NVUE commands. |
|
|
Syntax Description |
file |
The YAML configuration file, or a text file of NVUE commands. |
|
Default |
N/A |
|
|
History |
25.02.2002
25.02.6007 Added support for text file containing NVUE commands and added example
|
|
|
Example |
Example 1:
Example 2: A text file that contains NVUE commands:
|
|
|
REST API |
N/A |
|
|
Related Commands |
nv config apply |
|
|
Notes |
|
|
nv config replace
|
|
nv config replace <file> Replaces the pending configuration with the specified YAML configuration file or text file containing NVUE commands. |
|
|
Syntax Description |
file |
The YAML configuration file, or a text file of NVUE commands. |
|
Default |
N/A |
|
|
History |
25.02.2002
25.02.6007 Added support for text file containing NVUE commands and added example
|
|
|
Example |
|
|
|
REST API |
Create a revision: POST https://<ip>/nvue_v1/revision
|
|
|
Related Commands |
nv config apply |
|
|
Notes |
The replace operation removes the default ACL rules for the management ports. Add these rules explicitly to the new configuration file. |
|
nv config save
|
|
nv config save Overwrites the startup configuration with the applied configuration. The configuration persists after a reboot. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/revision/<revision-id> -H 'Content-Type: application/json' -d '{"state": "save", "auto-prompt": {"ays": "ays_yes"}}' |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv config show
|
|
nv config show [-o commands] [--expand] Shows the applied configuration in YAML format. |
|
|
Syntax Description |
-o commands |
Shows the applied configuration as NVUE commands. |
|
--expand |
Shows the configuration in expanded form, without ranges. |
|
|
Default |
N/A |
|
|
History |
25.02.2002
25.02.6007 Added --expand option
|
|
|
Example |
|
|
|
REST API |
GET https://<ip>/nvue_v1/?rev=applied&filled=false GET https://<ip>/nvue_v1/?rev=applied&filled=false&expand=true |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv show system config files
|
|
nv show system config files Lists the configuration files. |
|
Syntax Description |
N/A |
|
Default |
N/A |
|
History |
25.02.2002
|
|
Example |
|
|
REST API |
GET https://<ip>/nvue_v1/system/config/files |
|
Related Commands |
|
|
Notes |
|
nv show system config files id
|
|
nv show system config files <file-id> Shows the contents of a configuration file. |
|
|
Syntax Description |
file-id |
The name of the configuration file. |
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
GET https://<ip>/nvue_v1/system/config/files/<file-id> |
|
|
Related Commands |
|
|
|
Notes |
The command shows the contents of the file in a pager (less). |
|
nv show system config files brief
|
|
nv show system config files <file-id> brief Shows the name and path of a configuration file. |
|
|
Syntax Description |
file-id |
The name of the configuration file. |
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
GET https://<ip>/nvue_v1/system/config/files/<file-id> |
|
|
Related Commands |
|
|
|
Notes |
The command shows the path of the file instead of its contents. |
|
nv action export system config
|
|
nv action export system config <file-id> Exports the applied configuration to a configuration file. |
|
|
Syntax Description |
file-id |
The name of the new configuration file. |
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
POST https://<ip>/nvue_v1/system/config/files/<file-id> |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv action rename system config files
|
|
nv action rename system config files <file-id> <new-name> Renames a configuration file. |
|
|
Syntax Description |
file-id |
The name of the configuration file. |
|
new-name |
The new name of the file. |
|
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
POST https://<ip>/nvue_v1/system/config/files/<file-id> |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv action delete system config files
|
|
nv action delete system config files Deletes all the configuration files. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
POST https://<ip>/nvue_v1/system/config/files |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv action delete system config files id
|
|
nv action delete system config files <file-id> Deletes a configuration file. |
|
|
Syntax Description |
file-id |
The name of the configuration file. |
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
POST https://<ip>/nvue_v1/system/config/files/<file-id> |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv action upload system config files
|
|
nv action upload system config files <file-id> <remote-url> Uploads a configuration file to a remote server. |
|
|
Syntax Description |
file-id |
The name of the configuration file. |
|
remote-url |
Remote URL path to upload the file to.
|
|
|
Default |
N/A |
|
|
History |
25.02.2002
25.02.4002 : Added HTTPS support in remote-url
|
|
|
Example |
|
|
|
REST API |
POST https://<ip>/nvue_v1/system/config/files/<file-id> |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv action fetch system config
|
|
nv action fetch system config <remote-url> Fetches a configuration file from a remote server. |
|
|
Syntax Description |
remote-url |
|
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
POST https://<ip>/nvue_v1/system/config/files/<file-id> |
|
|
Related Commands |
|
|
|
Notes |
Alternatively, you can copy a configuration file from a host to the switch. Copy the file to the /host/config_files/ directory:
|
|
nv config lookup
|
|
nv config lookup <search-path> [revision options] Shows the configuration at an exact path in the configuration hierarchy. |
|
|
Syntax Description |
search-path |
The exact path in the configuration hierarchy, as a quoted, space-separated string. |
|
revision options |
The revision in which to look up the path, given as an option (for example, --pending). The default is applied. Options: |
|
|
Default |
N/A |
|
|
History |
|
|
|
Example |
|
|
|
||
|
REST API |
GET https://<ip>/nvue_v1/?rev=applied&filled=False&search-path=<search-path> GET https://<ip>/nvue_v1/?rev=applied&filled=False&search-path=<search-path>&expand=true |
|
|
Related Commands |
|
|
|
Notes |
The path must be exact and start at the top level. |
|
NVUE Configuration Verify
nv config verify
|
|
nv config verify
|
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.8008
|
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/config/verify |
|
|
Related Commands |
nv config apply |
|
|
Notes |
|
|
nv config verify revision
|
|
nv config verify revision <rev_id> Verifies an existing revision. The revision can be a revision ID (an integer) or a special revision, such as startup or empty. |
|
|
Syntax Description |
rev_id |
The revision ID. |
|
Default |
N/A |
|
|
History |
25.02.8008
|
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/config/verify/revision |
|
|
Related Commands |
nv config apply |
|
|
Notes |
|
|
nv config verify filename
|
|
nv config verify filename <file.yaml | file.txt> Verifies the configuration in a YAML or plain-text file. NVOS creates a temporary empty revision, replaces it with the file contents (as with |
|
|
Syntax Description |
file.yaml | file.txt |
The YAML or text file to verify. |
|
Default |
N/A |
|
|
History |
25.02.8008
|
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/config/verify/filename |
|
|
Related Commands |
nv config apply |
|
|
Notes |
|
|
Factory
nv action reset system factory-default
|
|
nv action reset system factory-default [force] Clears the system and resets it entirely to its factory state. |
|
|
Syntax Description
|
force |
Resets the configuration and reboots the switch regardless of the answer to the prompt. |
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
POST https://<ip>/nvue_v1/system/ |
|
|
Related Commands |
|
|
|
Notes |
|
|
Last updated: