Question about logging Option 82

Andre Schubert andre at km3.de
Fri Mar 5 13:03:12 UTC 2010


Hi,
On Fri, 5 Mar 2010 18:42:59 +0600
Anton <warm at stack.ru> wrote:

> Thank You for Your answer. Now I tried this loggin section:
> 
> log ( error, binary-to-ascii(16,8,".",suffix(option agent.remote-id,6))  );
> log ( error, binary-to-ascii(10,8,".",suffix(option agent.remote-id,4))  );
> log ( error, binary-to-ascii (10, 16, "", substring( option agent.circuit-id, 2, 2))  );
> log ( error, binary-to-ascii(10,8,".",suffix(option agent.circuit-id,1))  );
> log ( error, binary-to-ascii (10, 8, ".", leased-address)  );
> 
> And again in success request logged everything: 
> 
> Mar  5 18:32:10 myhost daemon.err dhcpd: 0.c.ce.47.7c.0
> Mar  5 18:32:10 myhost daemon.err dhcpd: 206.71.124.0
> Mar  5 18:32:10 myhost daemon.err dhcpd: 100
> Mar  5 18:32:10 myhost daemon.err dhcpd: 0
> Mar  5 18:32:10 myhost daemon.err dhcpd: 192.168.70.18
> 
> but in no success logged nothing needful:
> 
> Mar  5 18:24:19 myhost daemon.err dhcpd: DHCPDISCOVER from 00:02:44:1d:7e:ea via eth0: network
> 192.168.70.16/28: no free leases
> 

Iam using dhcp-4.1.0 and also playing a little bit with logging at DHCPDISCOVER stage.
I dont read the whole thread, but iam stuck at the same point.
In my config i have something like this:

    if option dhcp-message-type = 1 {
        log(info,"discover");
    }

It seems that the log-statemant is only executed if there are free leases available.
If there are no free leases available, then i also only see a DHCPDISCOVER ... no free leases
and the log-statement is not executed.

Best Regards,
Andre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20100305/78300b6f/attachment.bin>


More information about the dhcp-users mailing list