Dashboard API issues with SM clients (v0 and v1)

harrys
Here to help

Dashboard API issues with SM clients (v0 and v1)

Hi! I'm new to the Meraki API but I've been using many other API's before, so I believe I have a fair knowledge on how these should work. Currently I'm having these two problems - I hope someone could help me out.

 

Problem 1: The v1 documenatation seems to be very narrow or I'm looking at the wrong place. For starters, I can't find this functionality anywhere in the v1 documentation: https://developer.cisco.com/meraki/api/#!get-network-sm-devices. Nevertheless I managed to get this list via v0, so no biggie.

 

Problem 2: This one I'm able to run this (https://developer.cisco.com/meraki/api/#!get-network-sm-connectivity) in v0, but the lastSeenAt timestamps are either wrong or I'm interpreting them wrong. I have a bunch of devices and when I check the conncetivity stats, the latest lastSeenAt timestamps might be many hours or even days in the past. firstSeenAt timestamps are always 0.0. Am I doing something wrong or is there a problem here? I'm trying to have a almost real-time logging of device connectivity (because Dashboard only show 24h in the past).

 

I'd really appreciate some help here. Thanks!

 

4 Replies 4
PhilipDAth
Kind of a big deal
Kind of a big deal

Which language or API are you using?

harrys
Here to help

I’m using English and this is the API call I’m trying: /networks/{network_id}/sm/{id}/connectivity

helmink
New here

Hello! This might not be related to your problem, but did you also have timestamps that start at 1970-01-01T00:00:00.000000Z on the firstSeenAt?

sungod
Kind of a big deal

Not sure why you say you can't find the first call, the link you give takes you directly to it, it defaults to latest API which is v1.

If you explicitly select v1 it'll take you to the same page, but there'll be v1 in the url... https://developer.cisco.com/meraki/api-v1/get-network-sm-devices/

 

For the second call, you are using v0, that is way past sunset and not guaranteed to work so the return values are suspect, see https://community.meraki.com/t5/Developers-APIs/Dashboard-API-v0-End-of-Support-Sunset-amp-Grace-Per...

 

 

You should only use v1, this looks like the equivalent call...

 

https://developer.cisco.com/meraki/api-v1/get-network-sm-device-connectivity/

 

 

 

Get notified when there are additional replies to this discussion.