cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3763
Views
2
Helpful
7
Replies

MX WAN Interface Send/Receive Traffic Statistics?

Prodrick
Level 4
Level 4

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

1 Accepted Solution

Accepted Solutions

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

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 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

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

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 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.

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

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

MX 😉

I am not a Cisco 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.

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.

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

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 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.

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}]}