DHCP Logging

Simon Hobson dhcp1 at thehobsons.co.uk
Sat Jun 26 13:43:02 UTC 2010


Blake Griffin wrote:
>Don't know how this will work for what I want to do.  For options that
>do not exist, I want to place something such as "NONE" or "---" into the
>log statement where the option value would normally go. If those options
>don't exist, the log statement never gets processed.

How about something along the lines of :
a=pick_first_value(option a, "none")
b=pick_first_value(option b, "none")
...
log concat(a,b,c, ...)

Or you could combine stuff along the lines of :
log concat(pick_first_value(option a, "none"), 
pick_first_value(option b, "none"), ...)

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the dhcp-users mailing list