Bacula-users

Re: [Bacula-users] Client changes host name

2012-12-07 08:15:49
Subject: Re: [Bacula-users] Client changes host name
From: Dan Langille <dan AT langille DOT org>
To: Radosław Korzeniewski <radoslaw AT korzeniewski DOT net>
Date: Fri, 07 Dec 2012 08:12:29 -0500
On 2012-12-07 06:06, Radosław Korzeniewski wrote:
> Hello,
>
> 2012/12/7 Dan Langille <dan AT langille DOT org [1]>
>
>> My laptop has two hostnames.  One is used when it comes in over the
>> VPN. Another is used when its at home.
>>
>> How do I deal with this?
>>
>> I change the hostname in bacula-dir.conf and reload.
>
> You can use a setip console command for that. It is a dynamic change
> so when Director restarts it back to the IP address set in config
> file.

Good idea.  Reading the documentation[1]

###
setip
Sets new client address - if authorized.
A console is authorized to use the SetIP command only if it has a 
Console
resource definition in both the Director and the Console. In addition, 
if
the console name, provided on the Name = directive, must be the same as 
a
Client name, the user of that console is permitted to use the SetIP 
command
to change the Address directive in the Director's client resource to 
the IP
address of the Console. This permits portables or other machines using 
DHCP
(non-fixed IP addresses) to "notify" the Director of their current IP 
address.
###

Hmmm, that second sentence needs to be improved.

It seems to say: if you use bconsole from a Client, you can use setip 
to change
the IP address of *that* client.

Is that your interpretation of that command?

I would try it, but I am not near my laptop right now.

[1] - 
http://www.bacula.org/5.2.x-manuals/en/console/console/Bacula_Console.html#SECTION00240000000000000000

-- 
Dan Langille - http://langille.org/

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>