cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cellular Failover Monitoring via API? [SOLVED]

SOLVED
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

Accepted Solutions
Head in the Cloud

Re: Cellular Failover Monitoring via API?


@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

4 REPLIES 4
Highlighted
Kind of a big deal

Re: Cellular Failover Monitoring via API?

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.

Getting noticed

Re: Cellular Failover Monitoring via API?

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. 

Head in the Cloud

Re: Cellular Failover Monitoring via API?


@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

Meraki Alumni (Retired)

Re: Cellular Failover Monitoring via API?

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
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.