On Dec 8, 2012, at 9:29 AM, Radosław Korzeniewski wrote:

> Hello,
> 
> 2012/12/7 Dan Langille <d...@langille.org>
> On 2012-12-07 06:06, Radosław Korzeniewski wrote:
> Hello,
> 
> 2012/12/7 Dan Langille <d...@langille.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.
> 
> 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:

Console {
  Name = dent-fd
  Password = "NotMyPassword"
  CommandACL = "*all*"
}


I have this in bconsole.conf:

Director {
  Name = bacula-dir
  DIRport = 9101
  address = ngaio.example.org
  Password = "NotMyOtherPassword"
}

Console {
   Name = dent-fd
   Director = bacula-dir
   Password = "NotMyPassoword"
}

When I connect via bconsole:

$ 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.
*setip
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

------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to