<div dir="ltr">I wanted to clarify a few things on my above post. The O82 logging config above is set globally. In order to accomplish my objective while still retaining the functionality of the config above, would it be possible to simply add a new logging config for option82 into the specific subnet or pool declaration where I want the new logging to occur? I think that may work and over-ride the exisitng 082 config, just for that one subnet/scope. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 9, 2017 at 7:04 PM, project722 <span dir="ltr"><<a href="mailto:project722@gmail.com" target="_blank">project722@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi all, we have a option 82 stanza setup on our rhel 6 server that includes the following:<br><br><br>if((option dhcp-message-type = 3 or option dhcp-message-type = 5) and exists agent.circuit-id) {<br>        log(info, concat( "OPTION-82 | IP =", binary-to-ascii (10, 8, ".",leased-address),<br>                " | MAC=", suffix (concat("0", binary-to-ascii (16, 8, "", substring( hardware, 1, 1))),2),":",<br>                suffix (concat("0", binary-to-ascii (16, 8, "", substring( hardware, 2, 1))),2),":",<br>                suffix (concat("0", binary-to-ascii (16, 8, "", substring( hardware, 3, 1))),2),":",<br>                suffix (concat("0", binary-to-ascii (16, 8, "", substring( hardware, 4, 1))),2),":",<br>                suffix (concat("0", binary-to-ascii (16, 8, "", substring( hardware, 5, 1))),2),":",<br>                suffix (concat("0", binary-to-ascii (16, 8, "", substring( hardware, 6, 1))),2),<br>                #" | CIRCUIT-ID=", binary-to-ascii (10, 8, ".", option agent.circuit-id),<br>                #" | REMOTE-ID=", binary-to-ascii (10, 8, ".", option agent.remote-id),<br>                " | CIRCUIT-ID=", substring( option agent.circuit-id, 0, 9999),<br>                " | REMOTE-ID=", substring( option agent.remote-id, 0, 9999)));<br>}<br><br></div>This only logs option 82 data and we don't use it for making DHCP based decisions such as handing out IP's and such. The logs from this produce the following format:<br><br>Nov  9 18:56:56 servername dhcpd: OPTION-82 | IP =192.168.100.101 | MAC=00:0f:94:43:f4:10 | CIRCUIT-ID=Area1_TA5000 eth 2/6/15/1/1:200 | REMOTE-ID=647653__DATA_ETH1<br><br></div>We now have a need to capture option 82 data from a specific DHCP pool that can only send the MAC address in the CID and RID fields instead of the fields that you see above. Is it possible to create a new additional option 82 stanza just for the IP pool that can only send the MAC in the CID and RID fields without affecting the existing option 82 stanza above?<br><div><div><br></div></div></div>
</blockquote></div><br></div>