Re: [BackupPC-users] ping failures: dhcp clients and different subnets

2011-06-01 Thread Holger Parplies
Hi,

sorry for the delay, I just found your mail in the depths of my mailbox.

Tobias Mayer wrote on 2011-05-19 10:50:49 +0200 [Re: [BackupPC-users] ping 
failures: dhcp clients and different subnets]:
 [...]
 Can anyone with knowledge of the code please have a look at this?

You don't really need any knowledge of the code.

 On 17.05.2011 20:17, Tobias Mayer wrote:
  [...]
  To circumvent this, i simply removed the else { from line 1718.

That most certainly breaks things. Whatever was in the else clause was meant
to happen under some circumstances. Now it only happens for your if or
elsif case.


I don't use DHCP clients myself, so I'd have to take a closer look, but I'm
rather confident that it's a configuration issue rather than a problem in the
code. The issue of what the DHCP flag in the hosts file means seems to be
rather easy to misunderstand. If I can find the time, I'll take a look and
follow up. Isn't there a wiki page on this topic? There should be ...

Regards,
Holger

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
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/


Re: [BackupPC-users] ping failures: dhcp clients and different subnets

2011-05-19 Thread Tobias Mayer
On 17.05.2011 20:17, Tobias Mayer wrote:
 Hi,

 I'm running into problems by using backuppc with dhcp clients which are
 using a different subnet then the backuppc server.
 (It's not possible to use backuppc server and clients in the same subnet
 in this case. DNS Server doesn't accept DynamicDNS entries.)

 Error:
 Backup Process don't start because of ping fails.
 Pings to sec43-dyn27 have failed 550 consecutive times.

 I have customize the NmbLookupFindHostCmd variable in config.pl and
 using the program nbtscan to get netbiosnames.
 $Conf{NmbLookupFindHostCmd} =
 '/usr/local/BackupPC/bin/BackupPC_get_HostIP $host';

 content:
 #!/bin/sh
 test ! -z $1 || { echo keinen HOST angegeben ;exit 1;}
 SEARCH=$1
 FILE='/tmp/pclist.txt'
 /usr/sbin/nbtscan -s : subnet1$FILE
 /usr/sbin/nbtscan -s : subnet2   $FILE
 /usr/sbin/nbtscan -s : subnet3   $FILE
 /usr/sbin/nbtscan -s : subnet4   $FILE
 IP=`grep -i $SEARCH $FILE | cut -d : -f1`
 echo $IP $SEARCH

 output is (example):
 192.168.1.1 sec43-dyn27


 If I start a backup from the console as backuppc userBackupPC_dump -i
 sec43-dyn27   then everything is fine. But if I perform a backup from the
 webfrontend then nothing happens besides the increasing of ping failure
 counter.

 Any suggestions?? Which programs will be startet in which order when I
 perform the backup from the webfrontend???

 Thanks in advance.
 Heiko

 btw: If I set the variable PingCmd  to $Conf{PingCmd} = '/bin/true'
 then I got the same failure.


 Hi Heiko!

 I seem to have the same problem as you, without the client PCs being on a
 different subnet, so it's a little easier for me. But i do not think this
 actually matters.

 After looking at the code of the main BackupPC script for a while,
 - and adding a lot of additional logging output -
 i noticed that the sub(routine) QueueOnePC does not put the Task into
 the queue if the specified host is a dhcp one. To circumvent this, i simply
 removed the else { from line 1718.
 Also, the BackupPC_dump script exits with return code 1 if given the 
 IP-address
 instead of the hostname, so i changed the lines containg the 
 unshift-commands
 to fill the host-variable with $host instead of $hostIP in lines 1733,
 1740 and 1748.

 with these changes, BackupPC_dump is called correctly, but i don't know if i
 broke something else in the process.
 rsync is still running on my client, so i'm waiting for the incremental backup
 to succeed or fail.

 also, i'm not sure that this will fix scheduled backups as well.
 I hope i can spend some more time on this tomorrow, and will report on my 
 progress
 as soon as i make some.


 Best regards,
 Tobias Mayer


after leaving BackupPC running with my changes it seems to work for my
Windows 7 Client. (both manual and scheduled jobs)
Unfortunately I can not test this on linux/*nix clients right now, since
we simply don't have any. So my changes are likely to break something
in other configurations.

Can anyone with knowledge of the code please have a look at this?

Thanks,
Tobias

-- 
tobias.ma...@hhi.fraunhofer.de



Tel +49 30 314-28691


Fraunhofer Heinrich Hertz Institute /
Technische Universität Berlin

Einsteinufer 17, 10587 Berlin, Germany

www.hhi.fraunhofer.de

-- 
Visit us at

SID Display Week 2011 / May 15-20 / Los Angeles, CA, USA / booth 1019-4 (German 
Pavilion)
www.hhi.fraunhofer.de/sid

Compound Semiconductor Week 2011 / May 22-26 / Berlin, Germany / Maritim 
proArte Hotel
http://conference.vde.com/csw2011/pages/homepage.aspx

From Data Collection to Display - Technology Conference and Exhibition
University of California, Berkeley, USA / May 26
http://www.hhi.fraunhofer.de/ucberkeley

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
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/


Re: [BackupPC-users] ping failures: dhcp clients and different subnets

2011-05-17 Thread Tobias Mayer
 Hi,

 I'm running into problems by using backuppc with dhcp clients which are
 using a different subnet then the backuppc server.
 (It's not possible to use backuppc server and clients in the same subnet
 in this case. DNS Server doesn't accept DynamicDNS entries.)

 Error:
 Backup Process don't start because of ping fails.
 Pings to sec43-dyn27 have failed 550 consecutive times.

 I have customize the NmbLookupFindHostCmd variable in config.pl and
 using the program nbtscan to get netbiosnames.
 $Conf{NmbLookupFindHostCmd} =
 '/usr/local/BackupPC/bin/BackupPC_get_HostIP $host';

 content:
 #!/bin/sh
 test ! -z $1 || { echo keinen HOST angegeben ;exit 1;}
 SEARCH=$1
 FILE='/tmp/pclist.txt'
 /usr/sbin/nbtscan -s : subnet1   $FILE
 /usr/sbin/nbtscan -s : subnet2  $FILE
 /usr/sbin/nbtscan -s : subnet3  $FILE
 /usr/sbin/nbtscan -s : subnet4  $FILE
 IP=`grep -i $SEARCH $FILE | cut -d : -f1`
 echo $IP $SEARCH

 output is (example):
 192.168.1.1 sec43-dyn27


 If I start a backup from the console as backuppc userBackupPC_dump -i
 sec43-dyn27  then everything is fine. But if I perform a backup from the
 webfrontend then nothing happens besides the increasing of ping failure
 counter.

 Any suggestions?? Which programs will be startet in which order when I
 perform the backup from the webfrontend???

 Thanks in advance.
 Heiko

 btw: If I set the variable PingCmd  to $Conf{PingCmd} = '/bin/true'
 then I got the same failure.



Hi Heiko!

I seem to have the same problem as you, without the client PCs being on a
different subnet, so it's a little easier for me. But i do not think this
actually matters.

After looking at the code of the main BackupPC script for a while,
- and adding a lot of additional logging output -
i noticed that the sub(routine) QueueOnePC does not put the Task into
the queue if the specified host is a dhcp one. To circumvent this, i simply
removed the else { from line 1718.
Also, the BackupPC_dump script exits with return code 1 if given the IP-address
instead of the hostname, so i changed the lines containg the unshift-commands
to fill the host-variable with $host instead of $hostIP in lines 1733,
1740 and 1748.

with these changes, BackupPC_dump is called correctly, but i don't know if i
broke something else in the process.
rsync is still running on my client, so i'm waiting for the incremental backup
to succeed or fail.

also, i'm not sure that this will fix scheduled backups as well.
I hope i can spend some more time on this tomorrow, and will report on my 
progress
as soon as i make some.


Best regards,
Tobias Mayer

-- 
tobias.ma...@hhi.fraunhofer.de



Tel +49 30 314-28691


Fraunhofer Heinrich Hertz Institute /
Technische Universität Berlin

Einsteinufer 17, 10587 Berlin, Germany

www.hhi.fraunhofer.de

-- 
Visit us at

SID Display Week 2011 / May 15-20 / Los Angeles, CA, USA / booth 1019-4 (German 
Pavilion)
www.hhi.fraunhofer.de/sid

Compound Semiconductor Week 2011 / May 22-26 / Berlin, Germany / Maritim 
proArte Hotel
http://conference.vde.com/csw2011/pages/homepage.aspx

From Data Collection to Display - Technology Conference and Exhibition
University of California, Berkeley, USA / May 26
http://www.hhi.fraunhofer.de/ucberkeley

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
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/


[BackupPC-users] ping failures: dhcp clients and different subnets

2011-05-05 Thread Heiko Hägele

Hi,

I'm running into problems by using backuppc with dhcp clients which are 
using a different subnet then the backuppc server.
(It's not possible to use backuppc server and clients in the same subnet 
in this case. DNS Server doesn't accept DynamicDNS entries.)

Error:
Backup Process don't start because of ping fails.
Pings to sec43-dyn27 have failed 550 consecutive times.

I have customize the NmbLookupFindHostCmd variable in config.pl and 
using the program nbtscan to get netbiosnames.
$Conf{NmbLookupFindHostCmd} = 
'/usr/local/BackupPC/bin/BackupPC_get_HostIP $host';

content:
#!/bin/sh
test ! -z $1 || { echo keinen HOST angegeben ;exit 1;}
SEARCH=$1
FILE='/tmp/pclist.txt'
/usr/sbin/nbtscan -s : subnet1   $FILE
/usr/sbin/nbtscan -s : subnet2  $FILE
/usr/sbin/nbtscan -s : subnet3  $FILE
/usr/sbin/nbtscan -s : subnet4  $FILE
IP=`grep -i $SEARCH $FILE | cut -d : -f1`
echo $IP $SEARCH

output is (example):
192.168.1.1 sec43-dyn27


If I start a backup from the console as backuppc user BackupPC_dump -i 
sec43-dyn27 then everything is fine. But if I perform a backup from the 
webfrontend then nothing happens besides the increasing of ping failure 
counter.

Any suggestions?? Which programs will be startet in which order when I 
perform the backup from the webfrontend???

Thanks in advance.
Heiko

btw: If I set the variable PingCmd  to $Conf{PingCmd} = '/bin/true'   
then I got the same failure.


--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
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/