Networking NVIDIA NVOS User Manual for InfiniBand Switches

Configuration Management

NVOS provides commands to create, view, modify, compare, apply, and save configurations. For the commands, see Configuration Management Commands.

Managing Configurations as Revisions

NVOS manages the system configuration as revisions. Each configuration change creates a revision, so you can track, compare, and revert changes.

  • Creating Revisions:

    • When you set a configuration with an nv set command, NVOS automatically creates a new revision.

    • Later commands are added to the most recent revision.

    • To apply a revision to the system, run nv config apply.

    • After you apply a revision, it becomes the applied revision and you can no longer modify it.

    • Each revision includes metadata such as the revision ID, timestamp, the user who made the change, and the method of application (for example, CLI or API).

  • Viewing Revisions:

    • Use the nv config revision command to list all stored revisions. This provides a chronological history of all configuration changes made on the system.

  • Tracking Changes:

    • The nv config history command provides detailed information about revisions, including who made the changes, when they were made, and how they were applied.

  • Comparing Revisions:

    • Use nv config diff <revision> <revision> to identify differences between two revisions.

    • Compare the current pending configuration with the applied configuration to preview changes before applying them.

  • Reverting to a Previous Revision:

    • If a configuration change causes issues, revert to a previous revision using nv config apply <revision>.

    • This restores the system to a stable state without re-entering the configuration manually.

  • Persistence:

    • Changes made to configurations do not persist after a reboot unless explicitly saved using nv config save. Saving writes the current configuration to the startup file, making it the default state after a system restart.

  • Patch/Replace Configuration:

    • You can run several nv set and nv unset commands, or a YAML file, as a single atomic transaction through the CLI or the REST API.

    • Use nv config patch <file> to update the pending revision with the configuration in a file, or nv config replace <file> to replace the pending revision.

    • You submit the commands as plain text, and they run as an all-or-nothing operation: if any command fails, NVOS rejects the whole batch and the revision does not change.

    • Abbreviated command syntax is supported. You can also patch security commands in which sensitive information is replaced with a hashed value.

    • Errors are reported in detail, including the line numbers of invalid commands.

  • Verifying Revisions:

    • The nv config verify command performs a dry run that validates the configuration changes before you apply them.

    • The pending revision does not change, so you can continue to edit it or apply it.

  • Finding Commands and Schema Paths:

    • Use nv config find <search-string> to search the configuration command tree for commands that match a specified string.

    • Use nv config lookup <search-path> to retrieve information about a specified object model or schema path.

Restoring Factory Default Configuration

Restore the factory default configuration when the configuration is corrupted, or when you need to start the system with the default configuration (for example, when you move the system to a new network).

The keep parameter sets the level of the factory reset. Each option determines which parts of the system configuration, files, and logs are kept or erased. The options are:

  1. Full factory reset (default): If you do not specify a keep option, NVOS performs a full reset, which erases all the configuration settings, system files, and log files.

    admin@nvos:~$ nv action reset system factory-default
    
  2. keep all-config: Keeps the whole system configuration and removes the system files and log files. Use this option to keep the configuration but clear the logs and system files.

    admin@nvos:~$ nv action reset system factory-default keep all-config
    
  3. keep basic: Keeps only the basic configuration needed for system connectivity, and removes the rest of the configuration, the system files, and the log files. NVOS keeps the following settings:

    1. Management interface (eth0, eth1)

    2. Local AAA users and their roles

    3. Password hardening rules

    4. SSH server configuration

    5. DNS server configuration

    admin@nvos:~$ nv action reset system factory-default keep basic
    
  4. keep only-files: Removes the whole system configuration and keeps the system files and log files. This is useful for debugging when you need to clear the configuration.

    admin@nvos:~$ nv action reset system factory-default keep only-files
    

When you perform a factory reset, the SSD password is reset to the default password value.

Factory Reset Behavior and Recovery

When you run the following factory reset command, NVOS completes the factory reset process within a few minutes and then reboots the switch automatically:

admin@nvos:~$ nv action reset system factory-default

A manual reboot is not required during the factory reset process.

Do not power cycle or power off the switch while the factory reset is in progress. If the system is powered off unexpectedly during the reset, the NVOS file system might become corrupted.

If the NVOS file system becomes corrupted, the switch might fail to boot, or it might boot successfully but fail to start critical applications.

To recover the system, use one of the following procedures:

If NVOS Does Not Boot

Re-manufacture the switch through the ONIE menu.

If NVOS Boots but Critical Applications Fail to Start

Run the following command from the Linux shell:

docker system prune -a --volumes

Then trigger the factory reset again using the force option:

admin@nvos:~$ nv action reset system factory-default force

Wait for the system to complete the reset and reboot automatically.

Last updated: