<?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: How can I print a message after executing an .xsf script? in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45857#M11520</link>
    <description>easy python script.  Just save it as a .py file and run it like you would a .xsf.&lt;BR /&gt;
&lt;BR /&gt;
exsh.clicmd('show vlan', True)    &lt;BR /&gt;
exsh.clicmd('show port conf no', True)    &lt;BR /&gt;
exsh.clicmd('show vlan "Default"', True)    &lt;BR /&gt;
print ("Done!")</description>
    <pubDate>Thu, 10 Mar 2016 20:55:00 GMT</pubDate>
    <dc:creator>StephenW</dc:creator>
    <dc:date>2016-03-10T20:55:00Z</dc:date>
    <item>
      <title>How can I print a message after executing an .xsf script?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45854#M11517</link>
      <description>I am given some .xsf scripts that I just load using the &lt;BR /&gt;
load script scriptName.xsf&lt;BR /&gt;
The scripts do not print out anything. If possible I'd like to see a message printed after the execution like&lt;BR /&gt;
&lt;BR /&gt;
Done!  Is it possible? It should be very simple but I cannot find any commands which print out messages in the manual. I tried &lt;BR /&gt;
&lt;BR /&gt;
echo&lt;BR /&gt;
&lt;BR /&gt;
but it is not supported. Is there a guide to .xsf scripting?</description>
      <pubDate>Thu, 10 Mar 2016 01:42:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45854#M11517</guid>
      <dc:creator>Ali_Askari</dc:creator>
      <dc:date>2016-03-10T01:42:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I print a message after executing an .xsf script?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45855#M11518</link>
      <description>I don't think that feature was added.  But when the script is done it gives your prompt back. &lt;BR /&gt;
&lt;BR /&gt;
You can do the same thing with python.  and print ("Done!") at the end. &lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2016 20:47:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45855#M11518</guid>
      <dc:creator>StephenW</dc:creator>
      <dc:date>2016-03-10T20:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I print a message after executing an .xsf script?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45856#M11519</link>
      <description>Ali, There's a guide out there somewhere.  I'll look for it - maybe someone can share it before I get to it.&lt;BR /&gt;
Meanwhile, there's a lot of example scripts on our GitHub page that you might be able to borrow code from.&lt;BR /&gt;
&lt;A href="https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/CLI_Scripting" target="_blank" rel="nofollow noreferrer noopener"&gt;https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/CLI_Scripting&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps!&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2016 20:54:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45856#M11519</guid>
      <dc:creator>Drew_C</dc:creator>
      <dc:date>2016-03-10T20:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I print a message after executing an .xsf script?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45857#M11520</link>
      <description>easy python script.  Just save it as a .py file and run it like you would a .xsf.&lt;BR /&gt;
&lt;BR /&gt;
exsh.clicmd('show vlan', True)    &lt;BR /&gt;
exsh.clicmd('show port conf no', True)    &lt;BR /&gt;
exsh.clicmd('show vlan "Default"', True)    &lt;BR /&gt;
print ("Done!")</description>
      <pubDate>Thu, 10 Mar 2016 20:55:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45857#M11520</guid>
      <dc:creator>StephenW</dc:creator>
      <dc:date>2016-03-10T20:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I print a message after executing an .xsf script?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45858#M11521</link>
      <description>Credit goes to Drew C.  Place these two lines at the end of your script&lt;BR /&gt;
&lt;BR /&gt;
set var done "Done!"&lt;BR /&gt;
show var done &lt;BR /&gt;
&lt;BR /&gt;
X450G2-48p-G4.16 # load sc s.xsf&lt;BR /&gt;
Done!                           &lt;BR /&gt;
* X450G2-48p-G4.17 # &lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2016 21:10:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45858#M11521</guid>
      <dc:creator>StephenW</dc:creator>
      <dc:date>2016-03-10T21:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I print a message after executing an .xsf script?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45859#M11522</link>
      <description>Thank you so much. That's exactly what I needed.</description>
      <pubDate>Thu, 10 Mar 2016 21:10:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45859#M11522</guid>
      <dc:creator>Ali_Askari</dc:creator>
      <dc:date>2016-03-10T21:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I print a message after executing an .xsf script?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45860#M11523</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
 you can also send info to log, like: create log entry "Test string..."&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Jarek&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2016 22:29:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-print-a-message-after-executing-an-xsf-script/m-p/45860#M11523</guid>
      <dc:creator>Jarek</dc:creator>
      <dc:date>2016-03-10T22:29:00Z</dc:date>
    </item>
  </channel>
</rss>

