<?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: 9800-CL AWS command rejected in Wireless</title>
    <link>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652322#M244241</link>
    <description>&lt;P&gt;&lt;SPAN&gt;"event manager run pull_acl" is *not* a config command it's an exec command so that's why that is failing!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Not sure why the following commands are failing - maybe it's jumping out of config mode after the error?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to run an exec command while in config mode then prefix it with "do " - that will work for most commands as long as they aren't interactive (need response to prompts).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Otherwise you need something else to trigger the EEM script automatically rather than you running it manually - for example you could trigger it on the&amp;nbsp;SYS-5-CONFIG_I log after you exit configuration.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2022 14:27:32 GMT</pubDate>
    <dc:creator>Rich R</dc:creator>
    <dc:date>2022-07-18T14:27:32Z</dc:date>
    <item>
      <title>9800-CL AWS command rejected</title>
      <link>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652002#M244233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are running WLC in AWS which is deployed via Terraform. The marketplace WLC has initial stuff configured and saved in basic AMI which then gets "user data" script at boot. That way we just update the script and can rebuild the instance as much as we want. Script looks like this (and many more lines):&lt;/P&gt;&lt;P&gt;ios-config-101="interface GigabitEthernet1"&lt;BR /&gt;ios-config-102="ip address dhcp"&lt;BR /&gt;ios-config-103="no shut"&lt;BR /&gt;ios-config-104="exit"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Now, the issue we have is that some of the commands get rejected at boot up. Some of these are not even in the user data script (probably left hardcoded in the AMI somehow but not sure why they run like this). They are not important in this case but the one that runs EEM app that was supposed to pull ACLs from a separate FTP server. Applet itself is fine and working no issue when run manually, and I see in config it's loaded correctly from the user data script. So here is the log after bootup:&lt;/P&gt;&lt;P&gt;Jul 13 14:55:14.788: %CVAC-4-CLI_FAILURE: Configuration command failure: 'event manager run pull_acl' was rejected &amp;lt;-------------------------------------------------------------------???&lt;BR /&gt;Jul 13 14:55:14.788: %CVAC-4-CLI_FAILURE: Configuration command failure: 'exit ' was rejected&lt;BR /&gt;Jul 13 14:55:14.788: %CVAC-4-CLI_FAILURE: Configuration command failure: 'ip http secure-server' was rejected&lt;BR /&gt;Jul 13 14:55:14.788: %CVAC-4-CLI_FAILURE: Configuration command failure: 'ip http server' was rejected&lt;BR /&gt;Jul 13 14:55:14.788: %CVAC-4-CLI_FAILURE: Configuration command failure: 'ip http authentication local' was rejected&lt;BR /&gt;Jul 13 14:55:14.789: %CVAC-4-CLI_FAILURE: Configuration command failure: 'end' was rejected&lt;BR /&gt;Jul 13 14:55:14.789: %CVAC-3-CONFIG_ERROR: 7 error(s) while applying configs generated from file varied:/ovf-env.xml. Please inspect bootflash:/cvac.log for details.&lt;/P&gt;&lt;P&gt;I checked the cvac.log:&lt;/P&gt;&lt;P&gt;event manager run pull_acl&lt;BR /&gt;% (CVAC) Command failed: PRC_INVALID, PRC_FAILURE_PERMANENT&lt;BR /&gt;exit&lt;BR /&gt;% (CVAC) Command failed: PRC_INVALID, PRC_FAILURE_PERMANENT&lt;BR /&gt;ip http secure-server&lt;/P&gt;&lt;P&gt;ip http secure-server&lt;BR /&gt;^&lt;BR /&gt;% Invalid input detected at '^' marker.&lt;/P&gt;&lt;P&gt;% (CVAC) Command failed: PRC_PARSE_ERROR_NOMATCH, PRC_FAILURE_PERMANENT&lt;BR /&gt;ip http server&lt;/P&gt;&lt;P&gt;ip http server&lt;BR /&gt;^&lt;BR /&gt;% Invalid input detected at '^' marker.&lt;/P&gt;&lt;P&gt;% (CVAC) Command failed: PRC_PARSE_ERROR_NOMATCH, PRC_FAILURE_PERMANENT&lt;BR /&gt;ip http authentication local&lt;/P&gt;&lt;P&gt;ip http authentication local&lt;BR /&gt;^&lt;BR /&gt;% Invalid input detected at '^' marker.&lt;BR /&gt;&lt;BR /&gt;These errors don't really help much and only "solutions" I found is that I should run those commands manually. Then the automation part makes no sense anymore. Anyone has some idea why is this happening?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 08:45:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652002#M244233</guid>
      <dc:creator>sroic</dc:creator>
      <dc:date>2022-07-18T08:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: 9800-CL AWS command rejected</title>
      <link>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652322#M244241</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"event manager run pull_acl" is *not* a config command it's an exec command so that's why that is failing!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Not sure why the following commands are failing - maybe it's jumping out of config mode after the error?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to run an exec command while in config mode then prefix it with "do " - that will work for most commands as long as they aren't interactive (need response to prompts).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Otherwise you need something else to trigger the EEM script automatically rather than you running it manually - for example you could trigger it on the&amp;nbsp;SYS-5-CONFIG_I log after you exit configuration.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:27:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652322#M244241</guid>
      <dc:creator>Rich R</dc:creator>
      <dc:date>2022-07-18T14:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: 9800-CL AWS command rejected</title>
      <link>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652391#M244245</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/244975"&gt;@Rich R&lt;/a&gt;, firstly thank you for your feedback. I've been trying to figure out this for some time and playing with different stuff around ftp, eem, escaping quotes, etc. that I totally forgot I'm not in real CLI so I tried to casually do this:&lt;/P&gt;&lt;P&gt;#EEM APPLET FOR ACLs&lt;BR /&gt;#&lt;BR /&gt;ios-config-1501="event manager applet pull_acl authorization bypass"&lt;BR /&gt;ios-config-1502="event none"&lt;BR /&gt;ios-config-1503="action 0001 cli command enable"&lt;BR /&gt;ios-config-1504="action 0002 cli command &amp;amp;quot;configure terminal&amp;amp;quot;"&lt;BR /&gt;ios-config-1505="action 0003 cli command &amp;amp;quot;file prompt quiet&amp;amp;quot;"&lt;BR /&gt;ios-config-1506="action 0004 cli command end"&lt;BR /&gt;ios-config-1507="action 0005 cli command &amp;amp;quot;copy &lt;A href="ftp://server/file" target="_blank"&gt;ftp://server/file&lt;/A&gt; running-config&amp;amp;quot;"&lt;BR /&gt;ios-config-1508="action 0006 cli command &amp;amp;quot;configure terminal&amp;amp;quot;"&lt;BR /&gt;ios-config-1509="action 0007 cli command &amp;amp;quot;no file prompt quiet&amp;amp;quot;"&lt;BR /&gt;ios-config-1510="action 0008 cli command end"&lt;BR /&gt;ios-config-1511="exit"&lt;BR /&gt;ios-config-1512="exit"&lt;BR /&gt;#&lt;BR /&gt;ios-config-1550="event manager run pull_acl"&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;But putting "exit" twice didn't bring me in exec mode &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Other rejected commands were there even before I made this applet but I didn't want to left them out of this thread just in case they share the same root cause.&lt;/P&gt;&lt;P&gt;After your message I was pretty confident it will work like this with "do" as you proposed:&lt;/P&gt;&lt;P&gt;#EEM APPLET FOR ACLs&lt;BR /&gt;#&lt;BR /&gt;ios-config-1501="event manager applet pull_acl authorization bypass"&lt;BR /&gt;ios-config-1502="event none"&lt;BR /&gt;ios-config-1503="action 0001 cli command enable"&lt;BR /&gt;ios-config-1504="action 0002 cli command &amp;amp;quot;configure terminal&amp;amp;quot;"&lt;BR /&gt;ios-config-1505="action 0003 cli command &amp;amp;quot;file prompt quiet&amp;amp;quot;"&lt;BR /&gt;ios-config-1506="action 0004 cli command end"&lt;BR /&gt;ios-config-1507="action 0005 cli command &amp;amp;quot;copy &lt;A href="ftp://server/file" target="_blank"&gt;ftp://server/file&lt;/A&gt; running-config&amp;amp;quot;"&lt;BR /&gt;ios-config-1508="action 0006 cli command &amp;amp;quot;configure terminal&amp;amp;quot;"&lt;BR /&gt;ios-config-1509="action 0007 cli command &amp;amp;quot;no file prompt quiet&amp;amp;quot;"&lt;BR /&gt;ios-config-1510="action 0008 cli command end"&lt;BR /&gt;ios-config-1511="exit"&lt;BR /&gt;#&lt;BR /&gt;ios-config-1550="do event manager run pull_acl"&lt;/P&gt;&lt;P&gt;But after testing there is no change in config unfortunately, although the cvac.log doesn't throw any more issues on this command.&lt;/P&gt;&lt;P&gt;As you see in my code I used "no file prompt" to avoid prompts but if I don't find any more obvious reasons I will need to do some triggering with EEM.&lt;/P&gt;&lt;P&gt;Thanks once more!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 15:12:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652391#M244245</guid>
      <dc:creator>sroic</dc:creator>
      <dc:date>2022-07-18T15:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: 9800-CL AWS command rejected</title>
      <link>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652418#M244246</link>
      <description>&lt;P&gt;I guess you could try enable "debug ip ftp", "debug event manager all" &amp;amp; "debug event-manager" beforehand to try to work out why it still isn't working.&lt;/P&gt;
&lt;P&gt;One other thing to try "do-exec" instead of "do" just in case it's treating do as ambiguous (normal CLI accepts it but maybe not like that).&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 15:57:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652418#M244246</guid>
      <dc:creator>Rich R</dc:creator>
      <dc:date>2022-07-18T15:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: 9800-CL AWS command rejected</title>
      <link>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652451#M244247</link>
      <description>&lt;P&gt;Yeah I double checked do-exec part already, cvac.log shows it properly so should be fine, but I can update script just in case.&lt;/P&gt;&lt;P&gt;And will try debug (with "do" this time) and see if it helps, thx&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 16:44:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4652451#M244247</guid>
      <dc:creator>sroic</dc:creator>
      <dc:date>2022-07-18T16:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: 9800-CL AWS command rejected</title>
      <link>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4653863#M244307</link>
      <description>&lt;P&gt;Hi, just to update, "debug event manager all" showed me that my ftp request is failing for some reason. So I added a timer that waits 10 seconds after boot up and it worked. Probably something with AWS boot up process prevented using network interfaces immediately. Thanks again for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 10:50:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4653863#M244307</guid>
      <dc:creator>sroic</dc:creator>
      <dc:date>2022-07-20T10:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: 9800-CL AWS command rejected</title>
      <link>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4653877#M244310</link>
      <description>&lt;P&gt;Excellent &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 11:33:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/wireless/9800-cl-aws-command-rejected/m-p/4653877#M244310</guid>
      <dc:creator>Rich R</dc:creator>
      <dc:date>2022-07-20T11:33:47Z</dc:date>
    </item>
  </channel>
</rss>

