The following example shows the sample boot logs before the .py
script is run:
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: day0guestshell installed successfully
Current state is: DEPLOYED
day0guestshell activated successfully Current state is: ACTIVATED
day0guestshell started successfully Current state is: RUNNING
Guestshell enabled successfully
*** Sample ZTP Day0 Python Script ***
...
*** ZTP Day0 Python Script Execution Complete ***
Guestshell destroyed successfully
The following example shows how to configure the device for Day Zero provisioning:
Both links down, not waiting for other switches Switch number is 1
Restricted Rights Legend
Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer Software clause at DFARS sec. 252.227-7013.
Cisco Systems, Inc. 170 West Tasman Drive
San Jose, California 95134-1706
RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Tue 28-Apr-20 09:37 by mcpre
This software version supports only Smart Licensing as the software licensing mechanism.
PLEASE READ THE FOLLOWING TERMS CAREFULLY. INSTALLING THE LICENSE OR LICENSE
KEY PROVIDED FOR ANY CISCO SOFTWARE PRODUCT, PRODUCT FEATURE, AND/OR
SUBSEQUENTLY PROVIDED SOFTWARE FEATURES (COLLECTIVELY, THE
"SOFTWARE"), AND/OR USING SUCH SOFTWARE CONSTITUTES YOUR FULL ACCEPTANCE
OF THE FOLLOWING TERMS. YOU MUST NOT PROCEED FURTHER IF YOU ARE NOT WILLING
TO BE BOUND BY ALL THE TERMS SET FORTH HEREIN.
Your use of the Software is subject to the Cisco End User License Agreement (EULA) and any relevant
supplemental terms (SEULA) found at
http://www.cisco.com/c/en/us/about/legal/cloud-and-software/software-terms.html.
You hereby acknowledge and agree that certain Software and/or features are licensed for a particular term,
that the license to such Software and/or features is valid only for the applicable term and that such Software
and/or features may be shut down or otherwise terminated by Cisco after expiration of the applicable license
term (e.g., 90-day trial period). Cisco reserves
the right to terminate any such Software feature electronically or by any other means available. While Cisco
may provide alerts, it is your sole responsibility to monitor your usage of any such term Software feature to
ensure that your systems and networks are prepared for a shutdown of the Software feature.
% Checking backup nvram
% No config present. Using default config
FIPS: Flash Key Check : Key Not Found, FIPS Mode Not Enabled
All TCP AO KDF Tests Pass
cisco C9350-48UXM (X86) processor with 1343703K/6147K bytes of memory. Processor board ID
FCW2144L045
2048K bytes of non-volatile configuration memory. 8388608K bytes of physical memory.
1638400K bytes of Crash Files at crashinfo:. 11264000K bytes of Flash at flash:.
0K bytes of WebUI ODM Files at webui:.
Base Ethernet MAC Address : ec:1d:8b:0a:68:00 Motherboard Assembly Number : 73-17959-06 Motherboard
Serial Number : FOC21418FPQ
Model Revision Number : B0 Motherboard Revision Number : A0
Model Number : C9350-48UXM
System Serial Number : FCW2144L045
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: day0guestshell installed successfully
Current state is: DEPLOYED
day0guestshell activated successfully Current state is: ACTIVATED
day0guestshell started successfully Current state is: RUNNING
Guestshell enabled successfully
HTTP server statistics:
Accepted connections total: 0
*** Sample ZTP Day0 Python Script ***
*** Executing show platform ***
Device#show platform
Switch Ports Model Serial No. MAC address Hw Ver. Sw Ver.
------ ----- --------- ----------- -------------- ------- --------
1 68 C9350-48P FVH2935LDJT 68d9.726c.1b00 V01 17.18.01
Mac persistency wait time: Indefinite
Current
Switch# Role Priority State
-------------------------------------------
1 Active 1 Ready
*** Executing show version ***
ZTP_1: Executing Show Version
Cisco IOS XE Software, Version 17.18.01
Cisco IOS Software [IOSXE], Cisco L3 Switch Software (CISCO9K_IOSXE), Version 17.18.1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2025 by Cisco Systems, Inc.
Compiled Wed 06-Aug-25 03:45 by mcpre
Cisco IOS-XE software, Copyright (c) 2005-2025 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.
ROM: IOS-XE ROMMON
BOOTLDR: System Bootstrap, Version 17.18.1r[FC3], RELEASE SOFTWARE (P)
C9350 uptime is 8 weeks, 6 days, 18 hours, 3 minutes
Uptime for this control processor is 8 weeks, 6 days, 18 hours, 6 minutes
System returned to ROM by PowerOn
System image file is "flash:packages.conf"
Last reload reason: PowerOn
If you require further assistance please contact us by sending email to
export@cisco.com.
Technology Package License Information:
------------------------------------------------------------------------------
Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------------
advantage Smart License advantage
Smart Licensing Status: Smart Licensing Using Policy
cisco C9350-48P (X86) processor with 2099157K/6147K bytes of memory.
Processor board ID FVH2935LDJT
2 Virtual Ethernet interfaces
96 Gigabit Ethernet interfaces
8 TwentyFive Gigabit Ethernet interfaces
8 Fifty Gigabit Ethernet interfaces
20 Hundred Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
16777216K bytes of physical memory.
3072000K bytes of Crash Files at crashinfo:.
12582912K bytes of Flash at flash:.
3072000K bytes of Crash Files at crashinfo-2:.
12582912K bytes of Flash at flash-2:.
Base Ethernet MAC Address : 68:d9:72:6c:1b:00
Motherboard Assembly Number : 73-103862-02
Motherboard Serial Number : FVH29341FH5
Model Revision Number : B0
Motherboard Revision Number : B0
Model Number : C9350-48P
System Serial Number : FVH2935LDJT
CLEI Code Number : INMSF00ARA
Cloud ID : Q5CG-9BQ8-XKN6
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 68 C9350-48P 17.18.01 CISCO9K_IOSXE INSTALL
RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Tue 28-Apr-20 09:37 by mcpre
Cisco IOS-XE software, Copyright (c) 2005-2020 by cisco Systems,
Inc.
All rights reserved. Certain components of Cisco IOS-XE software
are
licensed under the GNU General Public License ("GPL") Version
2.0. The software code licensed under GPL Version 2.0 is free
software that comes with ABSOLUTELY NO WARRANTY. You can
redistribute and/or modify such GPL code under the terms of GPL
Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE
software, or the applicable URL provided on the flyer accompanying
the IOS-XE
software.
ROM: IOS-XE ROMMON
BOOTLDR: System Bootstrap, Version 17.2.1r[FC1], RELEASE
SOFTWARE (P)
Switch uptime is 4 minutes
Uptime for this control processor is 9 minutes System returned
to ROM by Reload Command
System image file is "flash:cat9k_iosxe.16.12.03a.SPA.bin" Last
reload reason: Reload Command
This product contains cryptographic features and is subject to
United States and local country laws governing import, export,
transfer and use. Delivery of Cisco cryptographic products does not
imply
third-party authority to import, export, distribute or use
encryption. Importers, exporters, distributors and users are
responsible for compliance with U.S. and local country laws. By
using this product you agree to comply with applicable laws and
regulations. If you are unable to comply with U.S. and local laws,
return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products
may be found at: http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending
email to export@cisco.com.
Technology Package License Information:
Technology-package Technology-package Current Type Next
reboot
network-advantage Smart License network-advantage None
Subscription Smart License None
AIR License Level: AIR DNA Advantage
Next reload AIR license Level: AIR DNA Advantage
Smart Licensing Status: UNREGISTERED/EVAL EXPIRED
cisco C9350-48UXM (X86) processor with 1343703K/6147K bytes of
memory. Processor board ID FCW2144L045
1 Virtual Ethernet interface 4 Gigabit Ethernet interfaces
36 2.5 Gigabit Ethernet interfaces 20 Ten Gigabit Ethernet
interfaces
2 TwentyFive Gigabit Ethernet interfaces 2 Forty Gigabit
Ethernet interfaces
2048K bytes of non-volatile configuration memory. 8388608K bytes
of physical memory.
1638400K bytes of Crash Files at crashinfo:. 11264000K bytes of
Flash at flash:.
0K bytes of WebUI ODM Files at webui:.
Base Ethernet MAC Address : ec:1d:8b:0a:68:00 Motherboard
Assembly Number : 73-17959-06 Motherboard Serial Number :
FOC21418FPQ
Model Revision Number : B0 Motherboard Revision Number : A0
Model Number : C9350-48UXM
System Serial Number : FCW2144L045
Switch Ports Model SW Version SW Image Mode
* 1 65 C9350-48UXM 16.12.3a CAT9K_IOSXE BUNDLE
Configuration register is 0x102
*** Configuring a Loopback Interface ***
Line 1 SUCCESS: interface loop 100
Line 2 SUCCESS: ip address 10.10.10.10 255.255.255.255
Line 3 SUCCESS: end
*** Executing show ip interface brief ***
Interface IP-Address OK? Method Status Protocol Vlan1 unassigned
YES unset up up
| GigabitEthernet0/0 10.127.128.10 YES DHCP |
up |
up |
| Tw1/0/1 unassigned YES unset down |
|
down |
| Tw1/0/2 unassigned YES unset down |
|
down |
| Tw1/0/3 unassigned YES unset down |
|
down |
| Tw1/0/4 unassigned YES unset down |
|
down |
| Tw1/0/5 unassigned YES unset down |
|
down |
| Tw1/0/6 unassigned YES unset down |
|
down |
| Tw1/0/7 unassigned YES unset down |
|
down |
| Tw1/0/8 unassigned YES unset down |
|
down |
| Tw1/0/9 unassigned YES unset down |
|
down |
| Tw1/0/10 unassigned YES unset down |
|
down |
| Tw1/0/11 unassigned YES unset down |
|
down |
| Tw1/0/12 unassigned YES unset down |
|
down |
| Tw1/0/13 unassigned YES unset down |
|
down |
| Tw1/0/14 unassigned YES unset down |
|
down |
| Tw1/0/15 unassigned YES unset down |
|
down |
| Tw1/0/16 unassigned YES unset down |
|
down |
| Tw1/0/17 unassigned YES unset down |
|
down |
| Tw1/0/18 unassigned YES unset down |
|
down |
| Tw1/0/19 unassigned YES unset down |
|
down |
| Tw1/0/20 |
unassigned |
YES unset down |
down |
| Tw1/0/21 |
unassigned |
YES unset down |
down |
| Tw1/0/22 |
unassigned |
YES unset down |
down |
| Tw1/0/23 |
unassigned |
YES unset down |
down |
| Tw1/0/24 |
unassigned |
YES unset down |
down |
| Tw1/0/25 |
unassigned |
YES unset down |
down |
| Tw1/0/26 |
unassigned |
YES unset down |
down |
| Tw1/0/27 |
unassigned |
YES unset down |
down |
| Tw1/0/28 |
unassigned |
YES unset down |
down |
| Tw1/0/29 |
unassigned |
YES unset down |
down |
| Tw1/0/30 |
unassigned |
YES unset down |
down |
| Tw1/0/31 |
unassigned |
YES unset down |
down |
| Tw1/0/32 |
unassigned |
YES unset down |
down |
| Tw1/0/33 |
unassigned |
YES unset down |
down |
| Tw1/0/34 |
unassigned |
YES unset down |
down |
| Tw1/0/35 |
unassigned |
YES unset down |
down |
| Tw1/0/36 |
unassigned |
YES unset down |
down |
| Te1/0/37 |
unassigned |
YES unset down |
down |
| Te1/0/38 |
unassigned |
YES unset down |
down |
| Te1/0/39 |
unassigned |
YES unset down |
down |
| Te1/0/40 |
unassigned |
YES unset down |
down |
| Te1/0/41 |
unassigned |
YES unset down |
down |
| Te1/0/42 |
unassigned |
YES unset down |
down |
| Te1/0/43 |
unassigned |
YES unset down |
down |
| Te1/0/44 |
unassigned |
YES unset down |
down |
| Te1/0/45 |
unassigned |
YES unset down |
down |
| Te1/0/46 |
unassigned |
YES unset down |
down |
| Te1/0/47 |
unassigned |
YES unset down |
down |
| Te1/0/48 |
unassigned |
YES unset up |
up |
GigabitEthernet1/1/1 unassigned YES unset down down
GigabitEthernet1/1/2 unassigned YES unset down down
GigabitEthernet1/1/3 unassigned YES unset down down
GigabitEthernet1/1/4 unassigned YES unset down down Te1/1/1
unassigned YES unset down down Te1/1/2 unassigned YES unset down
down Te1/1/3 unassigned YES unset down down Te1/1/4 unassigned YES
unset down down Te1/1/5 unassigned YES unset down down Te1/1/6
unassigned YES unset down down Te1/1/7 unassigned YES unset down
down Te1/1/8 unassigned YES unset down down Fo1/1/1 unassigned YES
unset down down Fo1/1/2 unassigned YES unset down down
TwentyFiveGigE1/1/1 unassigned YES unset down down
TwentyFiveGigE1/1/2 unassigned YES unset down down Ap1/0/1
unassigned YES unset up up
Loopback100 10.10.10.10 YES TFTP up up
*** Configuring username, password, SSH ***
Line 1 SUCCESS: username cisco privilege 15 password cisco
**CLI Line # 1: WARNING: Command has been added to the
configuration using a type 0 password.
However, type 0 passwords will soon be deprecated. Migrate to a
supported password type
Line 2 SUCCESS: ip domain name domain Line 3 SUCCESS: line vty 0
15
Line 4 SUCCESS: login local
Line 5 SUCCESS: transport input all Line 6 SUCCESS: end
*** ZTP Day0 Python Script Execution Complete *** Guestshell
destroyed successfully
Press RETURN to get started!
This following example shows the sample boot logs before the .py
script is run:
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog?
[yes/no]:
Acquired IPv4 address 10.127.128.8 on Interface
GigabitEthernet0/0 Received following DHCPv4 options:
bootfile : test.py
tftp-server-ip : 159.14.27.2 OK to enter CLI now...
pnp-discovery can be monitored without entering enable mode
Entering enable mode will stop pnp-discovery
Attempting bootfile tftp://159.14.27.2/test.py day0guestshell
activated successfully Current state is: ACTIVATED
day0guestshell started successfully Current state is:
RUNNING
Guestshell enabled successfully
*** Sample ZTP Day0 Python Script ***
...
*** ZTP Day0 Python Script Execution Complete *** Guestshell
destroyed successfully
The following example shows how to configure the device for Day
Zero provisioning: Both links down, not waiting for other
switches
Switch number is 1
Restricted Rights Legend
Use, duplication, or disclosure by the Government is subject to
restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted Rights
clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
Cisco Systems, Inc. 170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software [Amsterdam], Catalyst L3 Switch Software
(CAT9K_IOSXE), Version 17.2.1, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Thu 26-Mar-20 03:29 by mcpre
This software version supports only Smart Licensing as the
software licensing mechanism. PLEASE READ THE FOLLOWING TERMS
CAREFULLY. INSTALLING THE LICENSE OR LICENSE KEY PROVIDED FOR ANY
CISCO SOFTWARE PRODUCT, PRODUCT FEATURE, AND/OR SUBSEQUENTLY
PROVIDED SOFTWARE FEATURES (COLLECTIVELY, THE
"SOFTWARE"), AND/OR USING SUCH SOFTWARE CONSTITUTES YOUR
FULL
ACCEPTANCE OF THE FOLLOWING TERMS. YOU MUST NOT PROCEED FURTHER
IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE TERMS SET FORTH
HEREIN.
Your use of the Software is subject to the Cisco End User
License Agreement (EULA) and any relevant supplemental terms
(SEULA) found at
http://www.cisco.com/c/en/us/about/legal/cloud-and-software/software-terms.html.
You hereby acknowledge and agree that certain Software and/or
features are licensed for a particular term, that the license to
such Software and/or features is valid only for the applicable term
and that such Software and/or features may be shut down or
otherwise terminated by Cisco after expiration of the applicable
license term (e.g., 90-day trial period). Cisco reserves
the right to terminate any such Software feature electronically
or by any other means available. While Cisco may provide alerts, it
is your sole responsibility to monitor your usage of any such term
Software feature to ensure that your systems and networks are
prepared for a shutdown of the Software feature.
% Checking backup nvram
% No config present. Using default config
FIPS: Flash Key Check : Key Not Found, FIPS Mode Not Enabled All
TCP AO KDF Tests Pass
cisco C9350-48UXM (X86) processor with 1338934K/6147K bytes of
memory. Processor board ID FCW2144L045
2048K bytes of non-volatile configuration memory. 8388608K bytes
of physical memory.
1638400K bytes of Crash Files at crashinfo:. 11264000K bytes of
Flash at flash:.
Base Ethernet MAC Address : ec:1d:8b:0a:68:00
Motherboard Assembly Number : 73-17959-06 Motherboard Serial
Number : FOC21418FPQ Model Revision Number : B0
Motherboard Revision Number : A0
Model Number : C9350-48UXM
System Serial Number : FCW2144L045 CLEI Code Number :
No startup-config, starting autoinstall/pnp/ztp...
Autoinstall will terminate if any input is detected on console
Autoinstall trying DHCPv4 on GigabitEthernet0/0 Autoinstall trying
DHCPv6 on GigabitEthernet0/0
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog?
[yes/no]:
Acquired IPv4 address 10.127.128.8 on Interface
GigabitEthernet0/0 Received following DHCPv4 options:
bootfile : test.py
tftp-server-ip : 159.14.27.2 OK to enter CLI now...
pnp-discovery can be monitored without entering enable mode
Entering enable mode will stop pnp-discovery
Attempting bootfile tftp://159.14.27.2/test.py day0guestshell
activated successfully Current state is: ACTIVATED
day0guestshell started successfully Current state is:
RUNNING
Guestshell enabled successfully