show system ztp
Command introduced in Junos OS Evolved Release 19.1R1.
Show Zero Touch Provisioning (ZTP) state information.
Required Privilege Level
List of Sample Outputshow system ztp
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
ZTP state field values for starting:
ZTP state field values for image download:
ZTP state field values for configuration download:
ZTP state field values for upgrading configuration:
ZTP state field values for upgrading image:
ZTP state field values for scripts:
ZTP state field values for reboot:
ZTP state field values for configuration commit:
ZTP state field values for finishing:
Name of interface.
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.
ZTP allows specification of a remote log server address. ZTP logs are then streamed to the remote log server.
ZTP allows specification of a remote NTP server address.
Options for TransferMode are ftp, tftp, http, or https
It can be a symbolic link.
This field specifies whether the config file is downloading, is downloaded, or the download is being retried.
If the ZTP state machine, which applies the image and configuration, fails, the number of retries attempted.
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.
show system ztp
user@host> show system ztp
Attribute Value -------------------------- ZtpState IMAGE_CONFIG_UPGRADING ZtpInterface vmb0 FtpIpAddr 10.10.213.1 HostName sw-123 LogServers [u'10.10.213.1'] NtpServers [u'10.10.255.62', u'10.10.255.63'] TransferMode tftp ImageFileName /ZTP_IMAGES/test.iso ImageFileType None ImageUrl tftp://220.127.116.11//ZTP_IMAGES/junos-evo-scapa.iso ImageStatus IMAGE_DOWNLOADED ConfigFileName /ZTP_CONFIG/sw-123.cfg ConfigUrl tftp://10.10.213.1//ZTP_CONFIG/sw-123.cfg ConfigStatus CONFIG_DOWNLOADED ZtpRetryCount 0 DhcpRetryCount 0 ZTP State History(last 10 transitions) Time Description Fri Jun 5 22:35:40 2020 Started Fri Jun 5 22:36:46 2020 Initialized Fri Jun 5 22:37:08 2020 Discovering interfaces Fri Jun 5 22:37:31 2020 Querying DHCP Server Fri Jun 5 22:37:43 2020 DHCP query succeeded Fri Jun 5 22:41:46 2020 Upgrading image and config