Solved! Go to solution.
I use the calculation below to get the value in mega bits per second.
In your example for "wan1 sent" traffic the timestamps indicate you used the default resolution of 60.
result / (resolution * 125000) = Mbps
1562063 / (60 * 125000) = 0.21 Mbps
I seem to recall getting a lot of null values when I used the default resolution and timespan, like the data sometimes hasn't been saved to the meraki database, so I normally use 300 or higher for my resolution and couple that with the timespan value depending on how many data points you want returned.
I also noticed some really high values that seem to be out of range, maybe due to a counter reset, so you'll need to handle those exceptions as well.
There's https://developer.cisco.com/meraki/api-v1/#!get-network-appliance-uplinks-usage-history which gives you history over a period with various sample periods.
In the early access API there's https://developer.cisco.com/meraki/api-v1/#!get-organization-appliance-uplinks-usage-by-network
Thanks Sungod.
https://developer.cisco.com/meraki/api-v1/#!get-organization-appliance-uplinks-usage-by-network
Yes, the early-access option needs to be enabled.
Hi Sungod. Thank you! Can you tell me how I get to the bandwidth usage calculation with this API
https://developer.cisco.com/meraki/api-v1/#!get-network-appliance-uplinks-usage-history
?
In this case I have to add the bytes sent + those received and divide by time?
would that give the average bandwidth consumption within those 60 seconds?
I use the calculation below to get the value in mega bits per second.
In your example for "wan1 sent" traffic the timestamps indicate you used the default resolution of 60.
result / (resolution * 125000) = Mbps
1562063 / (60 * 125000) = 0.21 Mbps
I seem to recall getting a lot of null values when I used the default resolution and timespan, like the data sometimes hasn't been saved to the meraki database, so I normally use 300 or higher for my resolution and couple that with the timespan value depending on how many data points you want returned.
I also noticed some really high values that seem to be out of range, maybe due to a counter reset, so you'll need to handle those exceptions as well.
Tranks Taylor.
this example above I would have in wan 1 sent:
1 byte per 8 bits, right?
1/8 = 0.125
Since we want it in Mbps as that's how most ISP circuits are defined.
1,000,000 / 8,000,000 = 125,000
Thanks Taylor.
Is it possible to also monitor the bandwidth inside the VPN tunnel via API?