BackupPC-users

Re: [BackupPC-users] Nmblookup doesn't find anything, host can't be found

2009-04-05 05:13:09
Subject: Re: [BackupPC-users] Nmblookup doesn't find anything, host can't be found
From: Fatih Arslan <ftharsln AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Sun, 5 Apr 2009 12:06:27 +0300
Thanks all for helping. I've just figured out where the problem  is.

On my client(which is ubuntu 8.04), i thought that Samba was
pre-installed. But this is not the case, thus I've installed Samba
trough synaptic.
Now nmblookup is able to see my client, I've just started to take a backup.

But i thought that for a Linux Client, samba is not needed? Am I wrong
with this assumption ?

Regards

On Sun, Apr 5, 2009 at 10:52 AM, Fatih Arslan <ftharsln AT gmail DOT com> wrote:
> I've now configured my server and client to user static-ip's
>
> My server(Linux) has an ip with 192.168.1.2
> My client(also linux) has an ip with 192.168.1.3
>
> I've set the option in hosts file from 1 to 0 (for static ip)
>
> Well applying the command gives me:
>
>
> ****************************************************************
> backuppc@fatih-pardus bin $ ./BackupPC_dump -v -f -d 192.168.1.3
> cmdSystemOrEval: about to system /usr/bin/ping -c 1 -w 3 192.168.1.3
> cmdSystemOrEval: finished: got output PING 192.168.1.3 (192.168.1.3)
> 56(84) bytes of data.
> 64 bytes from 192.168.1.3: icmp_seq=2 ttl=64 time=1.94 ms
>
> --- 192.168.1.3 ping statistics ---
> 2 packets transmitted, 1 received, 50% packet loss, time 999ms
> rtt min/avg/max/mdev = 1.940/1.940/1.940/0.000 ms
>
> cmdSystemOrEval: about to system /usr/bin/ping -c 1 -w 3 192.168.1.3
> cmdSystemOrEval: finished: got output PING 192.168.1.3 (192.168.1.3)
> 56(84) bytes of data.
> 64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=1.80 ms
>
> --- 192.168.1.3 ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 1.807/1.807/1.807/0.000 ms
>
> CheckHostAlive: returning 1.807
> cmdSystemOrEval: about to system /usr/bin/nmblookup -A 192.168.1.3
> cmdSystemOrEval: finished: got output Looking up status of 192.168.1.3
> No reply from 192.168.1.3
>
>
> NetBiosInfoGet: failed: can't parse return string
> Exiting because NetBiosInfoGet(192.168.1.3) returned '', an invalid host name
> backuppc@fatih-pardus bin $ nmblookup -A 192.168.1.3
> Looking up status of 192.168.1.3
> No reply from 192.168.1.3
> ****************************************************************
>
>
> I've no software firewall installed, nor i have a Hardwadre firewall.
> I've locked at my router, which is Linksysy Wag325N, all firewall
> options are disabled.
> There must be a way to solve it, something is corrupting my config but
> I don't no what is it.  I've searced for "Linksys Wag325n netbios" but
> i didn't any solution.
>
> Anyway thanks for helping
>
>
>
> On Sun, Apr 5, 2009 at 3:55 AM, David Lasker <dave AT altosdesign DOT com> 
> wrote:
>> I am home now and looking at the BackupPC code. I see in BackupPC_dump
>> script line 144 that it expects the command:
>>
>> nmblookup -A <ip address>
>>
>> to return the name of your host when configured for DHCP. So you need to
>> figure out how to make that work in order for BackupPC to work.
>>
>> Is there firewall software running on your PC's that is blocking nmblookup?
>> Or is there a hardware firewall that is blocking it?
>>
>> This is now a moot point, but for DHCP clients, BackupPC_dump is called by
>> main BackupPC script with '-d' parameter and IP address, not the host name.
>>
>> So you should have been using this call:
>>
>> ./BackupPC_dump -v -f -d 192.168.1.101
>>
>> But that won't work until you make nmblookup -A work.
>>
>> However, once you figure out why netbios isn't working, you can probably
>> turn off DHCP mode, and go back to using netbios name resolution.
>>
>> Hope that helps...
>>
>> Dave
>>
>> -----Original Message-----
>> From: Fatih Arslan [mailto:ftharsln AT gmail DOT com]
>> Sent: Saturday, April 04, 2009 2:23 PM
>> To: General list for user discussion, questions and support
>> Subject: Re: [BackupPC-users] Nmblookup doesn't find anything, host can't be
>> found
>>
>> It's saying the same again:
>>
>> backuppc@fatih-pardus bin $ ./BackupPC_dump -v -f samsung
>> Name server doesn't know about samsung; trying NetBios
>> cmdSystemOrEval: about to system /usr/bin/nmblookup samsung
>> cmdSystemOrEval: finished: got output querying samsung on 192.168.1.255
>> name_query failed to find name samsung
>>
>> NetBiosHostIPFind: couldn't find IP address for host samsung
>> host not found
>>
>>
>> --
>> Fatih ARSLAN
>> blog.arsln.org
>>
>> ----------------------------------------------------------------------------
>> --
>> _______________________________________________
>> 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/
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> 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/
>>
>
>
>
> --
> Fatih ARSLAN
> blog.arsln.org
>



-- 
Fatih ARSLAN
blog.arsln.org

------------------------------------------------------------------------------
_______________________________________________
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/