MX WAN Interface Send/Receive Traffic Statistics?

Solved
Prodrick
Building a reputation

MX WAN Interface Send/Receive Traffic Statistics?

Which Dashboard API Endpoint might I call to get the send/receive traffic statistics for an MX Security Appliance?

1 Accepted Solution
alemabrahao
Kind of a big deal
Kind of a big deal

Take a look at this discussion.

 

https://community.meraki.com/t5/Developers-APIs/API-to-monitor-WAN-port-traffic/m-p/171213

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.

View solution in original post

7 Replies 7
alemabrahao
Kind of a big deal
Kind of a big deal

The only statistics I know about being able to get via API is what interface are being used and the amount of sent and received data.

 

How about netflow?

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Prodrick
Building a reputation

I’m already exporting Netflow/IPFIX but not via API. Which endpoint were you referring to?  Thanks so much. 

alemabrahao
Kind of a big deal
Kind of a big deal

MX 😉

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Prodrick
Building a reputation

The only endpoints I am aware of are the Uplink Loss and Latency and the Uplink Status, which if my memory serves me do not provide port/interface or send/receive data.

alemabrahao
Kind of a big deal
Kind of a big deal

Take a look at this discussion.

 

https://community.meraki.com/t5/Developers-APIs/API-to-monitor-WAN-port-traffic/m-p/171213

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Prodrick
Building a reputation

Thanks so much.  This is what the default response looks like:

curl -L --request GET \
--url 'https://api.meraki.com/api/v1/networks/[Network_ID]/appliance/uplinks/usageHistory' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Accept: application/json'
[{"startTime":"2023-12-07T03:28:00Z","endTime":"2023-12-07T03:29:00Z","byInterface":[{"interface":"wan1","sent":247563,"received":332677}]},{"startTime":"2023-12-07T03:29:00Z","endTime":"2023-12-07T03:30:00Z","byInterface":[{"interface":"wan1","sent":261868,"received":250274}]},{"startTime":"2023-12-07T03:30:00Z","endTime":"2023-12-07T03:31:00Z","byInterface":[{"interface":"wan1","sent":190085,"received":238026}]},{"startTime":"2023-12-07T03:31:00Z","endTime":"2023-12-07T03:32:00Z","byInterface":[{"interface":"wan1","sent":394777,"received":448573}]},{"startTime":"2023-12-07T03:32:00Z","endTime":"2023-12-07T03:33:00Z","byInterface":[{"interface":"wan1","sent":313629,"received":365290}]},{"startTime":"2023-12-07T03:33:00Z","endTime":"2023-12-07T03:34:00Z","byInterface":[{"interface":"wan1","sent":181944,"received":213173}]},{"startTime":"2023-12-07T03:34:00Z","endTime":"2023-12-07T03:35:00Z","byInterface":[{"interface":"wan1","sent":376337,"received":432645}]}

sungod
Kind of a big deal

Get notified when there are additional replies to this discussion.