hrPING – Pingen mit Extras
Im Rahmen meines Berichts über Perfect Privacy habe ich ein kompaktes Ping-Programm gesucht, was möglichst genau ist und einige Features bietet. Ich zitiere hier mal die Optionen des Programms:
options:
-lic Show public license and warranty
-t Ping the specified host until stopped
-n count Number of echo requests to send (default 4)
-E file Stop pinging when <file> exists
-l size Send buffer size (ICMP payload size, default 64)
-L size Total IP datagram size (ICMP payload size + 28)
-f Set Don’t Fragment bit in IP header
-i TTL Time To Live (default 255 for ping, 30 for traceroute)
-v TOS Type Of Service (default 0)
-w timeout Timeout in millisecs to wait for each reply (default 2000)
-s time Interval in millisecs between packets (default 500 ms)
-r [count] Be a traceroute (do <count> pings each hop, default 3)
-a [hop] Resolve addresses to names for traceroute (start at <hop>)
-o Don’t do overlapped send/receive
-tsc Force RDTSC usage
-W “warm up” with one uncounted echo request at beginning
-F file Log output into <file> as well
-T Print timestamp in front of each line
-I id Set ICMP id field to <id>
-q Don’t print a line per ping
-A Abort after the first echo reply (-AA => or error)
-H use IP_HDR_INCL socket option (experimental)
-S print a summary on each receive
In meinem Beispiel habe ich die Parameter n, W und F benutzt um die Anzahl der Pings festzulegen, den ersten Pingwert zu droppen und das ganze dann in eine Datei zu speichern. Mit den Parametern a und r ist ein Traceroute mit aufgelösten IP-Adressen machbar.