- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
schedule upgrades via Python module
Hi,
I have a usecase where I want to check each couple of weeks via the Meraki Python module if there are devices that need to be upgraded to latest stable release, and then schedule the upgrade, also via the python module.
The problem I have is that the Meraki module allows you to reschedule a 'planned" upgrade, but it does not allow
you to schedule an upgrade for devices that do not run the latest stable firmware, for which no upgrade is scheduled.
Any suggestions on how to schedule these "upgrades from scratch" would be highly appreciated
Solved! Go to solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @jsteurs and happy Friday!
One way that should work for you is to iterate through all of your Networks using the getNetworkFirmwareUpgrades endpoint. This will allow you to make comparisons to what firmware is currently installed vs which firmware are currently available, specifically which is stable, for your need. Additionally, it will show you if any firmware upgrade is already scheduled to be done.
If there is a discrepancy between what is stabled vs what is currently installed (with no pending upgrade) then you can use this logic to use the updateNetworkFirmwareUpgrades endpoint to schedule that upgrade to the current stable version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use the Meraki API to get the firmware status of all devices in your network. You’ll need to iterate over each device and check if it’s running the latest stable firmware. If a device is not running the latest stable firmware, you can schedule an upgrade.But, it's not possible schedule it directly, you need to use the Meraki API and cerate a python script for it.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why don't you use the dashboard for this?
https://documentation.meraki.com/General_Administration/Firmware_Upgrades/Managing_Firmware_Upgrades
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @jsteurs and happy Friday!
One way that should work for you is to iterate through all of your Networks using the getNetworkFirmwareUpgrades endpoint. This will allow you to make comparisons to what firmware is currently installed vs which firmware are currently available, specifically which is stable, for your need. Additionally, it will show you if any firmware upgrade is already scheduled to be done.
If there is a discrepancy between what is stabled vs what is currently installed (with no pending upgrade) then you can use this logic to use the updateNetworkFirmwareUpgrades endpoint to schedule that upgrade to the current stable version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, this totally works !
