cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
539
Views
0
Helpful
1
Replies

Programmatically getting CUCM to update license usage details

James Hawkins
Level 8
Level 8

Hi,

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:

admin:run sql SELECT name,value FROM TABLE( FUNCTION LicenseTotals() )(pkid,name,value,UserValue,DeviceValue)
name value
================= ==========================
CUWL Standard 0
EnhancedPlus 0
Enhanced 25
Basic 0
Essential 0
TelePresence Room 0
TotalUsers 2
TotalDevices 23
Timestamp 2020-07-30 12:47:33
ElmLastContact 1536841928

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 Update Usage Details button on the System > License > License Management page.

I cannot see any way of doing this in the AXL API.

Looking at what happens when the button is pressed a POST request is sent to https://10.4.48.1/ccmadmin/licensingreportEdit.do?key=true which is just the standard URL of the page.

The POST data was:

struts.token.name=token&token=O07T69QLEFEID9IRHZWUMJVI4KWT7SOL&registrationStatusHidden=CSSMREGSTATUS_REGISTERED&action=ACTIONS

Does anyone know how I can replicate this using Postman and (ultimately) using something like requests in Python?

 

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee