show ztp information

Syntax

show ztp information

Description

Shows information about Zero Touch Provisioning (ZTP) operations performed on the switch.

Command context

Operator (>) or Manager (#)

Authority

Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.

Usage

When a switch configured to use ZTP is booted from a factory default configuration, the switch contacts a DHCP server, which offers options for obtaining files used to provision the switch:

  • The IP address of the TFTP server

  • The name of the image file

  • The name of the configuration file

The show ztp information command shows the options offered by the DHCP server and the status of the ZTP operation.

The status of the ZTP operation is one of the following:

Success

The ZTP operation succeeded.

One of the following is true:

  • Both the running configuration and the startup configuration were updated.

  • The IP address of the TFTP server was received, but the offer did not include a configuration file or a firmware image file.

  • Any combination of vendor encapsulated DHCP options are received as configured, along with the firmware image and switch configuration file.

  • Only vendor encapsulated DHCP options are configured and are received accordingly.

Failed - Custom startup configuration detected

The switch was booted from a configuration that is not the factory default configuration. For example, the administrator password has been set.

Failed - Timed out while waiting to receive ZTP options

Either the switch received the DHCP IPv4 address but no ZTP options were received within 1 minute or ZTP force-provision is triggered and no ZTP options are received within 3 minutes.

Failed - Detected change in running configuration

The running configuration was modified by a user while the ZTP operation was in progress.

Failed - TFTP server unreachable

The TFTP server is not reachable at the specified IP address.

Failed - TFTP server information unavailable

The image file name or config file name is provided without the TFTP server location to fetch the files from and ZTP enters failed state.

Failed - Invalid configuration file received

Either the file transfer of the configuration file failed, or the configuration file is invalid (an error occurred while attempting to apply the configuration).

Failed - Invalid image file received

Either the file transfer of the firmware image file failed, or the firmware image file is invalid (an error occurred while verifying the image).

Examples

In the following example, the ZTP operation succeeded, and both an image file and a configuration file were provided.

VSF-10-Mbr# show ztp information
TFTP Server            : 10.1.84.160
Image File             : FL_10_06_0001CK.swi
Configuration File     : 102720-new-setup-config-updated.txt
Status                 : Success
Aruba Central Location : NA
Force-Provision        : Disabled
HTTP Proxy Location    : NA
VSF-10-Mbr#

In the following example, the ZTP option succeeded. A configuration file was not provided, but an image file was provided.

VSF-10-Mbr# show ztp information
TFTP Server            : 10.1.84.160
Image File             : TL_10_02_0001.swi
Configuration File     : NA
Status                 : Success
Aruba Central Location : NA
Force-Provision        : Disabled
HTTP Proxy Location    : NA
VSF-10-Mbr#

In the following example, the ZTP operation failed because the TFTP server was unreachable.

VSF-10-Mbr# show ztp information
TFTP Server            : 10.1.84.160
Image File             : TL_10_02_0001.swi
Configuration File     : 102720-new-setup-config-updated.txt
Status                 : Failed - TFTP server unreachable
Aruba Central Location : NA
Force-Provision        : Disabled
HTTP Proxy Location    : NA
VSF-10-Mbr#

In the following example, the ZTP operation was stopped because the switch did not receive any options from the DHCP server for ZTP within 1 minute of receiving the IP address from the server.

VSF-10-Mbr## show ztp information
TFTP Server            : NA
Image File             : NA
Configuration File     : NA
Status                 : Failed - Timed out while waiting to receive ZTP options
Aruba Central Location : NA
Force-Provision        : Disabled
HTTP Proxy Location    : NA
VSF-10-Mbr#

In the following example, the ZTP operation was stopped because the switch was booted from a configuration that was not the factory default configuration.

switch# show ztp information
TFTP Server            : 10.0.0.2
Image File             : TL_10_02_0001.swi
Configuration File     : ztp.cfg
Status                 : Failed - Custom startup configuration detected
Aruba Central Location : NA
Force-Provision        : Disabled
HTTP Proxy Location    : NA