<?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 [Resolved] ELM - AXL API : Getting Licenses Available and installed in Management</title>
    <link>https://community.cisco.com/t5/management/resolved-elm-axl-api-getting-licenses-available-and-installed/m-p/3554448#M1952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Is there a way to retrieve the license statistics available and installed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN lang="en" style="font-family: calibri, verdana, arial, sans-serif;"&gt;I tried to recover them through the AXL API made available by cisco but without success.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN lang="en"&gt;I retrieve the license number through the following query &lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;SELECT name,value FROM TABLE( FUNCTION LicenseTotals() )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;(pkid,name,value,UserValue,DeviceValue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-size: 16px; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="en" style="color: #212121; font-size: 16px;"&gt;but I can not recover the number of installed licenses, the number of available licenses and the state of licenses as shown in the administration panel of the Enterprise License Manager.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 16px;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2018 13:24:33 GMT</pubDate>
    <dc:creator>digiudev</dc:creator>
    <dc:date>2018-05-08T13:24:33Z</dc:date>
    <item>
      <title>[Resolved] ELM - AXL API : Getting Licenses Available and installed</title>
      <link>https://community.cisco.com/t5/management/resolved-elm-axl-api-getting-licenses-available-and-installed/m-p/3554448#M1952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Is there a way to retrieve the license statistics available and installed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN lang="en" style="font-family: calibri, verdana, arial, sans-serif;"&gt;I tried to recover them through the AXL API made available by cisco but without success.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN lang="en"&gt;I retrieve the license number through the following query &lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;SELECT name,value FROM TABLE( FUNCTION LicenseTotals() )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;(pkid,name,value,UserValue,DeviceValue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-size: 16px; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="en" style="color: #212121; font-size: 16px;"&gt;but I can not recover the number of installed licenses, the number of available licenses and the state of licenses as shown in the administration panel of the Enterprise License Manager.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 16px;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 13:24:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/resolved-elm-axl-api-getting-licenses-available-and-installed/m-p/3554448#M1952</guid>
      <dc:creator>digiudev</dc:creator>
      <dc:date>2018-05-08T13:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: ELM - AXL API : Getting License Available and installed</title>
      <link>https://community.cisco.com/t5/management/resolved-elm-axl-api-getting-licenses-available-and-installed/m-p/3554449#M1953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just worked it out to a nodejs script to get the stats from api. Ping me via spark if any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;var request = require("request");&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;var options = { method: 'GET',&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN&gt;&amp;nbsp; url: '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://xxx.xxx.xxx.xxx/elm-resources/license/status" rel="nofollow" target="_blank"&gt;https://xxx.xxx.xxx.xxx/elm-resources/license/status&lt;/A&gt;&lt;SPAN&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; headers: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; { &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'cache-control': 'no-cache',&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; authorization: 'Basic [Your username:password in base64 string]' } };&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;request(options, function (error, response, body) {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; if (error) throw new Error(error);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; console.log(body);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 04:24:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/resolved-elm-axl-api-getting-licenses-available-and-installed/m-p/3554449#M1953</guid>
      <dc:creator>binli</dc:creator>
      <dc:date>2018-05-09T04:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: ELM - AXL API : Getting License Available and installed</title>
      <link>https://community.cisco.com/t5/management/resolved-elm-axl-api-getting-licenses-available-and-installed/m-p/3554450#M1954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Bin, it works.&lt;BR /&gt;It was necessary enable Cisco Prime LM Resource Legacy API and Cisco Prime LM Resource API on the device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://www.cisco.com/c/en/us/support/docs/cloud-systems-management/hosted-collaboration-mediation/200649-Troubleshooting-Issues-while-Adding-New.html" rel="nofollow" target="_blank"&gt;https://www.cisco.com/c/en/us/support/docs/cloud-systems-management/hosted-collaboration-mediation/200649-Troubleshooting-Issues-while-Adding-New.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PLM API services must be activeted in order to fix the issue.&lt;BR /&gt;Run the following commands from PLM CLI.&lt;/P&gt;&lt;P&gt;admin:utils service activate Cisco Prime LM Resource API&lt;BR /&gt;Service Manager is running&lt;BR /&gt;Cisco Prime LM Resource API[STARTED]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;admin:utils service activate Cisco Prime LM Resource Legacy API&lt;BR /&gt;Service Manager is running&lt;BR /&gt;Cisco Prime LM Resource Legacy API[STARTED]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 06:53:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/resolved-elm-axl-api-getting-licenses-available-and-installed/m-p/3554450#M1954</guid>
      <dc:creator>digiudev</dc:creator>
      <dc:date>2018-05-10T06:53:11Z</dc:date>
    </item>
  </channel>
</rss>

