BackupPC-users

Re: [BackupPC-users] Alternative way to check if Host is alive -- can't use Ping

2010-03-30 12:37:42
Subject: Re: [BackupPC-users] Alternative way to check if Host is alive -- can't use Ping
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 30 Mar 2010 11:36:00 -0500
On 3/30/2010 11:22 AM, Mirco Piccin wrote:
> Hi,
>
>  >> In my setup ICMP packets are dropped by the firewall in front of the
>  >> machine I need to backup. I have been searching for alternatives but
>  >> haven't found anything yet. Any pointers to a fix? Any other way to let
>  >> BackupPC know he machine is alive?
>  >
>  >What ports are available?
>  >could something like httping be used as a substitute for /bin/ping?
>
> i remember i use - not with BackupPC - a perl script that allow to probe
> any host port (both TCP anf UDP ) - and also ping.
> It use both Net::Ping and Socket.
>
> The solution could be something like that, or simply a telnet to a
> specific port and work with output.
> Just run nmap to that host to see available port.

You should be able to come up with a command that tests the port you 
need for the backup.  If you run over ssh, you could do something that 
will execute quickly like 'ssh root@target_IP id'  or if it is smb, an 
'nmblookup -A target_IP' might work.

-- 
   Les Mikesell
    lesmikesell AT gmail DOT com


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/