Project

General

Profile

Feature #1694

Add ability to perform a ping

Added by Luke Murphey almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01/19/2017
Due date:
% Done:

100%

Associated revisions

Revision 24 (diff)
Added by lmurphey almost 8 years ago

Adding ping command

Reference #1694

Revision 25 (diff)
Added by lmurphey almost 8 years ago

Adding parsing of ping output

Reference #1694

Revision 27 (diff)
Added by lmurphey almost 8 years ago

Making output of pingparser ordered

Reference #1694

History

#1 Updated by Luke Murphey almost 8 years ago

  • Target version set to 0.5

#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:

#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.

#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

Also available in: Atom PDF