dhcpd logging

Simon Hobson dhcp1 at thehobsons.co.uk
Mon Dec 4 15:41:08 UTC 2006


Lars Jacobsen wrote:

>If I configure something like this:
>log ( info, concat( "Lease for ", binary-to-ascii (10, 8,
>".",leased-address),
>         " raw option-82 info is CID: ", binary-to-ascii (10, 8, ".",
>option
>agent.circuit-id), " RID: ",
>         binary-to-ascii(16, 8, ".", option agent.remote-id),  "
>Client_MAC=", substring (binary-to-ascii (16,8, ":", hardware), 0,
>50)));
>
>I get the nothing else than the default logging:


Bit of a stab in the dark, but if any of the items in your concat 
list are null, then the whole thing is null. It might be worth trying 
pick-first-value(x,"") to log "x" so that if it is null a blank 
string will be used instead (or you could use any arbitrary string 
such as pick-first-value(x,"*NULL*")


More information about the dhcp-users mailing list