SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
ping vs arping
Author Message
Post ping vs arping 
Hi,

The idea to use ping to check if the client is a laptop or a desktop is a
nice idea. But some desktops have a firewall that doesn't give an answer if
you ping it. 'arping' on root level always works.

Is there a posability to use 'arping' instead of ping? Because you can not
call the arping command as a simple user, you have to be root for it.

An other problem that might occure is the following. Some laptops or PC's
are dual boot, meaning it uses or linux or windoze. Is there a possability
to let BackupPC check this and make two seprate backups of the windoze part
and the linux part?

thanks
klaas

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post ping vs arping 
Am Freitag, 18. Juni 2004 14:09 schrieb ciccio
Hi,

The idea to use ping to check if the client is a laptop or a desktop is a
nice idea. But some desktops have a firewall that doesn't give an answer
if you ping it. 'arping' on root level always works.


Is there a posability to use 'arping' instead of ping? Because you can not
call the arping command as a simple user, you have to be root for it.

of course, you can use sudo to run programs with super-user privilidges
without password as user.

use "visudo" to edit your sudoers configuration... add something like that:

backuppc ALL=NOPASSWD: /usr/local/bin/arping

Then you should also set:
$Conf{PingPath} = '/bin/ping';
$Conf{PingCmd} = '$pingPath -c 1 -w 3 $host';
in the backuppc config to the "arping" parameters.
.
But I guess that this is not working without patching backuppc a bit. arpping
gives other output as ping does.

# arping -c 1 08:00:46:BF:76:0C
ARPING 08:00:46:BF:76:0C
60 bytes from 10.0.0.9 (08:00:46:bf:76:0c): icmp_seq=0 time=4.401 msec

--- 08:00:46:BF:76:0C statistics ---
1 packets transmitted, 1 packets received, 0% unanswered

# ping -c 1 10.0.0.9 -w 3
PING 10.0.0.9 (10.0.0.9) 56(84) bytes of data.
64 bytes from 10.0.0.9: icmp_seq=1 ttl=64 time=3.61 ms

--- 10.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.613/3.613/3.613/0.000 ms

(arping doesn't show "rtt min/avg/max/mdev" times.)


An other problem that might occure is the following. Some laptops or PC's
are dual boot, meaning it uses or linux or windoze. Is there a possability
to let BackupPC check this and make two seprate backups of the windoze part
and the linux part?

Not really... A simple solution is to use diffrent IPs on linux & windows.


thanks
klaas


--Ralph


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post ping vs arping 
Ralph Pa gang writes:

Am Freitag, 18. Juni 2004 14:09 schrieb ciccio

The idea to use ping to check if the client is a laptop or a desktop is a
nice idea. But some desktops have a firewall that doesn't give an answer
if you ping it. 'arping' on root level always works.


Is there a posability to use 'arping' instead of ping? Because you can not
call the arping command as a simple user, you have to be root for it.

of course, you can use sudo to run programs with super-user privilidges
without password as user.

use "visudo" to edit your sudoers configuration... add something like that:

backuppc ALL=NOPASSWD: /usr/local/bin/arping

Then you should also set:
$Conf{PingPath} = '/bin/ping';
$Conf{PingCmd} = '$pingPath -c 1 -w 3 $host';
in the backuppc config to the "arping" parameters.
.
But I guess that this is not working without patching backuppc a bit. arpping
gives other output as ping does.

# arping -c 1 08:00:46:BF:76:0C
ARPING 08:00:46:BF:76:0C
60 bytes from 10.0.0.9 (08:00:46:bf:76:0c): icmp_seq=0 time=4.401 msec

--- 08:00:46:BF:76:0C statistics ---
1 packets transmitted, 1 packets received, 0% unanswered

# ping -c 1 10.0.0.9 -w 3
PING 10.0.0.9 (10.0.0.9) 56(84) bytes of data.
64 bytes from 10.0.0.9: icmp_seq=1 ttl=64 time=3.61 ms

--- 10.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.613/3.613/3.613/0.000 ms

(arping doesn't show "rtt min/avg/max/mdev" times.)

Yes, the output is different. It would be pretty easy to write
an external script that runs arping and reformats the output.
Then there are no changes to BackupPC.

Also, another approach if all the machines are known to be on the
network is to not run ping at all. Just set $Conf{PingCmd} to
anything that returns a 0 exit status, eg: '/bin/echo'.

Craig


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB