[API]Licenses overview for co-term - possible bug

shablamy
New here

[API]Licenses overview for co-term - possible bug

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"
}

postmanpostmanportalportal

3 Replies 3
rhbirkelund
Kind of a big deal

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.

 

LinkedIn ::: https://blog.rhbirkelund.dk/

Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution 🙂

All code examples are provided as is. Responsibility for Code execution lies solely your own.

One small item to add to the great answer from @rhbirkelund 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.

WifiPhil
Comes here often

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.

Get notified when there are additional replies to this discussion.