<?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 Re: Add Delay Between PnP Deploy Image and Deploy Config in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/add-delay-between-pnp-deploy-image-and-deploy-config/m-p/3497275#M2747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;i usually embed this type of config in a small inline self-destructing EEM script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is one for "aaa",&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/migration-blogpost/8430"&gt;Network Automation with Plug and Play (PnP) – Part 7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you could do a simpler version for your serial config.&amp;nbsp; Put something like this at the end of the configuration file that gets downloaded. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Strip out the serial config commands into this section&lt;/LI&gt;&lt;LI&gt;Change the timeout to 180sec or what ever is safe&lt;/LI&gt;&lt;LI&gt;debug event manager action cli&amp;nbsp; is a useful command to run when testing to make sure the script is running properly.&lt;/LI&gt;&lt;LI&gt;This script will only run once, then remove itself.&amp;nbsp; You need to do a "wr me" at the end to save the new config (including removing the EEM script)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;event manager applet POST_PNP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;! time in seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;event timer countdown time 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 0.1 cli command "enable"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 0.2 cli command "config t"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;! what ever commands you want in here&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 1.0 cli command "int g3"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 1.1 cli command "no shut"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 2.0 syslog msg "PNP serial config by EEM "&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 3.0 cli command "no event manager applet POST_PNP"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 3.1 cli command "end"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 3.2 cli command "wr mem"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;end&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2017 18:25:09 GMT</pubDate>
    <dc:creator>aradford</dc:creator>
    <dc:date>2017-08-02T18:25:09Z</dc:date>
    <item>
      <title>Add Delay Between PnP Deploy Image and Deploy Config</title>
      <link>https://community.cisco.com/t5/controllers/add-delay-between-pnp-deploy-image-and-deploy-config/m-p/3497274#M2746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working on a large deployment using APIC-EM PnP.&lt;/P&gt;&lt;P&gt;Have ISR4331s with 1MFT-T1/E1 &amp;amp; 2MFT-T1/E1 NIMs installed.&lt;/P&gt;&lt;P&gt;APIC-EM does not the normal deployment of the new image to each router, and then applies the configuration, however when I check the configuration after deployment, none of the serial interfaces are built.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing things manually and what I found is that if I wait an additional 90-120 seconds before deploying a configuration after performing the image upgrade that the serial interfaces do get provisioned correctly. I suspect the xMFT-T1/E1 cards themselves are performing some kind of upgrade and therefore are unavailable when the new configuration is applied immediately after deploying the new image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So question is, is there a way to add a delay between deploying an image and deploying a configuration in APIC-EM PnP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:39:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/add-delay-between-pnp-deploy-image-and-deploy-config/m-p/3497274#M2746</guid>
      <dc:creator>marxom7713</dc:creator>
      <dc:date>2019-03-01T12:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add Delay Between PnP Deploy Image and Deploy Config</title>
      <link>https://community.cisco.com/t5/controllers/add-delay-between-pnp-deploy-image-and-deploy-config/m-p/3497275#M2747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;i usually embed this type of config in a small inline self-destructing EEM script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is one for "aaa",&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/migration-blogpost/8430"&gt;Network Automation with Plug and Play (PnP) – Part 7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you could do a simpler version for your serial config.&amp;nbsp; Put something like this at the end of the configuration file that gets downloaded. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Strip out the serial config commands into this section&lt;/LI&gt;&lt;LI&gt;Change the timeout to 180sec or what ever is safe&lt;/LI&gt;&lt;LI&gt;debug event manager action cli&amp;nbsp; is a useful command to run when testing to make sure the script is running properly.&lt;/LI&gt;&lt;LI&gt;This script will only run once, then remove itself.&amp;nbsp; You need to do a "wr me" at the end to save the new config (including removing the EEM script)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;event manager applet POST_PNP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;! time in seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;event timer countdown time 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 0.1 cli command "enable"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 0.2 cli command "config t"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;! what ever commands you want in here&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 1.0 cli command "int g3"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 1.1 cli command "no shut"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 2.0 syslog msg "PNP serial config by EEM "&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 3.0 cli command "no event manager applet POST_PNP"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 3.1 cli command "end"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;action 3.2 cli command "wr mem"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;end&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: -webkit-standard; font-size: 14px;"&gt;&lt;SPAN style="font-size: 12px; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 18:25:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/add-delay-between-pnp-deploy-image-and-deploy-config/m-p/3497275#M2747</guid>
      <dc:creator>aradford</dc:creator>
      <dc:date>2017-08-02T18:25:09Z</dc:date>
    </item>
  </channel>
</rss>

