getDeviceSwitchPortsStatuses

RobHuijser
Getting noticed

getDeviceSwitchPortsStatuses

Hi,

 

I want to use this call in Python scripting and get the trafficInKbps field for the last 30 days, but the param input value does not seem to work. please help, look like a simple solution

 

ts=30*3600 (seconds)

switch_ports_json = dashboard.switch.getDeviceSwitchPortsStatuses(device_serial, timespan=ts)

 

or

 

switch_ports_json = dashboard.switch.getDeviceSwitchPortsStatuses(device_serial, t0='30')

 

None of these are working in my environment.

 

3 REPLIES 3
Inderdeep
Kind of a big deal

@RobHuijser :  /devices/{serial}/switch/ports/statuses/packets

https://developer.cisco.com/meraki/api-v1/#!get-device-switch-ports-statuses-packets

 

Regards
Inderdeep Singh
www.thenetworkdna.com ( Awarded by Cisco IT Blogs award 2020)

 

 

PhilipDAth
Kind of a big deal

I believe the time span parameter is a Unix time string in the zulu timezone.  You then get all data since then.

 

Something like this (may not be exactly correct):

2017-07-01T14:59:55.711

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.