I have a few N540-ACC-SYS (XR 7.3.1) where ZTP works fine with ztp initiate interface Ten0/0/0/0
.
The challenge also exists on 7.2.2.
I'm at the point of doing the final test to validate proper working when rebooting the system. I'm trying the following sequence to make the system factory default. Without success.
conf t
commit replace
exit
admin
hw-module location all reload force
I also tried commit replace best-effort
.
The system boots properly (i see the BIOS banner Version 2.18.1260. Copyright (C) 2019 American Megatrends, Inc.
(which is as good as a cold boot)), however, it does not initiate the ZTP process (taking the 10min ZTP timer into consideration).
The router just sits at this point:
LC/0/0/CPU0:Oct 21 12:20:26.235 UTC: tam_entropy[324]: %SECURITY-TAMSVCS-3-ENTROPY : Shutting down tam_entropy process for Software TAM based devices.
"When a device that supports Zero-Touch Provisioning boots up, and does not find the startup configuration (during fresh install on Day Zero), the device enters the Zero-Touch Provisioning mode."
My assumption is that by doing a commit replace, the config is wiped but still seems to leave a startup config/startup config file.
Update:
- The quote ("When a device that....") is taken from a cat3850 (IOS-XE). source: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/16-5/configuration_guide/prog/b_165_prog_3850_cg/zero_touch_provisioning.pdf Knowing Cisco, the implementation might be different for other platforms/Software types. When looking at this doc https://xrdocs.io/device-lifecycle/tutorials/2016-08-26-working-with-ztp/ " At the beginning of its execution, ZTP will scan the configuration for the presence of a username. If there are no username configured, ZTP will fork a DHCP client on the management interface for IPv4 and IPv6 simultaneously, and wait for a response."
There seems to be more to "not having a username configured" as the behavior shows.
/update
Before i start to remove files, how to proceed with this?
Do i also perform a commit replace
in the admin context?
How do i get the device in a proper state for ZTP to initiate after a full reload?
Am i missing something?
Thank you in advance.