Option 82 Log Statement
Blake Hudson
blake at ispn.net
Tue May 13 17:30:04 UTC 2008
-------- Original Message --------
Subject: Option 82 Log Statement
From: J Bacher <jb at jbacher.com>
To: dhcp-users at isc.org
Date: Tuesday, May 13, 2008 10:58:00 AM
> Split into multiple lines for readability:
>
> log (info, concat(
> "OPT82 IP Address ",
> binary-to-ascii(10, 8, ".",leased-address),
> " CID: ",
> option agent.circuit-id,
> " RID: ",
> option agent.remote-id));
>
> In 3.0.6 (via distribution) and 3.1.1rc2 (from source), I am only
> getting the text and [option 82] information for the IP address and
> circuit-id.
>
> OPT82 IP Address <IP.address> CID: <circuit-id>
>
> In earlier releases of 3.0, the IP address, circuit-id and remote-id
> would be logged.
>
> OPT82 IP Address <IP.address> CID: <circuit-id> RID: <remote-id>
>
> I am not seeing the text or information for the remote-id unless I
> split the log statement into two log statements (one for circuit-id
> and one for remote-id).
>
> I have also tried multiple concats within the statement but no go.
>
> Has the formatting been changed in later releases?
>
I had a similar problem (though one line log statements never worked for
me). I found that I could successfully log to a single line if I used a
substring of remote-id or circuit-id and chalked the problem up to weird
line ending characters in the option 82 data I was receiving. I'm not
sure if this was an accurate conclusion though... would love to have it
fixed if possible.
More information about the dhcp-users
mailing list