Logging host-name and hardware
testcat2003 at yahoo.com
Mon Jan 5 17:38:48 UTC 2009
I am working on logging option82 information for requests. I would like to just have one line that gives the option82 information, lease time, IP address, hardware address, and host-name if the client has it set. Currently I am using.
if exists agent.remote-id
log ( info, concat( "lease,", binary-to-ascii (10, 8, ".", leased-address),",",
This gives me
I would like to see the hardware address get formatted with XX:XX:XX:XX:XX:XX currently if the hex value starts with 0 if gets dropped.
Also I can't figure out how to extract the host-name. I know that it can be done because both of the values appear correctly in the normal DHCP logging.
So if someone has some working examples or is willing to help me out that would be great.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dhcp-users