<?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: Programmatically getting CUCM to update license usage details in Management</title>
    <link>https://community.cisco.com/t5/management/programmatically-getting-cucm-to-update-license-usage-details/m-p/4128820#M3451</link>
    <description>&lt;P&gt;Did you try the AXL &amp;lt;doUpdateLicenseUsage&amp;gt; request? &lt;A href="https://pubhub.devnetcloud.com/media/axl-schema-reference/docs/Files/AXLSoap_doUpdateLicenseUsage.html#Link452" target="_blank"&gt;https://pubhub.devnetcloud.com/media/axl-schema-reference/docs/Files/AXLSoap_doUpdateLicenseUsage.html#Link452&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2020 18:44:50 GMT</pubDate>
    <dc:creator>dstaudt</dc:creator>
    <dc:date>2020-07-31T18:44:50Z</dc:date>
    <item>
      <title>Programmatically getting CUCM to update license usage details</title>
      <link>https://community.cisco.com/t5/management/programmatically-getting-cucm-to-update-license-usage-details/m-p/4127992#M3450</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to solve some license issues using the AXL API. I can read the license values from CUCM (not PLM) using the SQL statement below:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#339966"&gt;admin:run sql SELECT name,value FROM TABLE( FUNCTION LicenseTotals() )(pkid,name,value,UserValue,DeviceValue)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;name value&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;================= ==========================&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;CUWL Standard 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;EnhancedPlus 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;Enhanced 25&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;Basic 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;Essential 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;TelePresence Room 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;TotalUsers 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;TotalDevices 23&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;Timestamp 2020-07-30 12:47:33&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#339966"&gt;ElmLastContact 1536841928&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;What I want to do is to programmatically force an update to the license details after using AXL to update device ownership. In the ccmadmin web interface this can be done by clicking the &lt;EM&gt;Update Usage Details&lt;/EM&gt; button on the &lt;EM&gt;System &amp;gt; License &amp;gt; License Management&lt;/EM&gt; page.&lt;/P&gt;&lt;P&gt;I cannot see any way of doing this in the AXL API.&lt;/P&gt;&lt;P&gt;Looking at what happens when the button is pressed a POST request is sent to &lt;FONT color="#339966"&gt;&lt;A href="https://10.4.48.1/ccmadmin/licensingreportEdit.do?key=true" target="_blank"&gt;https://10.4.48.1/ccmadmin/licensingreportEdit.do?key=true&lt;/A&gt;&lt;/FONT&gt; which is just the standard URL of the page.&lt;/P&gt;&lt;P&gt;The POST data was:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;struts.token.name=token&amp;amp;token=O07T69QLEFEID9IRHZWUMJVI4KWT7SOL&amp;amp;registrationStatusHidden=CSSMREGSTATUS_REGISTERED&amp;amp;action=ACTIONS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can replicate this using Postman and (ultimately) using something like requests in Python?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 12:11:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/programmatically-getting-cucm-to-update-license-usage-details/m-p/4127992#M3450</guid>
      <dc:creator>James Hawkins</dc:creator>
      <dc:date>2020-07-30T12:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically getting CUCM to update license usage details</title>
      <link>https://community.cisco.com/t5/management/programmatically-getting-cucm-to-update-license-usage-details/m-p/4128820#M3451</link>
      <description>&lt;P&gt;Did you try the AXL &amp;lt;doUpdateLicenseUsage&amp;gt; request? &lt;A href="https://pubhub.devnetcloud.com/media/axl-schema-reference/docs/Files/AXLSoap_doUpdateLicenseUsage.html#Link452" target="_blank"&gt;https://pubhub.devnetcloud.com/media/axl-schema-reference/docs/Files/AXLSoap_doUpdateLicenseUsage.html#Link452&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 18:44:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/programmatically-getting-cucm-to-update-license-usage-details/m-p/4128820#M3451</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2020-07-31T18:44:50Z</dc:date>
    </item>
  </channel>
</rss>

