<?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 alias for guestshell run python + script? in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4460973#M2549</link>
    <description>&lt;P&gt;I'm looking for a solution to enable a script for clients (local admins) to run some scripts on the switches/routers.&lt;/P&gt;&lt;P&gt;They can enable it by running the guestshell command. But, how can I configure an alias?&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that one 'keyword' enables the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 10:56:39 GMT</pubDate>
    <dc:creator>_|brt.drml|_</dc:creator>
    <dc:date>2021-09-07T10:56:39Z</dc:date>
    <item>
      <title>alias for guestshell run python + script?</title>
      <link>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4460973#M2549</link>
      <description>&lt;P&gt;I'm looking for a solution to enable a script for clients (local admins) to run some scripts on the switches/routers.&lt;/P&gt;&lt;P&gt;They can enable it by running the guestshell command. But, how can I configure an alias?&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that one 'keyword' enables the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 10:56:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4460973#M2549</guid>
      <dc:creator>_|brt.drml|_</dc:creator>
      <dc:date>2021-09-07T10:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: alias for guestshell run python + script?</title>
      <link>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4460987#M2550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On nexus switches you can simply use alias command:&lt;/P&gt;
&lt;PRE&gt;switch(config)# cli alias name &amp;lt;alias-command&amp;gt; &amp;lt;real command&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Stay safe,&lt;/P&gt;
&lt;P&gt;Sergiu&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:22:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4460987#M2550</guid>
      <dc:creator>Sergiu.Daniluk</dc:creator>
      <dc:date>2021-09-07T11:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: alias for guestshell run python + script?</title>
      <link>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4460993#M2551</link>
      <description>&lt;P&gt;it is a 9300 series switch ios xe , and the above command failed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanx anyway&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:35:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4460993#M2551</guid>
      <dc:creator>_|brt.drml|_</dc:creator>
      <dc:date>2021-09-07T11:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: alias for guestshell run python + script?</title>
      <link>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4461009#M2552</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/920030"&gt;@_|brt.drml|_&lt;/a&gt;&amp;nbsp;totally guessing here - Create an&amp;nbsp;&lt;SPAN&gt;EEM applet, which can actually run a Python script. Create the alias to run/exec something like&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;guestshell run python3 /home/guestshell/setup.py&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Sep 2021 12:03:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4461009#M2552</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2021-09-07T12:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: alias for guestshell run python + script?</title>
      <link>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4461524#M2553</link>
      <description>&lt;P&gt;Almost, thx for the help, but found a solution. How I searched for it in google changed the results and I found a config/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OSW-9300-BL(config)#alias exec ZEROSWITCH guestshell run python /flash/updateswitch.py&lt;BR /&gt;OSW-9300-BL(config)#end&lt;BR /&gt;OSW-9300-BL#ZEROSWITCH&lt;/P&gt;&lt;P&gt;####---- Welcome to the SW Script - Python - -------------------------------------###&lt;/P&gt;&lt;P&gt;####---- Baseline is OK ---------------------------------------------------------###&lt;BR /&gt;==========================================================================================&lt;BR /&gt;[(1, 'Change Switch Name - Site Config'),&lt;BR /&gt;(2, 'Zeroize the switch config'),&lt;BR /&gt;(9, 'Exit the program')]&lt;BR /&gt;==========================================================================================&lt;BR /&gt;What do you like to d...............&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 07:00:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/alias-for-guestshell-run-python-script/m-p/4461524#M2553</guid>
      <dc:creator>_|brt.drml|_</dc:creator>
      <dc:date>2021-09-08T07:00:08Z</dc:date>
    </item>
  </channel>
</rss>

