Help with dhcp-eval for logging

Eric Helm helmwork at ruraltel.net
Mon Oct 2 16:03:44 UTC 2006


I have the following statement in the dhcpd.conf to log option 82
information:
# Log Option 82 information
if exists agent.circuit-id
{
        log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".",
leased-address), " is connected to ",
        binary-to-ascii (10, 16, "", option agent.circuit-id)));
}

My log file outputs this:
Oct  2 10:53:13 dhcpd1 dhcpd: Lease for 172.16.254.103 is connected to
19521169911387413618121002132412592149662774528215

It should be something similar to this:
Oct  2 10:53:13 dhcpd1 dhcpd: Lease for 172.16.254.103 is connected to
LAB_6252/DSL10:vlan7

Any pointers on where I am wrong in my log statement?

Thanks,
Eric


More information about the dhcp-users mailing list