Details
The following example displays the execution of a simple configuration script downloaded from a management interface or a data interface using the command ztp initiate network interface Ten 0/0/0/0 verbose. This script unshuts all the interfaces of the system and configure a load interval of 30 seconds on all of them.
2022-06-17 11:52:34,682 19292 [Xr ] INF: Downloading the file to /tmp/ztp.script
2022-06-17 11:52:35,329 19292 [Report ] INF: User script downloaded successfully. Provisioning in progress.
2022-06-17 11:52:35,330 19292 [Engine ] DEB: ZAdmin, current state:active. Processing work: Config device work for ZAdmin. done = False
2022-06-17 11:52:35,330 19292 [ZAdmin ] DEB: Proceeding to provision the NCS 1010
2022-06-17 11:52:35,331 19292 [Engine ] DEB: ZAdmin, current state:active. Processing work: ZAdmin: Apply configuration. done = False
2022-06-17 11:52:35,331 19292 [Engine ] INF: ZAdmin, current state:active: state tag changed to provision
RP/0/RP0/CPU0:Jun 17 11:52:35.341 UTC: pyztp2[140]: %INFRA-ZTP-4-CONFIG_INITIATED : ZTP has initiated config load and commit operations
2022-06-17 11:52:35,339 19292 [Env ] DEB: No MTU configs detected
2022-06-17 11:52:35,340 19292 [Engine ] DEB: ZAdmin, current state:active. Processing work: ZAdmin: Apply configuration. done = False
2022-06-17 11:52:35,354 19292 [Xr ] DEB: Will apply the following config: /disk0:/ztp/customer/config.candidate
2022-06-17 11:52:35,354 19292 [Xr ] INF: Applying user configurations
2022-06-17 11:52:35,355 19292 [Configuration] INF: Provisioning via config replace
2022-06-17 11:52:54,656 19292 [Configuration] INF: Configuration has been applied
2022-06-17 11:52:54,656 19292 [Engine ] DEB: ZAdmin, current state:active. Processing work: Sending standby sync message. done = False
2022-06-17 11:52:54,663 19292 [Engine ] DEB: ZAdmin, current state:active. Processing work: [privileged] getting engine status. done = False
2022-06-17 11:52:54,664 19292 [Engine ] DEB: ZAdmin, current state:active. Processing work: ZAdmin: Execute post-configuration script. done = False
2022-06-17 11:52:55,212 19292 [Env ] INF: Env::cleanup, success:True, exiting:False
2022-06-17 11:52:55,213 19292 [ZtpHelpers ] DEB: Executing: source /pkg/bin/ztp_helper.sh && echo -ne | xrcmd "show running-config"
2022-06-17 11:52:55,825 19292 [Env ] INF: Executing command ip netns exec vrf-default /sbin/dhclient -4 -cf /etc/dhcp/dhclient.conf.ztp -lf /var/lib/dhcp/dhclient.leases.ztp -sf /etc/dhcp/dhclient-script.ztp2 -r Mg0_RP0_CPU0_0 to release IP
2022-06-17 11:52:56,968 19292 [Xr ] INF: Removing linux route with ip 203.0.113.254
2022-06-17 11:52:57,023 19292 [Engine ] INF: ZAdmin, current state:active, exit code:success
2022-06-17 11:52:57,023 19292 [Engine ] INF: ZAdmin, current state:final, exit code:success: state changed to final
2022-06-17 11:52:59,737 19292 [Engine ] DEB: ZAdmin, current state:final, exit code:success. Processing work: Sending standby sync message. done = False
2022-06-17 11:52:59,738 19292 [Engine ] WAR: ZAdmin, current state:final, exit code:success: work is ignored: work=<desc='Sending standby sync message' done=False priv=False>
2022-06-17 11:52:59,738 19292 [Engine ] DEB: ZAdmin, current state:final, exit code:success. Processing work: [privileged] getting engine status. done = False
2022-06-17 11:53:04,744 19292 [main ] DEB: Moved to final state
2022-06-17 11:53:04,745 19292 [main ] DEB: ZTP completed successfully
2022-06-17 11:53:04,745 19292 [main ] INF: Exiting SUCCESSFULLY
2022-06-17 11:53:04,746 19292 [main ] DEB: Exiting. Will not retry now.
2022-06-17 11:53:04,746 19292 [main ] DEB: Shutting down adaptor. Cleanup False. Exiting False
2022-06-17 11:53:04,748 19292 [Engine ] DEB: ZAdmin, current state:final, exit code:success. Processing work: [privileged] prepare engine shutdown. done = False
2022-06-17 11:53:04,849 19292 [Engine ] DEB: ZAdmin, current state:final, exit code:success. Processing work: [privileged] shutting down ZAdmin engine. done = False
2022-06-17 11:53:04,849 19292 [Engine ] INF: ZAdmin, current state:final, exit code:shutdown
2022-06-17 11:53:04,849 19292 [Engine ] INF: ZAdmin, exit code:shutdown: state changed to None
2022-06-17 11:53:04,849 19292 [Engine ] DEB: ZAdmin, exit code:shutdown: breaking engine loop after shutdown
2022-06-17 11:53:04,850 19292 [Engine ] DEB: ZAdmin, exit code:shutdown: end of event loop
2022-06-17 11:53:04,850 19292 [Adaptor ] DEB: Adaptor : Cleanup for admin context on Terminate
2022-06-17 11:53:06,119 19292 [main ] INF: Exiting SUCCESSFULLY
2022-06-17 11:53:06,119 19292 [main ] INF: ZTP Exited
RP/0/RP0/CPU0:Jun 17 11:53:06.119 UTC: pyztp2[140]: %INFRA-ZTP-4-EXITED : ZTP exited