Set Sim Meraki MG Script

AugustMartens
Meraki Employee
Meraki Employee

Set Sim Meraki MG Script

I was wondering if someone wrote a script to toggle between bandwidth-capped data plans on the 2 different SIMs each night. 🙂

I looked into the API docs, but couldn't find the right parameter.

https://developer.cisco.com/meraki/api/update-device-cellular-sims/

Thanks!

4 Replies 4
alemabrahao
Kind of a big deal
Kind of a big deal

As far I know the Meraki API does not currently support changing the active SIM on the MG devices.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
javalins
Meraki Employee
Meraki Employee

https://developer.cisco.com/meraki/api/get-device-cellular-sims/

You should be able to adjust the "IsPrimary" parameter from true to false and trigger a SIM failover event assuming SIM Failover is enabled.  Try it out!

CrazyIvan
Here to help

Howdy,

Reviving this post as I am working on a use case similar to the OP. Two things that we would need for this is 1) know accumulated bandwidth on primary link (with ability to reset) and 2) ability to trigger a failover. I don't see any of these functions over the API/Products/cellularGateway section. As the OP and javalins mention, the API calls under API/Platform do show one call: isPrimary, that in theory could be used but can that call be applied to a MG? I don't have a MG to test, I was hoping someone could deny or confirm this... 🙃

 

javalins
Meraki Employee
Meraki Employee

Hi @CrazyIvan, MGs are the only Meraki products that support dual SIMs, this call was designed for the MG platform.  Still no ability to trigger based on data usage or monitor data usage.

Get notified when there are additional replies to this discussion.
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.