ztp clean
To remove all ZTP logs and settings saved on disk, use the ztp clean command in EXEC mode.
ztp clean [ debug ] [ verbose ]
Syntax Description
debug |
Run with additional logging to the console. |
verbose |
Run with logging to the console. |
Command Default
No default behavior or values.
Command Modes
EXEC mode
Command History
Release | Modification |
---|---|
Release 6.5.31 |
This command was introduced. |
Usage Guidelines
If you wish to run ZTP as if from a clean boot, use the ztp clean command to remove all ZTP logs and settings. Use commit replace to reload, and then ZTP will run again as if from first boot.
No progress logs are shown by default, although there will be XR syslogs for important events. If you wish to see more logs, add verbose after the ztp clean command. If these logs are not enough, add debug before verbose.
Logs can be found in disk0:/ztp/ztp.log.
Examples
The following example shows how to remove all ZTP files saved on the disk.
RP/0/RP0/CPU0:router# ztp clean verbose
Mon Oct 10 17:03:43.581 UTC
Remove all ZTP temporary files and logs? [confirm] [y/n] :y
All ZTP files have been removed.
If you now wish ZTP to run again from boot, do 'conf t/commit replace' followed by reload.