<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>@font-face {
        font-family: Shruti;
}
@font-face {
        font-family: Shruti;
}
@font-face {
        font-family: Calibri;
}
@page WordSection1 {margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
LI.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
DIV.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: windowtext
}
.MsoChpDefault {
        FONT-FAMILY: "Calibri","sans-serif"
}
</style><style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body lang="EN-US" vlink="purple" link="blue" fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>look in in the archives for some of the examples using pick-first-value</p>
<div>
<p> </p>
<div><font size="2" face="Tahoma">Randall Grimshaw <a href="mailto:rgrimsha@syr.edu">
rgrimsha@syr.edu</a></font></div>
<div> </div>
</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<hr tabindex="-1">
<div style="DIRECTION: ltr" id="divRpF2565"><font color="#000000" size="2" face="Tahoma"><b>From:</b> dhcp-users-bounces+rgrimsha=syr.edu@lists.isc.org [dhcp-users-bounces+rgrimsha=syr.edu@lists.isc.org] on behalf of arunprasad [arunprasad@pointred.co]<br>
<b>Sent:</b> Monday, March 12, 2012 8:00 AM<br>
<b>To:</b> dhcp-users@lists.isc.org<br>
<b>Subject:</b> Re: Option 82 suboption 6 (subscriber-id) -how<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Dear All,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I'd like to parse agent.subscriber-id field "arun" as follow:- but unfortunatly ISCDHCP server notable to..</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">lease 10.30.30.100 {</p>
<p class="MsoNormal">  starts 1 2012/03/12 10:08:45;</p>
<p class="MsoNormal">  ends 1 2012/03/12 22:08:45;</p>
<p class="MsoNormal">  tstp 1 2012/03/12 22:08:45;</p>
<p class="MsoNormal">  cltt 1 2012/03/12 10:08:45;</p>
<p class="MsoNormal">  binding state active;</p>
<p class="MsoNormal">  next binding state free;</p>
<p class="MsoNormal">  rewind binding state free;</p>
<p class="MsoNormal">  hardware ethernet 00:0d:3b:12:15:a8;</p>
<p class="MsoNormal">  uid "\001\000\015;\022\025\250";</p>
<p class="MsoNormal">  <b>option agent.unknown-6 "<a href="mailto:arun@miptest.com" target="_blank">arun@miptest.com</a>";</b></p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><b>The log message:- </b></p>
<p class="MsoNormal"><b></b> </p>
<p class="MsoNormal"><b>/etc/dhcpd.conf line 51: no option named subscriber-id in space agent</b></p>
<p class="MsoNormal"><b>        match if option agent.subscriber-id</b></p>
<p class="MsoNormal"><b>                              ^</b></p>
<p class="MsoNormal">dhcpd.conf:-</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">class "Static-1" {</p>
<p class="MsoNormal">        match if option agent.subscriber-id "<a href="mailto:arun@miptest.com" target="_blank">arun@miptest.com</a>";</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">shared-network miptest {</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">  subnet 10.30.30.0 netmask 255.255.255.0</p>
<p class="MsoNormal">    {</p>
<p class="MsoNormal">    option subnet-mask 255.255.255.0;</p>
<p class="MsoNormal">    option routers 10.30.30.1;</p>
<p class="MsoNormal">    pool {</p>
<p class="MsoNormal">        range 10.30.30.55;</p>
<p class="MsoNormal">        allow members of "Static-1";</p>
<p class="MsoNormal">    }</p>
<p class="MsoNormal">    pool {</p>
<p class="MsoNormal">        range 10.30.30.100 10.30.30.200;</p>
<p class="MsoNormal">        deny members of "Static-1";</p>
<p class="MsoNormal">    }</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">even I modified the source code (added following line) but no luck</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The file server/stables.c</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">struct universe agent_universe;</p>
<p class="MsoNormal">static struct option agent_options[] = {</p>
<p class="MsoNormal">        { "circuit-id", "X",                    &agent_universe,   1, 1 },</p>
<p class="MsoNormal">        { "remote-id", "X",                     &agent_universe,   2, 1 },</p>
<p class="MsoNormal">        { "agent-id", "I",                      &agent_universe,   3, 1 },</p>
<p class="MsoNormal">        { "DOCSIS-device-class", "L",           &agent_universe,   4, 1 },</p>
<p class="MsoNormal">        { "link-selection", "I",                &agent_universe,   5, 1 },</p>
<p class="MsoNormal"><b>        { "subscriber-id", "X",                 &agent_universe,   6, 1 },</b></p>
<p class="MsoNormal">        { NULL, NULL, NULL, 0, 0 }</p>
<p class="MsoNormal">};</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">somebody’s help is highly appreciated.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Regards</p>
<p class="MsoNormal">Arun.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
<pre>DISCLAIMER:
The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. PointRed Telecom Ltd (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system and does not guarantee that the integrity of this communication has been maintained or that this communication is free of viruses, interceptions or interferences. 

</pre>
</div>
</div>
</div>
</body>
</html>