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.
One solution they already use is polling the Dashboard API's Uplink status for a device,. It takes up to 30 minutes to poll all of the devices, one by one, looping through the entire inventory.
Another solution is Meraki's Alerts via Email and SNMP Traps, but we all agreed this is not the best solution and prefer to use an API. Webhooks was mentioned as a feature request for Meraki's engineering team.
SOLUTION: The recently released API call for getting the device status across all of the organization includes an attribute named usingCellularFailover and the call needs to be made just once for each organization.
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:
https://documenter.getpostman.com/view/897512/meraki-dashboard-api/2To9xm#f45ffad7-ad71-44d9-a4b3-c9ad74bfd9cc
... View more