logging relay agent IP address

Adam Moffett adamlists at plexicomm.net
Wed Oct 6 13:34:32 UTC 2010


  What version do you have?  I don't see in my man page where there is 
any such option listed.

I tried log(info, option relay-agent-information) and while it didn't 
toss an error it also didn't produce any output.



> Hi Adam
>
> Would that be the      option relay-agent-information
>
> From man dhcp-options
>
> Examples of encapsulated options in the DHCP protocol as it currently 
> exists include the vendor-encapsulated-options option, the 
> netware-suboptions option and  the  relay-agent-information
>
>        option.
>
> Randy
>
> *From:* dhcp-users-bounces+rgrimsha=syr.edu at lists.isc.org 
> [mailto:dhcp-users-bounces+rgrimsha=syr.edu at lists.isc.org] *On Behalf 
> Of *Adam Moffett
> *Sent:* Tuesday, October 05, 2010 2:20 PM
> *To:* Users of ISC DHCP
> *Subject:* logging relay agent IP address
>
>  I want to log a few specific things about DHCP assignments, and I've 
> got most of what I want.
>
>       log(info, concat( "RID",
>                         binary-to-ascii(16,8,":",option agent.remote-id),
>                         "-CID",
>                         binary-to-ascii(16,8,":",option 
> agent.circuit-id),
>                         "-IP",
>                         binary-to-ascii(10,8,".",leased-address)
>                       )
>          );
>
> To this I want to also add the IP address of the relay agent we got 
> the initial request from.  I would want something similar to an 
> "option agent.relay-ip".  Is there any such thing?  Is there any other 
> way to log that?
>
> I do of course get "DHCPDISCOVER from <MAC> via <relay agent>" lines, 
> but I was hoping to get everything on one line.  If I can't then I 
> can't, no biggie.
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20101006/806b878d/attachment.html>


More information about the dhcp-users mailing list