<?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: Get XMC licenses via script or Rest-API in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79028#M8862</link>
    <description>Hi Stephan,&lt;BR /&gt;
&lt;BR /&gt;
Could you share your python script which will look for license file ? if you have one already.&lt;BR /&gt;
&lt;BR /&gt;
The license file is located in below location but we have to use the pointer to locate below file.&lt;BR /&gt;
&lt;BR /&gt;
root@xmc52.extremenetworks.com:/usr/local/Extreme_Networks/NetSight/appdata/license$ ls&lt;BR /&gt;
NetSightEval.lic&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Suresh.B&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Aug 2018 14:14:00 GMT</pubDate>
    <dc:creator>Bharathiraja__S</dc:creator>
    <dc:date>2018-08-14T14:14:00Z</dc:date>
    <item>
      <title>Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79025#M8859</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
is there a way to get the current licenses via script or REST-API?&lt;BR /&gt;
&lt;BR /&gt;
I need the info how many End-Systems for NAC are licensed to proceed in another script.&lt;BR /&gt;
If I can get the license string it's easy do find out that value.&lt;BR /&gt;
&lt;BR /&gt;
Or is there another place where I can find the information how many end systems for NAC are licensed?&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 11:37:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79025#M8859</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-08-14T11:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79026#M8860</link>
      <description>Hi SH,&lt;BR /&gt;
&lt;BR /&gt;
Current ES count updated in NAC manager ---&amp;gt; configuration tab--&amp;gt;  license status.&lt;BR /&gt;
&lt;BR /&gt;
if you right click on a appliance and go to web view ---&amp;gt; End system authentication status , where we can see how many ES are managed during last 24 horus.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Suresh.B&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 11:50:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79026#M8860</guid>
      <dc:creator>Bharathiraja__S</dc:creator>
      <dc:date>2018-08-14T11:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79027#M8861</link>
      <description>Hello Suresh,&lt;BR /&gt;
&lt;BR /&gt;
thank you for you fast replay. But I need the info in an script/python program, because of I will process the license information in an script.&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 11:56:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79027#M8861</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-08-14T11:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79028#M8862</link>
      <description>Hi Stephan,&lt;BR /&gt;
&lt;BR /&gt;
Could you share your python script which will look for license file ? if you have one already.&lt;BR /&gt;
&lt;BR /&gt;
The license file is located in below location but we have to use the pointer to locate below file.&lt;BR /&gt;
&lt;BR /&gt;
root@xmc52.extremenetworks.com:/usr/local/Extreme_Networks/NetSight/appdata/license$ ls&lt;BR /&gt;
NetSightEval.lic&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Suresh.B&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:14:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79028#M8862</guid>
      <dc:creator>Bharathiraja__S</dc:creator>
      <dc:date>2018-08-14T14:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79029#M8863</link>
      <description>Thank you very much Suresh,&lt;BR /&gt;
&lt;BR /&gt;
that's what I need. I had forgotten that there is this file.&lt;BR /&gt;
&lt;BR /&gt;
I have no python script up to now, because I needed first the info how I can get the license .</description>
      <pubDate>Tue, 14 Aug 2018 14:14:01 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79029#M8863</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-08-14T14:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79030#M8864</link>
      <description>Hi Stephan,&lt;BR /&gt;
&lt;BR /&gt;
Sure , &lt;BR /&gt;
&lt;BR /&gt;
Please share us the status once you able to get the info by using Python.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Suresh.B&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:53:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79030#M8864</guid>
      <dc:creator>Bharathiraja__S</dc:creator>
      <dc:date>2018-08-14T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79031#M8865</link>
      <description>Hello Suresh,&lt;BR /&gt;
&lt;BR /&gt;
here a little Python script working for me:&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;
import re  import sys      #open license file  try:   f = open('/usr/local/Extreme_Networks/NetSight/appdata/license/NacEnterprise.lic', 'r')  except IOError:      print "Can't open license file"      sys.exit(0)    #sum single licenses   licenses = 0    for x in f:   reg = re.search(r"IA-ES-([13]|12)K", x)   lic = reg.group(1)   lic = int(lic) * 1000   licenses = licenses + lic    #print sum of single licenses  print licenses&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:53:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79031#M8865</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-08-14T15:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79032#M8866</link>
      <description>One little hint.&lt;BR /&gt;
I do not care about other licenses in the license file (maybe there are assessment licenses or anything else) with the script. Because in my case I have only NAC licenses!!!</description>
      <pubDate>Tue, 14 Aug 2018 15:53:01 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79032#M8866</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-08-14T15:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79033#M8867</link>
      <description>Thanks for sharing!&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:53:02 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79033#M8867</guid>
      <dc:creator>Drew_C</dc:creator>
      <dc:date>2018-08-14T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79034#M8868</link>
      <description>You might also try your luck with GraphQL based NBI (&lt;A href="https://XMC-IP:8443/nbi/graphiql/index.html?query=%7B%0A%20%20accessControl%20%7B%0A%20%20%20%20appliances%20%7B%0A%20%20%20%20%20%20name%0A%20%20%20%20%20%20licenseData%0A%20%20%20%20%20%20licensed%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D" target="_blank" rel="nofollow noreferrer noopener"&gt;https://&lt;XMC-IP&gt;:8443/nbi/graphiql/index.html?query=%7B%0A%20%20accessControl%20%7B%0A%20%20%20...&lt;/XMC-IP&gt;&lt;/A&gt;) or Reporting SOAP API (&lt;A href="https://emc.extremenetworks.com/content/oneview/docs/connect/docs/reporting_web_service/r_ov_connect_reportingwebservice.htm" target="_blank" rel="nofollow noreferrer noopener"&gt;https://emc.extremenetworks.com/content/oneview/docs/connect/docs/reporting_web_service/r_ov_connect...&lt;/A&gt;)&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:53:03 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79034#M8868</guid>
      <dc:creator>Alexander_Kurak</dc:creator>
      <dc:date>2018-08-14T15:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79035#M8869</link>
      <description>Hello Alexander,&lt;BR /&gt;
&lt;BR /&gt;
thank you for you hint. &lt;BR /&gt;
&lt;BR /&gt;
I love the Rest(SOAP)-API but the report_web_services are quite complex (for me).&lt;BR /&gt;
Because of you have to figure out the correct data types Therefore to read the license info from the mentioned file is much easier.&lt;BR /&gt;
&lt;BR /&gt;
But you hint with GraphiQL is a good alternative.&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:53:04 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79035#M8869</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-08-14T15:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79037#M8871</link>
      <description>Hello James,&lt;BR /&gt;
&lt;BR /&gt;
I do not know a printed documentation. But I think all you need is here:&lt;BR /&gt;
&lt;BR /&gt;
  GraphiQL for testing and documentation&lt;A href="https://172.16.10.210:8443/nbi/graphiql/index.html" target="_blank" rel="nofollow noreferrer noopener"&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  &lt;A href="https://172.16.10.210:8443/nbi/graphiql/index.html" target="_blank" rel="nofollow noreferrer noopener"&gt;https://&lt;XMC-IP-ADDRESS&gt;:8443/nbi/graphiql/index.html&lt;/XMC-IP-ADDRESS&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  &lt;BR /&gt;
&lt;BR /&gt;
  GraphQL schema&lt;BR /&gt;
&lt;BR /&gt;
  &lt;A href="https://172.16.10.210:8443/nbi/graphql/schema.idl" target="_blank" rel="nofollow noreferrer noopener"&gt;https://&lt;XMC-IP-ADDRESS&gt;:8443/nbi/graphql/schema.idl&lt;/XMC-IP-ADDRESS&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  &lt;BR /&gt;
&lt;BR /&gt;
  GraphQL API&lt;BR /&gt;
&lt;BR /&gt;
  &lt;A href="https://172.16.10.210:8443/nbi/graphql" target="_blank" rel="nofollow noreferrer noopener"&gt;https://&lt;XML-IP-ADDRESS&gt;:8443/nbi/graphql&lt;/XML-IP-ADDRESS&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Have fun!&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:53:06 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79037#M8871</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-08-14T15:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79038#M8872</link>
      <description>For the XMC version I use there are two links that gave me some intro into the GraphQL:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://XMC:8443/nbi/graphql/schema.idl" target="_blank" rel="nofollow noreferrer noopener"&gt;https://XMC:8443/nbi/graphql/schema.idl&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://XMC:8443/nbi/graphiql/index.html" target="_blank" rel="nofollow noreferrer noopener"&gt;https://XMC:8443/nbi/graphiql/index.html&lt;/A&gt; (make sure to open the panel on the right side):&lt;BR /&gt;
&lt;A href="https://i.snag.gy/l6txLk.jpg" target="_blank" rel="nofollow noreferrer noopener"&gt;https://i.snag.gy/l6txLk.jpg&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:53:07 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79038#M8872</guid>
      <dc:creator>Alexander_Kurak</dc:creator>
      <dc:date>2018-08-14T15:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79039#M8873</link>
      <description>&lt;P&gt;HI, if I try a simple query from the NBI explorer of XMC it works:&lt;/P&gt;&lt;P&gt;query{&lt;BR /&gt;&amp;nbsp; network {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; devices {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; id&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; chassisId&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; deviceData {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sysDescr&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I try from Postman the same query in the body of the request of type GraphQL with Basic authentication (I use my root account and password) and the url to XMC as follow&amp;nbsp;&lt;A href="https://192.168.30.34:8443/nbi/graphql" target="_blank" rel="nofollow noreferrer noopener"&gt;https://192.168.30.34:8443/nbi/graphql&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a 400 bad request answer from XMC&lt;/P&gt;&lt;P&gt;How do I need to do the same query from Postman instead of NBI Explorer in manner it works?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 18:51:16 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79039#M8873</guid>
      <dc:creator>Antonio_Opromol</dc:creator>
      <dc:date>2021-01-18T18:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79040#M8874</link>
      <description>&lt;P&gt;Solved thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 19:04:03 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79040#M8874</guid>
      <dc:creator>Antonio_Opromol</dc:creator>
      <dc:date>2021-01-18T19:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get XMC licenses via script or Rest-API</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79041#M8875</link>
      <description>&lt;P&gt;As I have now finally learned, there is unfortunately no way to query the licenses via the API.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 21:33:30 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-xmc-licenses-via-script-or-rest-api/m-p/79041#M8875</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2021-07-22T21:33:30Z</dc:date>
    </item>
  </channel>
</rss>

