ProspectOne / perfops-cli

A simple command line tool to interact with hundreds of servers around the world.
https://perfops.net/cli
288 stars 45 forks source link

Add ASN #33

Closed jimaek closed 6 years ago

jimaek commented 6 years ago

https://api.perfops.net/run/ping/2b6335b4dace304272e8e3eb88224fb0

All tests will now have "as_number" in the response. We need to add that to the output as following:

#perfops ping 8.8.8.8
Node96, AS35017, Kansas City, United States
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=15.9 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 time=15.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=58 time=16.0 ms
jimaek commented 6 years ago

Tests seem to have failed https://semaphoreci.com/prospectone/perfops-cli/branches/master/builds/58

boki commented 6 years ago

Weird: that failing test is/was unrelated to the changes and should have failed before.

jimaek commented 6 years ago

Can you give me an example of output now?

boki commented 6 years ago
$ perfops-cli ping 8.8.8.8
Node180, AS47381, Budapest, Hungary
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=61 time=0.414 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=61 time=0.340 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=61 time=0.390 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 600ms
rtt min/avg/max/mdev = 0.340/0.381/0.414/0.034 ms
jimaek commented 6 years ago

Same for traceroute, curl and all other?

boki commented 6 years ago

Yes, all of these node headers include the as_number.

jimaek commented 6 years ago

Thank you!