On Dec 8, 2012, at 9:29 AM, Radosław Korzeniewski wrote:
> 2012/12/7 Dan Langille <dan@...>
> On 2012-12-07 06:06, Radosław Korzeniewski wrote:
> 2012/12/7 Dan Langille <dan@... >
> 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
> Good idea. Reading the documentation
> 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.
> Yes it does exactly as described above.
> Is that your interpretation of that command?
> Well, not an interpretation but an experience... :)
What is your configuration for using this command. I'm failing.
I have this in bacula-dir.conf:
Name = dent-fd
Password = "NotMyPassword"
CommandACL = "*all*"
I have this in bconsole.conf:
Name = bacula-dir
DIRport = 9101
address = ngaio.example.org
Password = "NotMyOtherPassword"
Name = dent-fd
Director = bacula-dir
Password = "NotMyPassoword"
When I connect via bconsole:
Connecting to Director ngaio.example.org:9101
1000 OK: bacula-dir Version: 5.2.6 (21 February 2012)
Enter a period to cancel a command.
Unauthorized command from this console.
> I think we should extend this command with options allowing administrator or external application (i.e. DHCP server) to set IP address of any client.
I see what you mean...
Dan Langille - http://langille.org