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.

Aborted - 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.

Aborted - Timed out while waiting to receive ZTP options

The switch did not receive information from the DHCP server and it has been 10 minutes or longer since the switch was booted.

Aborted - 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.

TFTP server information unavailable

The switch did not receive the IP address of the TFTP server in the DHCP offer.

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.

switch# show ztp information
TFTP Server        : 10.0.0.2
Image File         : switchfile.swi
Configuration File : ztp.cfg
Status             : Success

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

switch# show ztp information
TFTP Server        : 10.0.0.2
Image File         : switchfile.swi
Configuration File : NA
ZTP Status         : Success

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

switch# show ztp information
TFTP Server        : 10.0.0.2
Image File         : switchfile.swi
Configuration File : ztp.cfg
Status             : Failed - TFTP server unreachable

In the following example, the ZTP operation was stopped because the DHCP server did not provide options within 10 minutes of initial switch boot.

switch# show ztp information
TFTP Server        : NA
Image File         : NA
Configuration File : NA
Status             : Aborted - Timed out while waiting to receive ZTP options

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         : switchfile.swi
Configuration File : ztp.cfg
Status             : Aborted - Custom startup configuration detected