Feature #1694
Add ability to perform a ping
Start date:
01/19/2017
Due date:
% Done:
100%
Associated revisions
Adding ping command
Reference #1694
Adding parsing of ping output
Reference #1694
Making output of pingparser ordered
Reference #1694
History
#1 Updated by Luke Murphey almost 8 years ago
- Target version set to 0.5
#2 Updated by Luke Murphey almost 8 years ago
Using built-in commands:
Using raw sockets and pure python:#3 Updated by Luke Murphey almost 8 years ago
This works:
subprocess.check_output(["ping", "-c", "1", "10.0.0.6"])
#4 Updated by Luke Murphey almost 8 years ago
Have search command written. I need to parse the following:
- host
- packets transmitted
- packets received
- packet loss
- RTT for each request
#5 Updated by Luke Murphey almost 8 years ago
sourcetype=ping | rex field=_raw " time=(?P<rtt>[^ ]+)"
#7 Updated by Luke Murphey almost 8 years ago
Based on http://pingparsing.readthedocs.io/en/latest/pages/usage/index.html#parsing-ping-command-output, it appears that parsing may not work on non-English locales.
#8 Updated by Luke Murphey almost 8 years ago
Using:
- six-1.10.0
- pyparsing-2.1.10
- DataProperty 0.16.0 (https://github.com/thombashi/DataProperty/releases)
#9 Updated by Luke Murphey almost 8 years ago
DataProperty has a bunch of deps including pytz https://github.com/thombashi/DataProperty#dependencies
#10 Updated by Luke Murphey almost 8 years ago
pingparsing doesn't handle mac apparently.
#11 Updated by Luke Murphey almost 8 years ago
Using this one now: https://github.com/ssteinerx/pingparser/blob/master/pingparser.py
#12 Updated by Luke Murphey almost 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
#13 Updated by Luke Murphey almost 8 years ago
- Status changed from Closed to In Progress
- % Done changed from 100 to 90
#14 Updated by Luke Murphey almost 8 years ago
Need to test on Windows and Unix
#15 Updated by Luke Murphey almost 8 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100