Carl Wilhelm Soderstrom writes:
> On 11/05 08:28 , Nate Carlson wrote:
> > On Thu, 3 Nov 2005, Carl Wilhelm Soderstrom wrote:
> > > the config.pl file makes mention of an $I_option variable for smb
> > > backups; but it's never mentioned how to set that. I want to set a '-I
> > > 192.168.1.1' (hypothetically speaking) for a particular invocation of
> > > smbclient. How do I go about doing that?
> >
> > Quick read of the source..
> >
> > my $I_option = $t->{hostIP} eq $t->{host} ? [] : ['-I', $t->{hostIP}];
> >
> > Doesn't look like an option that's user-configurable.. of course, you
> > could just override the SmbClientXXXCmd entries, or fix up your nmblookup
> > command so it'll find the remote host properly.
>
> I just redefined the SmbClientXXXCmd entries, and it seems to work (at least
> on those occasions when the win98 box in question is working).
>
> I was looking for a more generic solution tho. :)
It value of the I_option is hardcoded as you see above, but it
should be whatever IP address is returned by nmblookup. So if
$Conf{NmbLookupFindHostCmd} is setup correctly, the -I option should
be set to the correct IP address. Perhaps the Win98 machine isn't
setup to respond to nmblookup muticast requests, or the netmask
doesn't match, etc? Try running $Conf{NmbLookupFindHostCmd}
manually to investigate.
As Nate points out, the 2nd best choice is what you did: just
omit $I_option in the SmbClientXXXCmd entries and put in
whatever you want.
Craig
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/