API to pull firmware

SOLVED
ByronZ
Getting noticed

API to pull firmware

Hi, 

 

I am looking into calling the API to get a report of all of our Meraki device's firmware. Some of them's firmware version were returned correctly, while others return "Not running configured version". What does this message mean? In Meraki dashboard, I am able to look it up and it is showing what firmware it is running on.

 

The API I am using is:

https://api.meraki.com/api/v1/devices/{{serial}}

 

Am I the only one who has this issue?

 

Thanks

Byron

1 ACCEPTED SOLUTION
John-K
Meraki Employee

https://developer.cisco.com/meraki/api-v1/#!get-network-firmware-upgrades

 

Has a 'currentVersion' object for each product type in a network.

 

Pulling per device is unnecessary; all devices of a type (e.g. appliance, wireless) in the same network have to run the same firmware.

 

"Not running configured version" means it's not running whatever's in the firmwareUpgrades page for currentVersion. You  can usually schedule an upgrade to resolve this. Or, you can contact support if you don't expect this for that network.

View solution in original post

8 REPLIES 8
Ryan_Miles
Meraki Employee

My guess is the network has some older devices with maximum supported firmware versions below what the network is set at. What model devices are in the network returning this result for you?

the devices I have issued with are mostly MX64w. I will have to do some cross checking on what firmwares are showing in the dashboard

John-K
Meraki Employee

https://developer.cisco.com/meraki/api-v1/#!get-network-firmware-upgrades

 

Has a 'currentVersion' object for each product type in a network.

 

Pulling per device is unnecessary; all devices of a type (e.g. appliance, wireless) in the same network have to run the same firmware.

 

"Not running configured version" means it's not running whatever's in the firmwareUpgrades page for currentVersion. You  can usually schedule an upgrade to resolve this. Or, you can contact support if you don't expect this for that network.

ByronZ
Getting noticed

Well, our branches are small with one MX and one MS. I will check out the API you suggested and report back.

 

Thanks

ByronZ
Getting noticed

I think the firmwareUpgrades API works for me, and it displays the shortName that is matching on the dashboard.

 

I am still not sure why the firmware data returns at the devices/{{serial}} doesn't return the same value. If it doesn't work well, I prefer it does not return the fimware value. 

 

Thanks for providing the workaround.

 

Byron

@ByronZ@John-K 
My observation when receiving "Not running configured version" coincides with a device that has been offline a while and is now in a "dormant" status.  Use the https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-statuses API call to see device statuses for the organization. 

We've been doing some hardware upgrades and in some cases I've found the old equipment hasn't been removed from the network yet or the network is test network and only gets brought online at various times.  As a result, these devices show in dormant status and the firmware shows as "Not running configured version".

 

See if that is the case for you.

Tore
Getting noticed

Not unnecessary if you have pinned firmware for devices @John-K Then it would be very valuable to get the per device firmware.

Also this is something that should be possible: To have different firmwares for devices in the same network.

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.