show system ztp
Syntax
show system ztp
Description
This command displays the Zero Touch Provisioning (ZTP) and Secure Zero Touch Provisioning (SZTP) state information.
Required Privilege Level
view
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.
Field Name |
Description |
---|---|
|
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:
|
|
ZTPDefaultMode |
On secure platforms running Junos OS, the default bootstrapping mode that is currently running.
|
On secure platforms running Junos OS Evolved, the default bootstrapping mode that is currently running.
|
|
|
Name of interface. |
ZtpPlatformDefault |
On secure platforms running Junos OS, the default bootstrapping mode.
|
On secure platforms running Junos OS Evolved, the default bootstrapping mode.
|
|
|
IP address. |
|
When the log server, NTP server, or FTP server are on a remote subnet,
the value of |
|
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 |
|
It can be a symbolic link. |
|
Configuration file name. |
|
Configuration URL. |
|
This field specifies whether the configuration 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. |
|
Lists the last 10 state transitions by |
Sample Output
- show system ztp
- show system ztp (Default Platform Boot Mode and Default Boot Mode that is currently running on the device)
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://17.17.213.1//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
show system ztp (Default Platform Boot Mode and Default Boot Mode that is currently running on the device)
user@host> show system ztp ZtpPlatformDefault UnSecure ZtpBootMode UnSecure
Release Information
Command introduced in Junos OS Evolved Release 19.1R1.