SV: SV: Logging option 82 for no free leases?
Lars Jacobsen
lars-jacobsen at newmail.dk
Tue Oct 24 20:34:09 UTC 2006
Well I just have this in my conf:
log-facility local7;
#To log client details
if exists agent.circuit-id
{
log ( option agent.circuit-id);
}
and it gives me this in my log:
Oct 24 22:18:50 bill dhcpd: 1130034
Oct 24 22:18:50 bill dhcpd: DHCPREQUEST for 85.27.128.254 from
00:0e:08:ab:35:95 via bge0
Oct 24 22:18:50 bill dhcpd: DHCPACK on 85.27.128.254 to 00:0e:08:ab:35:95
via bge0
Off course you can do some more advanced concatenating logging and get the
opt.82 info on the same line.
See http://www.thtech.net/article/10
/Lars
> -----Oprindelig meddelelse-----
> Fra: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] På vegne
> af Scott Baker
> Sendt: 24. oktober 2006 16:52
> Til: dhcp-users at isc.org
> Emne: Re: SV: Logging option 82 for no free leases?
>
> Can you be a little more specific... where exactly in my config
> should this line go?
>
> Scott
>
> Lars Jacobsen wrote:
> > Log option agent.circuit-id
> >
> > /Lars
> >
> >
> >> -----Oprindelig meddelelse-----
> >> Fra: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] På
> vegne
> >> af Greg G
> >> Sendt: 18. oktober 2006 18:21
> >> Til: dhcp-users at isc.org
> >> Emne: Logging option 82 for no free leases?
> >>
> >>
> >> Is there a way to log option 82 information that comes in with a lease
> >> that gets rejected or NAK'd? That is, I want to print the option 82
> >> information that would have come in with this DISCOVER:
> >>
> >> DHCPDISCOVER from 00:60:04:12:f2:09 via eri0: network Test1A: no free
> >> leases
> >>
> >> Thanks.
> >>
> >> -Greg G
> >>
> >>
> >
> >
> >
> >
> >
More information about the dhcp-users
mailing list