Has anyone come up with a solution for monitoring the cellular status at scale? UPDATE: Kudos to PhilipDAth and spankym for the answer.
I met with a customer today with 4000+ locations using 4G cellular backup. One of the asks from the customer was to monitor cellular failover with the API in a more scalable way. Without a solution for monitoring/alerting, the sites failover to cellular and rack up huge bills for the Franchise owner.
Request:
curl -L -H 'X-Cisco-Meraki-API-Key: <key>' -X GET -H 'Content-Type: application/json' 'https://api.meraki.com/api/v0/organizations/[organizationId]/deviceStatuses'
Response:
[
{
"name": null,
"serial": "Q2QN-WVV9-W4KK",
"mac": "e0:55:3d:17:c6:87",
"publicIp": "64.103.26.54",
"networkId": "L_646829496481095933",
"status": "offline",
"usingCellularFailover": false,
"wan1Ip": "10.10.20.70",
"wan2Ip": null
}, ....
Postman Collection:
Solved! Go to solution.
@PhilipDAth wrote:Recently a new API was added that lets you return the status of every device in an organisation via a single API call. I don't know if it also returns the cellular status. This is it here:
https://dashboard.meraki.com/api_docs#list-the-status-of-every-meraki-device-in-the-organization
I think the "status" field changes when on cellular, but I have not tested it.
This seems like it should work well. Part of the output for each network when I just tried it is:
"usingCellularFailover":false
Recently a new API was added that lets you return the status of every device in an organisation via a single API call. I don't know if it also returns the cellular status. This is it here:
https://dashboard.meraki.com/api_docs#list-the-status-of-every-meraki-device-in-the-organization
I think the "status" field changes when on cellular, but I have not tested it.
@PhilipDAth wrote:Recently a new API was added that lets you return the status of every device in an organisation via a single API call. I don't know if it also returns the cellular status. This is it here:
https://dashboard.meraki.com/api_docs#list-the-status-of-every-meraki-device-in-the-organization
I think the "status" field changes when on cellular, but I have not tested it.
This seems like it should work well. Part of the output for each network when I just tried it is:
"usingCellularFailover":false
Colin-
Have a look at this post: https://community.meraki.com/t5/Solutions-APIs/Global-dashboard-search-via-API/m-p/12951
Not the same API call but similar idea to what you may be looking for.