07-06-2022 12:47 AM
Hi members,
I have discovered an issue where the portal displays the "license limit" and the "current device count", but the API does not display the "current device count", only the "license limit".
I have tried, postman, python meraki libs and the python requests library. All give the same output.
API: https://developer.cisco.com/meraki/api-v1/#!get-organization-licenses-overview
See screengrabs.
Thanks in advance
Python console output:
INFO:meraki:organizations, getOrganizationLicensesOverview - 200 OK
{
"expirationDate": "blah",
"licensedDeviceCounts": {
"MG21": 10000,
"MG41": 10000,
"MI-L": 1000,
"MI-M": 1000,
"MI-S": 1000,
"MI-XL": 1000,
"MI-XS": 1000,
"MS120-24": 10000,
"MS120-24P": 10000,
"MS120-48": 10000,
"MS120-48FP": 10000,
"MS120-48LP": 10000,
"MS120-8": 10000,
"MS120-8FP": 10000,
"MS120-8LP": 10000,
"MS125-24": 10000,
"MS125-24P": 10000,
"MS125-48FP": 10000,
"MS125-48LP": 10000,
"MS210-24": 10000,
"MS210-24P": 10000,
"MS210-48FP": 10000,
"MS210-48LP": 10000,
"MS220-24": 10000,
"MS220-24P": 10000,
"MS220-48": 10000,
"MS220-48FP": 10000,
"MS220-48LP": 10000,
"MS220-8": 10000,
"MS220-8P": 10000,
"MS225-24": 10000,
"MS225-24P": 10000,
"MS225-48": 10000,
"MS225-48FP": 10000,
"MS225-48LP": 10000,
"MS250-24": 10000,
"MS250-24P": 10000,
"MS250-48": 10000,
"MS250-48FP": 10000,
"MS250-48LP": 10000,
"MS320-24P": 10000,
"MS320-48": 10000,
"MS320-48FP": 10000,
"MS320-48LP": 10000,
"MS350-24": 10000,
"MS350-24P": 10000,
"MS350-24X": 10000,
"MS350-48FP": 10000,
"MS350-48LP": 10000,
"MS355-24X": 10000,
"MS355-48X": 10000,
"MS355-48X2": 10000,
"MS390-24A": 10000,
"MS390-48A": 10000,
"MS410-16": 10000,
"MS410-32": 10000,
"MS420-24": 10000,
"MS425-16": 10000,
"MS425-32": 10000,
"MT": 10000,
"MX100": 10000,
"MX105": 10000,
"MX250": 10000,
"MX400": 10000,
"MX450": 10000,
"MX60": 10000,
"MX60W": 10000,
"MX64": 10000,
"MX64W": 10000,
"MX65": 10000,
"MX65W": 10000,
"MX67": 10000,
"MX67C": 10000,
"MX67W": 10000,
"MX68": 10000,
"MX68CW": 10000,
"MX68W": 10000,
"MX75": 10000,
"MX80": 10000,
"MX84": 10000,
"MX85": 10000,
"MX95": 10000,
"VMX-L": 10000,
"VMX-M": 10000,
"VMX-S": 10000,
"Z1": 10000,
"Z3": 10000,
"Z3C": 10000,
"wireless": 10000
},
"status": "OK"
}postman
portal
07-06-2022 03:03 AM
I don't neccessarily think that is a bug, merely Meraki just not returning the current devices in use.
Instead you could use https://developer.cisco.com/meraki/api-v1/#!get-organization-inventory-devices and correlate that data with the current license limits, to see if you are over-/undersubscribing.
And just a final remark to those who may wonder; 10000 licenses of each item in the entire Meraki Portfolio, is not an error/bug. That's the way how Meraki implements a Cisco Enterprise Agreement.
07-06-2022 08:53 AM
One small item to add to the great answer from @Rasmus Hoffmann Birkelund is that be sure to only correlate devices in the organization inventory that are in a network. Devices not in any network do not count towards the device license limit.
06-13-2024 05:41 AM
Sorry to dig out such an old thread, however to me this API answer is actually more like an bug than anything else.
The tip with https://developer.cisco.com/meraki/api-v1/#!get-organization-inventory-devices works probably 99% out of the time, but my costumer is using MX105s in active/passive mode. I have 2 devices associated to the same network, but those are only consuming one license.
Looking at the return values it seems that entries with the mode 'addDevices' seems to have the correct count values but entries with the mode 'renew' only return the license limit values and not the current device count which I would actually expect.
This applies to https://developer.cisco.com/meraki/api-v1/get-organization-licenses-overview/ as well as to https://developer.cisco.com/meraki/api-v1/get-organization-licensing-coterm-licenses/
I mean the information is apparently available, otherwise I wouldn't be able to see the current device count in the license info dashboard page for my organization.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide