-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Ping tool to api 07/19/2022 #440
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about adding a getPing function to aredn.utils and exposing in the api. This is the same approach as the traceroute takes. http://localnode.local.mesh:8080/cgi-bin/api?traceroute=TARGETNODENAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment about adding to api
I had no idea that was even there! |
I'll wait to wrap up the documentation for this feature until we decide whether to accomplish it through cgi-bin/ping or cgi-bin/api -- either way it looks like a good addition. I suppose that cgi-bin/iperf could eventually be converted to the api approach at some point. Thanks, @aanon4 Tim! |
May as well move them to api for future. We can always have a "html" readable page in the interim that essentially calls the api and formats for html if you think it's necessary. That is my strong preference. |
See previous comment
Thanks,
Darryl
… On Jul 19, 2022, at 8:01 PM, Steve AB7PA ***@***.***> wrote:
One issue with using cgi-bin/api is that the results are displayed in json rather than in plain text in the browser. This PR still seems valuable (as well as cgi-bin/iperf) for displaying the results in simple text.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because your review was requested.
|
@dman776 Tried to match the traceroute api with what seems like sensible json data. Output looks like this:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to increment the api version to 1.5
also, is the ttl value needed? It's always going to be the same 64, right? |
Bump. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
This is a simple ping tool to complement the existing iperf3 tool. It allows someone to initiate a ping test from any node to any other node. The test is limited to 10 seconds.
The goal is to enable improved network monitoring by allowing specific links in the network to be tested. Right now, although nodes can be tested, the path will always be from the initiator to the target, which is not necessarily what you want.
The use mirrors the "api" we use for the iperf tool.