<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Just a thought (untested):<br>
<font color="#993300"><tt>subnet 192.168.6.0 netmask 255.255.255.0 {</tt><tt><br>
</tt><tt>.</tt><tt><br>
</tt><tt>.</tt><tt><br>
</tt><tt> pool {</tt><tt><br>
</tt><tt> set special82 = "yes";<br>
allow members of "something";<br>
</tt><tt> deny dynamic bootp clients;</tt><tt><br>
</tt><tt> range 192.168.6.64 192.168.6.95;</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt> pool {</tt><tt><br>
</tt><tt>
set special82 = "no";</tt><tt><br>
</tt><tt>
</tt></font><font color="#993300"><tt><font color="#993300"><tt>
deny members of "something";<br>
</tt></font> deny dynamic bootp clients;</tt><tt><br>
</tt><tt>
range 192.168.6.64 192.168.6.95;</tt><tt><br>
</tt><tt>
}</tt><tt><br>
</tt><tt>}</tt><tt><br>
</tt><tt>.</tt><tt><br>
</tt><tt>.</tt><tt><br>
</tt><tt>if special82 = "yes" {</tt><tt><br>
</tt><tt> log ( info,</tt><tt><br>
</tt><tt> "blah blah your stuff here"</tt><tt><br>
</tt><tt> );</tt><tt><br>
</tt><tt>}</tt><tt><br>
</tt><tt>
</tt></font><br>
Hope this helps,<br>
Bill<br>
<br>
<div class="moz-cite-prefix">On 11/10/2017 8:03 AM, project722
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPBQMZCiFbstk6mC1-xkd3753m3yiQawUByGBi=1wCim0uOdZA@mail.gmail.com">
<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"
moz-do-not-send="true">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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
</blockquote>
<br>
</body>
</html>