Networking NVIDIA NVOS User Manual for InfiniBand Switches

Zero-Touch Provisioning Commands

nv show system ztp


nv show system ztp

Shows global ZTP status and the status for each section.

Syntax Description

N/A


Default

N/A

History


25.02.2002 


25.02.3000

 Updated command output


Example

admin@nvos:~$ nv show system ztp
             operational  applied
-----------  -----------  --------
runtime      03m 53s
service      enabled
source       dhcp6-opt59
status       success
config-save  disabled     disabled

ZTP stages
=============
    Stage                   Exit Status  Ignore Result  Runtime  Status
    ----------------------  -----------  -------------  -------  -------
    00-image                success      no             31s      success
    01-connectivity-check   success      no             03s      success
    03-startup-file         success      no             51s      success
    05-commands-list        success      no             31s      success
    10-connectivity-check   success      no             03s      success
    11-provisioning-script  success      no             02s      success

REST API

GET https://<ip>/nvue_v1/system/ztp

Related Commands

nv set system ztp config-save
nv action run system ztp

Notes


nv set system ztp config-save

 

nv set system ztp config-save <enabled | disabled>

Allows or blocks the nv config save command while ZTP is active.

Syntax Description

enabled

Allows the nv config save command while ZTP is active.

disabled

Blocks the nv config save command while ZTP is active.

Default

disabled

History


25.02.2002 


Example

admin@nvos:~$ nv set system ztp config-save enabled
admin@nvos:~$ nv config apply
admin@nvos:~$ nv config save

REST API

PATCH https://<ip>/nvue_v1/system/ztp

Related Commands

nv show system ztp

Notes

While ZTP is active, the switch blocks the nv config save command, because saving the configuration might interfere with ZTP. After you run nv set system ztp config-save enabled and nv config apply, you can run nv config save; saving the configuration disables ZTP.

Exception: If the ZTP JSON configuration file sets "save-config": true, ZTP saves the configuration automatically when it finishes, and then ZTP is disabled. In this case, you do not need to run nv set system ztp config-save.

nv action system ztp


nv action abort system ztp [force]
nv action run system ztp [force] [vrf <vrf-name>]

Stops a ZTP session that is in progress, or starts a new ZTP session from the beginning.

Syntax Description

abort

Stops the ZTP session that is in progress.

run

Starts a new ZTP session from the beginning. Use this command to restart ZTP manually, for example, after ZTP fails or you stop it.

force

Skips the confirmation prompt. By default, action commands ask you to confirm before they run.

vrf <vrf-name>

Runs ZTP in the specified VRF (run only).

Default

N/A

History


25.02.2002 


Example

admin@nvos:~$ nv action abort system ztp
The operation will perform abort of the ZTP.
Type [y] to perform abort of the ZTP.
Type [N] to cancel an action.

Do you want to continue? [y/N] y
Action executing ...
Aborting ZTP session
Action executing ...
Action succeeded

admin@nvos:~$ nv action run system ztp
The operation will perform rerun of the ZTP.
Type [y] to perform rerun of the ZTP.
Type [N] to cancel an action.

Do you want to continue? [y/N] y
Action executing ...
Rerunning ZTP session
Action executing ...
Action succeeded

REST API

POST https://<ip>/nvue_v1/system/ztp/@abort
POST https://<ip>/nvue_v1/system/ztp/@run

Related Commands

nv show system ztp

Notes

nv action run system ztp starts ZTP only if the system has no configuration. To start ZTP on a configured switch, clear the configuration first, or run nv action reset system factory-default.

Last updated: