logging relay agent IP address

Randall C Grimshaw rgrimsha at syr.edu
Tue Oct 5 19:06:54 UTC 2010


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20101005/9194503e/attachment.html>


More information about the dhcp-users mailing list