Bacula-users

Re: [Bacula-users] character substitution / client ip

2011-02-05 18:32:46
Subject: Re: [Bacula-users] character substitution / client ip
From: Dan Langille <dan AT langille DOT org>
To: Paulo Martinez <martinezino AT googlemail DOT com>
Date: Sat, 05 Feb 2011 18:30:39 -0500
On 2/5/2011 6:17 PM, Paulo Martinez wrote:
> Am 05.02.2011 um 20:54 schrieb Dan Langille:
>> On 2/5/2011 2:03 PM, Paulo Martinez wrote:
>>> Am 05.02.2011 um 15:52 schrieb Dan Langille:
>>>> On 2/5/2011 8:07 AM, Paulo Martinez wrote:
>>>>> Dear List,
>>>>>
>>>>> in the job resource, character substitution like this
>>>>>
>>>>>    Write Bootstrap = "%c_%n.bsr"
>>>>>
>>>>>    %c = Client's name
>>>>>    %n = Job name
>>>>>
>>>>> is nice to have.
>>>>>
>>>>> What about the ip of the client? Is there a way to get the
>>>>> client ip via such substitution?
>>>>>
>>>>> e.g.
>>>>>
>>>>> Run Before Job = "/usr/libexec/bacula/client_onlinestatus %ip"
>>>>
>>>> No.
>>>>
>>>> Why do you want the client ip?
>>>
>>>
>>> For checking mobil clients accessibility and for some prejob stuff
>>> done in the script, like automatic accounting of successful backups.
>>
>> If you ran the script on the client, wouldn't you already have all
>> this information?
>
>
> Sure, but with heterogeneous clients, this would complicate things
> and a central place has some advantages.
>
> The script also helps canceling the job if the client is not
> online (laptops). Well, this is done by the internal
> timeout ... anyway.
>
> Maybe its not quite the best approach, i need to rethink this.

You have the client name... go from there.

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

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
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>