Cycle Port API

NolanHerring
Kind of a big deal

Cycle Port API

Working on a script to disable POE on a switch port, then re-enable it 60 seconds later.

 

Just occurred to me this would be so much easier if there was an API to do the port cycle button

 

I don't see it, does anyone know if it exists anywhere hidden?

Nolan Herring | nolanwifi.com
TwitterLinkedIn
3 Replies 3
MerakiDave
Meraki Employee
Meraki Employee

Good idea @NolanHerring but that's not there (or hidden) today, perhaps a good wish.  For now, you would need to leverage the update-a-switch-port PUT command twice, with a sleep timer in between, to toggle the poeEnabled parameter off and on.  https://api.meraki.com/api_docs#update-a-switch-port 

 

Alex-2021
Here to help

Hey Dave, is this still the only way to be able to accomplish this task?

LearningIsFun
Getting noticed

Posting update as I was looking for this API call.

 

https://developer.cisco.com/meraki/api/cycle-device-switch-ports/

Get notified when there are additional replies to this discussion.