Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

show system ztp

 

Syntax

Release Information

Command introduced in Junos OS Evolved Release 19.1R1.

Description

Show Zero Touch Provisioning (ZTP) state information.

Required Privilege Level

view

List of Sample Output

show system ztp

Output Fields

For a description of the output fields, see Table 1. Output fields are listed in the approximate order in which they appear. The state field can have multiple settings. The rest of the fields are self explanatory based on DHCP arguments provided by the server.

Table 1: show system ztp Output Fields

Field Name

Description

ZtpState

ZTP state field values for starting:

  • INITIALIZED—ZTP is initializing.

  • STARTED—ZTP started running.

 

ZTP state field values for image download:

  • IMAGE_DOWNLOADING—ZTP is downloading the next software image.

  • IMAGE_DOWNLOADED—ZTP is finished downloading the next software image.

  • RETRY_IMAGE_DOWNLOAD—ZTP is retrying image download.

  • IMAGE_NOT_FOUND—ZTP could not find the image at the specified location on the server.

ZTP state field values for configuration download:

  • CONFIG_DOWNLOADING—ZTP is downloading the configuration.

  • CONFIG_DOWNLOADED—ZTP is finished downloading the configuration.

  • RETRY_CONFIG_DOWNLOAD—ZTP is retrying configuration download.

  • CONFIG_NOT_FOUND—ZTP could not find the configuration.

ZTP state field values for upgrading configuration:

  • IMAGE_CONFIG_UPGRADING—ZTP got an image and a configuration from the server.

  • CONFIG_UPGRADING—ZTP is upgrading the configuration.

ZTP state field values for upgrading image:

  • RETRY_IMAGE_UPGRADE—ZTP is retrying image upgrade.

  • IMAGE_CONFIG_UPGRADING—ZTP got an image and a configuration from the server.

  • IMAGE_UPGRADING—ZTP is downloading the image.

  • IMAGE_UPGRADED—ZTP is finished upgrading the image.

ZTP state field values for scripts:

  • SCRIPT_UPGRADING—ZTP is running the script provided by server.

  • SCRIPT_UPGRADED—ZTP is finished upgrading the script.

  • SCRIPT_UPGRADE_SUCCEEDED—ZTP script upgrade finished with success.

  • SCRIPT_UPGRADE_FAILED—ZTP script upgrade finished with failure status.

ZTP state field values for reboot:

  • REBOOTING—ZTP is rebooting the system.

  • REBOOTED—ZTP is finished rebooting the system.

ZTP state field values for configuration commit:

  • CONFIG_COMMIT_SUCCEEDED—ZTP succeeded in committing user configuration.

  • CONFIG_COMMIT_FAILED—ZTP user configuration commit failed.

ZTP state field values for finishing:

  • FAILED—ZTP failed.

  • SUCCEEDED—ZTP succeeded.

ZtpInterface

Name of interface.

FtpIpAddr

IP address.

DefaultRouter

When the log server, NTP server, or FTP server are on a remote subnet, the value of DefaultRouter is used to configure a route to reach the servers.

LogServers

ZTP allows specification of a remote log server address. ZTP logs are then streamed to the remote log server.

NtpServers

ZTP allows specification of a remote NTP server address.

TransferMode

Options for TransferMode are ftp, tftp, http, or https

ImageFileType

It can be a symbolic link.

ConfigFileName

Configuration filename.

ConfigUrl

Configuration URL.

ConfigStatus

This field specifies whether the config file is downloading, is downloaded, or the download is being retried.

ZtpRetryCount

If the ZTP state machine, which applies the image and configuration, fails, the number of retries attempted.

DhcpRetryCount

If the DHCP state machine, which fetches parameters for ZTP from the DHCP server, fails, the number of times it retries.

ZTP State History

Lists the last 10 state transitions by Time (date and time) and Description or which state it was in then.

Sample Output

show system ztp

user@host> show system ztp