<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic zero touch provisioning - tftp download during script fails in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/zero-touch-provisioning-tftp-download-during-script-fails/m-p/4460988#M2554</link>
    <description>&lt;P&gt;Ok found the issue:&amp;nbsp;&lt;/P&gt;&lt;P&gt;edited the post on this forum:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what was the issue:&lt;/P&gt;&lt;P&gt;You'll probably start reading the ZTP information on DevNet. The proposed setup on DevNet happens as follow: vlan 1 and on the switch you use the vlan 1 with the physical management interface g0/0.&lt;/P&gt;&lt;P&gt;The switch receives the script, runs it. Inside the script I download some scripts from the tftp server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However in the real world VLAN 1 is disable and you like to use a Management VLAN. Moreover, a Trunk exists between your Router and Switch. Probably physical cabling is installed as intended to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the management interface between router and switch this is ok. If I use the intended trunk interface between router and switch, then the tftp download in the script failed over and over again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script was created with the DevNet example &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Stupid me !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encountered issues when the switch booted. It started, I ping the TFTP server and try to connect to the 'tftp' server, but fails for the initial download. The reason for this, example script, manipulated a bit for my wishes (error checking etc.) but, forgotthe default vrf Mgmt in the script. -&amp;gt; this was at the point still enabled on the script...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the physical setup:&lt;/P&gt;&lt;P&gt;The connection between switch and router ees is a trunk link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interface config on the router is configured as trunk ( EtherSwitch).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new 9k switch boots up in standard 'dynamic auto' mode.&lt;/P&gt;&lt;P&gt;If I'm correct this means TRUNK interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I understood of pnp and ztp 'workflow'.:&lt;/P&gt;&lt;P&gt;The device boots up, listens with pnp to a 'pnp enabled interface'. During first contact the new switch forms a trunk, receives the dhcp information on the enabled 'dhcp-vlan'. In this case the management vlan.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scirpt is downloaded and is enabled in the guestshell.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the script did the tftp download in the vrf mgmt -&amp;gt; not a good idea . So be aware of this when you are playing with ZTP. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Took me half a day to find this stupid error!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bootprocess I understood so far:&lt;/P&gt;&lt;P&gt;- configure the router with dhcp options&lt;/P&gt;&lt;P&gt;- configure the router with 'pnp' command to listen to pnp request on the correct vlan (default it is vlan 1)&lt;/P&gt;&lt;P&gt;- connect a cable between router and switch (can choose gi0/0 'management' or another interface - I preferred the permanent cabled interface')&lt;/P&gt;&lt;P&gt;- boot the switch - do not touch it -&amp;nbsp;&lt;/P&gt;&lt;P&gt;- trunk is formed (when my ees-router interface is put in trunk)&lt;/P&gt;&lt;P&gt;- vlan management is automatically created&lt;/P&gt;&lt;P&gt;- download of the script&lt;/P&gt;&lt;P&gt;- guestshell enabled&lt;/P&gt;&lt;P&gt;- guestshell runs the script&lt;/P&gt;&lt;P&gt;- done.....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ZTP boot process isn't that well described on the devnet.... However, google around for some Cisco Live! materials. There are some useful ones:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- explains how to setup the appropriate vlan pnp config.&lt;/P&gt;&lt;P&gt;- explains how to create a factory switch again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Google search:&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://github.com/drmlbrt/laughing-robot" target="_blank" rel="noopener"&gt;drmlbrt/laughing-robot: (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://www.ciscolive.com/c/dam/r/ciscolive/us/docs/2017/pdf/CCSSPG-2000.pdf" target="_blank" rel="noopener"&gt;PowerPoint Presentation (ciscolive.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://www.ciscolive.com/c/dam/r/ciscolive/apjc/docs/2019/pdf/DEVWKS-1301.pdf" target="_blank" rel="noopener"&gt;DEVWKS-1301.pdf (ciscolive.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;O and have a search on GitHub, some good coding examples.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone finds more detailed information please post this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you hope it can help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 05:49:16 GMT</pubDate>
    <dc:creator>_|brt.drml|_</dc:creator>
    <dc:date>2021-09-09T05:49:16Z</dc:date>
    <item>
      <title>zero touch provisioning - tftp download during script fails</title>
      <link>https://community.cisco.com/t5/controllers/zero-touch-provisioning-tftp-download-during-script-fails/m-p/4460988#M2554</link>
      <description>&lt;P&gt;Ok found the issue:&amp;nbsp;&lt;/P&gt;&lt;P&gt;edited the post on this forum:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what was the issue:&lt;/P&gt;&lt;P&gt;You'll probably start reading the ZTP information on DevNet. The proposed setup on DevNet happens as follow: vlan 1 and on the switch you use the vlan 1 with the physical management interface g0/0.&lt;/P&gt;&lt;P&gt;The switch receives the script, runs it. Inside the script I download some scripts from the tftp server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However in the real world VLAN 1 is disable and you like to use a Management VLAN. Moreover, a Trunk exists between your Router and Switch. Probably physical cabling is installed as intended to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the management interface between router and switch this is ok. If I use the intended trunk interface between router and switch, then the tftp download in the script failed over and over again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script was created with the DevNet example &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Stupid me !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encountered issues when the switch booted. It started, I ping the TFTP server and try to connect to the 'tftp' server, but fails for the initial download. The reason for this, example script, manipulated a bit for my wishes (error checking etc.) but, forgotthe default vrf Mgmt in the script. -&amp;gt; this was at the point still enabled on the script...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the physical setup:&lt;/P&gt;&lt;P&gt;The connection between switch and router ees is a trunk link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interface config on the router is configured as trunk ( EtherSwitch).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new 9k switch boots up in standard 'dynamic auto' mode.&lt;/P&gt;&lt;P&gt;If I'm correct this means TRUNK interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I understood of pnp and ztp 'workflow'.:&lt;/P&gt;&lt;P&gt;The device boots up, listens with pnp to a 'pnp enabled interface'. During first contact the new switch forms a trunk, receives the dhcp information on the enabled 'dhcp-vlan'. In this case the management vlan.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scirpt is downloaded and is enabled in the guestshell.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the script did the tftp download in the vrf mgmt -&amp;gt; not a good idea . So be aware of this when you are playing with ZTP. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Took me half a day to find this stupid error!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bootprocess I understood so far:&lt;/P&gt;&lt;P&gt;- configure the router with dhcp options&lt;/P&gt;&lt;P&gt;- configure the router with 'pnp' command to listen to pnp request on the correct vlan (default it is vlan 1)&lt;/P&gt;&lt;P&gt;- connect a cable between router and switch (can choose gi0/0 'management' or another interface - I preferred the permanent cabled interface')&lt;/P&gt;&lt;P&gt;- boot the switch - do not touch it -&amp;nbsp;&lt;/P&gt;&lt;P&gt;- trunk is formed (when my ees-router interface is put in trunk)&lt;/P&gt;&lt;P&gt;- vlan management is automatically created&lt;/P&gt;&lt;P&gt;- download of the script&lt;/P&gt;&lt;P&gt;- guestshell enabled&lt;/P&gt;&lt;P&gt;- guestshell runs the script&lt;/P&gt;&lt;P&gt;- done.....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ZTP boot process isn't that well described on the devnet.... However, google around for some Cisco Live! materials. There are some useful ones:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- explains how to setup the appropriate vlan pnp config.&lt;/P&gt;&lt;P&gt;- explains how to create a factory switch again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Google search:&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://github.com/drmlbrt/laughing-robot" target="_blank" rel="noopener"&gt;drmlbrt/laughing-robot: (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://www.ciscolive.com/c/dam/r/ciscolive/us/docs/2017/pdf/CCSSPG-2000.pdf" target="_blank" rel="noopener"&gt;PowerPoint Presentation (ciscolive.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://www.ciscolive.com/c/dam/r/ciscolive/apjc/docs/2019/pdf/DEVWKS-1301.pdf" target="_blank" rel="noopener"&gt;DEVWKS-1301.pdf (ciscolive.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;O and have a search on GitHub, some good coding examples.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone finds more detailed information please post this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you hope it can help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 05:49:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/zero-touch-provisioning-tftp-download-during-script-fails/m-p/4460988#M2554</guid>
      <dc:creator>_|brt.drml|_</dc:creator>
      <dc:date>2021-09-09T05:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: zero touch provisioning - tftp download during script fails</title>
      <link>https://community.cisco.com/t5/controllers/zero-touch-provisioning-tftp-download-during-script-fails/m-p/4462005#M2555</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/920030"&gt;@_|brt.drml|_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for updating the discussion with the solution. Can you please also mark it as solved, if that is possible?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 20:17:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/zero-touch-provisioning-tftp-download-during-script-fails/m-p/4462005#M2555</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2021-09-08T20:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: zero touch provisioning - tftp download during script fails</title>
      <link>https://community.cisco.com/t5/controllers/zero-touch-provisioning-tftp-download-during-script-fails/m-p/4462199#M2556</link>
      <description>&lt;P&gt;nope, had to select yours &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 05:30:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/zero-touch-provisioning-tftp-download-during-script-fails/m-p/4462199#M2556</guid>
      <dc:creator>_|brt.drml|_</dc:creator>
      <dc:date>2021-09-09T05:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: zero touch provisioning - tftp download during script fails</title>
      <link>https://community.cisco.com/t5/controllers/zero-touch-provisioning-tftp-download-during-script-fails/m-p/4462557#M2557</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. I'll take it!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 14:49:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/zero-touch-provisioning-tftp-download-during-script-fails/m-p/4462557#M2557</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2021-09-09T14:49:48Z</dc:date>
    </item>
  </channel>
</rss>

