Rob Owens wrote:
> I've always thought that there might be a way to do this using nmap.
> nmap is a port scanner that can check hosts w/o using a ping, if you use
> the -P0 option.  I haven't tried it enough to get it to output what
> BackupPC expects to see, but I imagine that it could be done with the
> right combination of commands, or with a script.
>
> nmap -P0 -p 22 hostname
>   
A quick dive into the sourcecode told me that BackupPC is expecting some 
info back from the $PingCmd, one of:
- 
rtt\s*min\/avg\/max\/mdev\s*=\s*[\d.]+\/([\d.]+)\/[\d.]+\/[\d.]+\s*(ms|usec)
- time=([\d.]+)\s*(ms|usec)

While seeking for a nmap script that reports those times, I stumbled 
upon hping3 and the command I was seeking for:
hping3 -p 22 -c 1-S server.domain.com
Which returns almost the same info back (not the same as ping, but usable).

I'm seeking for a way to have hping3 to talk like ping, but I'm afraid I 
have to create a script for it.

-- 
Toni Van Remortel
Linux System Engineer @ Precision Operations NV
+32 3 452 92 26 - [EMAIL PROTECTED]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to