03-07-2023 07:25 AM
Hello,
I am working on a script that will perform a ping test between every site/network in our organisation and return the results.
ping_result_response = requests.get(f"{MERAKI_API_URL}{ping_result_url}", headers=headers,
verify=f"{root_path}/Cisco Umbrella Root CA.crt")
ping_result_json = ping_result_response.json()
if ping_result_json['status'] == 'complete':
ping_result_json = ping_result_response.json()
print(ping_result_json)
However after I do the GET request I don't seem to get teh full results. This is an example
{'pingId': '000000000000000', 'url': '/devices/0000-0000-0000/liveTools/ping/00000000000000', 'request': {'serial': '0000-0000-0000', 'target': '111.111.111.111', 'count': '3'}, 'status': 'complete', 'results': {'sent': 3, 'received': 3, 'loss': {'percentage': 0}}}
The results cut off without displaying the "latencies" or "replies" key/dictionary
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-ping
Any ideas what the problem is?
03-08-2023 03:16 AM
Just noticed - only some of the ping results are incomplete. Many return the full data but some only return up to "results" and miss "latencies" etc
It seems the pings where data is missing all involve pings to or from 1 particular site.
03-08-2023 05:37 AM
I ran the ping ID of the odd sites pings manually through the meraki api dashboard and sure enough, the api is not returning the data 😛
all im getting is
{
"pingId": "111111111111111111111111",
"url": "/devices/1111-1111-1111/liveTools/ping/111111111111111111111111",
"request": {
"serial": "1111-1111-1111",
"target": "000.000.000.000",
"count": "3"
},
"status": "complete",
"results": {
"sent": 3,
"received": 3,
"loss": { "percentage": 0 }
}
}
If the status is complete and the pings were successful, why is there no latency data?
08-14-2023 09:34 AM
Hi @Adrian41, are you still seeing similar behavior?
The issue should be resolved now but please do check on your side.
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide