<?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: XMC - System Variables in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xmc-system-variables/m-p/59702#M7520</link>
    <description>Hello all,&lt;BR /&gt;
&lt;BR /&gt;
according GTAC the $STATUS variable isn't supported with python.&lt;BR /&gt;
The documentation will be revised in future.&lt;BR /&gt;
&lt;BR /&gt;
Thank you to GTAC for clarification.&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Wed, 14 Mar 2018 03:14:00 GMT</pubDate>
    <dc:creator>StephanH</dc:creator>
    <dc:date>2018-03-14T03:14:00Z</dc:date>
    <item>
      <title>XMC - System Variables</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xmc-system-variables/m-p/59701#M7519</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
there are a lot of system variables in XMC for scripting. I test some of the variables with python on XMC together with an xos switch. All works fine.&lt;BR /&gt;
&lt;BR /&gt;
But the variable $STATUS returns always 1 no matter the command works or not.&lt;BR /&gt;
&lt;BR /&gt;
Here is the description from the manual:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;"$STATUS&lt;/I&gt;&lt;I&gt;The execution status of the previously executed ExtremeXOS command: &lt;/I&gt;&lt;B&gt;&lt;I&gt;0&lt;/I&gt;&lt;/B&gt;&lt;I&gt; if the command executed successfully, non-zero otherwise."&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
I tried the following in python:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;cli_result = emc_cli.send("create vlan test")&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;check = emc_vars["STATUS"]&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;print check&lt;/I&gt;&lt;BR /&gt;
The result for &lt;I&gt;print check &lt;/I&gt;allways 1 no matter if I do the command one time or twice.&lt;BR /&gt;
&lt;BR /&gt;
If I do the command only once the VLAN was created =&amp;gt; I expected the value "0" for STATUS&lt;BR /&gt;
&lt;BR /&gt;
If I do the command twice I received an error (because of the vlan is always there) =&amp;gt; I expected the value != "0" for STATUS&lt;BR /&gt;
&lt;BR /&gt;
My question is my expectation is wrong? Or what do I wrong?&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;BR /&gt;
&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2018 04:02:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xmc-system-variables/m-p/59701#M7519</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-03-01T04:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: XMC - System Variables</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xmc-system-variables/m-p/59702#M7520</link>
      <description>Hello all,&lt;BR /&gt;
&lt;BR /&gt;
according GTAC the $STATUS variable isn't supported with python.&lt;BR /&gt;
The documentation will be revised in future.&lt;BR /&gt;
&lt;BR /&gt;
Thank you to GTAC for clarification.&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Mar 2018 03:14:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/xmc-system-variables/m-p/59702#M7520</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-03-14T03:14:00Z</dc:date>
    </item>
  </channel>
</rss>

