addding "CID" and leased address to logging
Glenn Satchell
glenn.satchell at uniq.com.au
Fri Aug 24 11:15:20 UTC 2012
man dhcp-eval:
log (priority, data-expr)
Logging statements may be used to send information to the
standard logging channels. A logging statement includes
an optional priority (fatal, error, info, or debug), and a
data expression.
Logging statements take only a single data expression
argument, so if you want to output multiple data values,
you will need to use the concat operator to concatenate
them.
You need to ensure that anything concatenated is not a null string,
otherwise the whole concatenated string is null.
The logging destination is done through the log-facility command (see
dhcpd.conf(5) and subsequently syslog.conf.
regards,
-glenn
On Fri, August 24, 2012 6:35 pm, raz khan wrote:
> Many thanks Niall.I will try the suggested method. However I would like to
> find out if there is any documentation about using "info concat(.." in the
> dhcpd.conf file? I have checked various resources, but nothing mentioned.
> Can anyone point me to the right source?
> ThanksRK
>
>> Subject: Re: addding "CID" and leased address to logging
>> From: Niall.oReilly at ucd.ie
>> Date: Wed, 22 Aug 2012 17:41:49 +0100
>> To: dhcp-users at lists.isc.org
>>
>>
>> On 22 Aug 2012, at 17:31, raz khan wrote:
>>
>> > This information is passed on to the lease file but not to the default
>> log file.
>>
>> The kind of thing you seem to need is discussed in the archives. Try
>> https://lists.isc.org/pipermail/dhcp-users/2008-November/007847.html
>>
>> Niall O'Reilly
>>
>>
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
More information about the dhcp-users
mailing list