SpeedTest via API

AutomationDude
Building a reputation

SpeedTest via API

Hello guys,

 

Trying to solve a a problem that shouldn't be solved with APIs by using APIs. Was wondering if you have any input.

 

I have a customer that wants to be alerted every time any of their networks (all with different ISPs) goes to an extremely low download speed below a certain threshold. There is the internal dashboard tool to view speed and of course speed test websites, but there isn't a direct API endpoint for speed.

 

I am going to try to use this one to infer if the speed is too slow however:

 

https://developer.cisco.com/meraki/api-latest/#!get-device-live-tools-ping

 

Is this a reasonable approach? Let me know if anything else comes to mind 🙂

 

8 REPLIES 8
sungod
Head in the Cloud

Might be worth trying...

 

https://developer.cisco.com/meraki/api-latest/#!get-organization-devices-uplinks-loss-and-latency

 

...it'll give you the loss+latency for a defined period for all MX devices in one go.

 

Run it every few minutes and look for increases vs. previous few samples or exceeding some learned/fixed thresholds.

 

RomanMD
Building a reputation

Hi,

while this make sense as a request, Meraki says not to rely on the Dashboard Speed test, since it is there just for having some idea, not for really getting correct figures.

This task has to be accomplished by installing a test-point in the network which will do this.That way you not only test the Internet line itself, but also the devices in between... Cisco has this feature with Thousand Eyes and there are rumours that Thousand Eyes will have a "Meraki" version...

 

On the other hand, read here: https://community.meraki.com/t5/API-Early-Access-Discussions/SpeedTest-Endpoint-not-working-as-expec...

RaphaelL
Kind of a big deal

There is an endpoint but it is only available if you have inSight ( with the licence ).

 

{0}/devices/{1}/liveTools/speedTest?interface=wan1

 

Somehow , I can't find it in the openApispec nor the documentation.... It might have been renamed or removed.

RaphaelL
Kind of a big deal

RaphaelL_0-1662467740502.png

 

It is probably in Beta , and you can only get the download speed not the upload speed... 

AxL1971
Building a reputation

I have written a simple application not using any API to download and upload a file and calculate download/uploads speeds.

mlefebvre
Getting noticed

How often should this be tested for? What destinations should be tested to (per-site)?  Are they aware that each speed test is potentially interfering with their own traffic? What is an "acceptable" threshold of speed? This is the sort of thing that really needs in-depth requirements and a lengthy caveat that if they test too often, they are only hurting themselves more by doing so..

 

Insight has a way to do API speedtests but I've not yet played with it too much. Having Insight monitor their key applications might be more helpful.

AutomationDude
Building a reputation

Thank you all for your input, gonna take this to the drawing board.

Crocker
Building a reputation

Any chance you control a server/workstation on both ends of the link? Could look at iPerf testing between them. It's a little rough, but you can script around the iPerf3.exe to automate testing and log results per site.

Get notified when there are additional replies to this discussion.