From: cbarratt Date: Mon, 3 Feb 2003 08:37:08 +0000 (+0000) Subject: - added $Conf{ClientNameAlias} and $Conf{NmbLookupFindHostCmd} to config.pl X-Git-Tag: v2_0_0beta0~7 X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=commitdiff_plain;h=bd5c45421b5719f1f2419ddab7df55567b0ce0fc - added $Conf{ClientNameAlias} and $Conf{NmbLookupFindHostCmd} to config.pl --- diff --git a/conf/config.pl b/conf/config.pl index bd1cd47..6d81255 100644 --- a/conf/config.pl +++ b/conf/config.pl @@ -811,13 +811,30 @@ $Conf{SshPath} = '/usr/bin/ssh'; $Conf{NmbLookupPath} = '/usr/bin/nmblookup'; # -# NmbLookup command. Several variables are substituted at run-time: +# NmbLookup command. Given an IP address, does an nmblookup on that +# IP address. Several variables are substituted at run-time: # # $nmbLookupPath path to nmblookup ($Conf{NmbLookupPath}) # $host host name # $Conf{NmbLookupCmd} = '$nmbLookupPath -A $host'; +# +# NmbLookup command. Given a netbios name, finds that host by doing +# a NetBios multicast. Several variables are substituted at run-time: +# +# $nmbLookupPath path to nmblookup ($Conf{NmbLookupPath}) +# $host NetBios name +# +# In some cases you might need to change the broadcast address, for +# example if nmblookup uses 192.168.255.255 by default and you find +# that doesn't work, try 192.168.1.255 (or your equivalent class C +# address) using the -B option: +# +# $Conf{NmbLookupFindHostCmd} = '$nmbLookupPath -B 192.168.1.255 $host'; +# +$Conf{NmbLookupFindHostCmd} = '$nmbLookupPath $host'; + # # For fixed IP address hosts, BackupPC_dump can also verify the netbios # name to ensure it matches the host name. An error is generated if @@ -935,6 +952,13 @@ $Conf{DumpPostUserCmd} = undef; $Conf{RestorePreUserCmd} = undef; $Conf{RestorePostUserCmd} = undef; +# +# Override the client's host name. This allows multiple clients +# to all refer to the same physical hosts. This should only be +# set in the per-PC config file. +# +$Conf{ClientNameAlias} = undef; + # # Advanced option for asking BackupPC to load additional perl modules. # Can be a list (array ref) of module names to load at startup.