Cellular Failover Monitoring via API? [SOLVED]

Solved
colo
Meraki Alumni (Retired)
Meraki Alumni (Retired)

Cellular Failover Monitoring via API? [SOLVED]

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.

 

  1. 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.
  2. 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.
  3. 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-c9...

Colin Lowenberg
Take the Meraki Challenge
solutions.meraki.com/challenge
1 Accepted Solution
BrandonS
Kind of a big deal


@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

- Ex community all-star (⌐⊙_⊙)

View solution in original post

4 Replies 4
PhilipDAth
Kind of a big deal
Kind of a big deal

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.

BrandonS
Kind of a big deal


@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

- Ex community all-star (⌐⊙_⊙)
colo
Meraki Alumni (Retired)
Meraki Alumni (Retired)

Awesome! Teamwork!

By the way the dashboard's documentation under Help > API Docs did not have this attribute, but the awesome Postman collection did have the answer!

Link to Postman: https://documenter.getpostman.com/view/897512/meraki-dashboard-api/2To9xm#f45ffad7-ad71-44d9-a4b3-c9...

It's a bit ironic when the API is so big that I don't know what's in it. We asked for it.
Colin Lowenberg
Take the Meraki Challenge
solutions.meraki.com/challenge
Steinbep
Getting noticed

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. 

Get notified when there are additional replies to this discussion.