<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi Mateusz,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">is it necessary for you to specify the specific device? Would it be enough for you to distinguish between docsis and mta devices? We are doing the following for our software:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;"> "client-classes": [</div><div id="bloop_customfont" style="margin: 0px;"> {</div><div id="bloop_customfont" style="margin: 0px;"> "boot-file-name": "",</div><div id="bloop_customfont" style="margin: 0px;"> "name": "cpe",</div><div id="bloop_customfont" style="margin: 0px;"> "next-server": "0.0.0.0",</div><div id="bloop_customfont" style="margin: 0px;"> "option-data": [],</div><div id="bloop_customfont" style="margin: 0px;"> "option-def": [],</div><div id="bloop_customfont" style="margin: 0px;"> "server-hostname": "",</div><div id="bloop_customfont" style="margin: 0px;"> "test": "not ((substring(option[60].hex,0,4) == 'pktc') or substring(option[60].hex,0,6) == 'docsis')"</div><div id="bloop_customfont" style="margin: 0px;"> },</div><div id="bloop_customfont" style="margin: 0px;"> {</div><div id="bloop_customfont" style="margin: 0px;"> "boot-file-name": "",</div><div id="bloop_customfont" style="margin: 0px;"> "name": "docsis-devices",</div><div id="bloop_customfont" style="margin: 0px;"> "next-server": "0.0.0.0",</div><div id="bloop_customfont" style="margin: 0px;"> "option-data": [],</div><div id="bloop_customfont" style="margin: 0px;"> "option-def": [],</div><div id="bloop_customfont" style="margin: 0px;"> "server-hostname": "",</div><div id="bloop_customfont" style="margin: 0px;"> "test": "substring(option[60].hex,0,6) == 'docsis'"</div><div id="bloop_customfont" style="margin: 0px;"> },</div><div id="bloop_customfont" style="margin: 0px;"> {</div><div id="bloop_customfont" style="margin: 0px;"> "boot-file-name": "",</div><div id="bloop_customfont" style="margin: 0px;"> "name": "mta",</div><div id="bloop_customfont" style="margin: 0px;"> "next-server": "0.0.0.0",</div><div id="bloop_customfont" style="margin: 0px;"> "option-data": [],</div><div id="bloop_customfont" style="margin: 0px;"> "option-def": [],</div><div id="bloop_customfont" style="margin: 0px;"> "server-hostname": "",</div><div id="bloop_customfont" style="margin: 0px;"> "test": "substring(option[60].hex,0,4) == 'pktc'"</div><div id="bloop_customfont" style="margin: 0px;"> }</div><div id="bloop_customfont" style="margin: 0px;"> ],</div><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;">"shared-networks": [</div><div id="bloop_customfont" style="margin: 0px;"> {</div><div id="bloop_customfont" style="margin: 0px;"> "match-client-id": true,</div><div id="bloop_customfont" style="margin: 0px;"> "name": "Docsis Test Network",</div><div id="bloop_customfont" style="margin: 0px;"> "option-data": [],</div><div id="bloop_customfont" style="margin: 0px;"> "rebind-timer": 0,</div><div id="bloop_customfont" style="margin: 0px;"> "relay": {</div><div id="bloop_customfont" style="margin: 0px;"> "ip-addresses": []</div><div id="bloop_customfont" style="margin: 0px;"> },</div><div id="bloop_customfont" style="margin: 0px;"> "renew-timer": 0,</div><div id="bloop_customfont" style="margin: 0px;"> "reservation-mode": "all",</div><div id="bloop_customfont" style="margin: 0px;"> "subnet4": [</div><div id="bloop_customfont" style="margin: 0px;"> {</div><div id="bloop_customfont" style="margin: 0px;"> "client-class": "docsis-devices",</div><div id="bloop_customfont" style="margin: 0px;"> "option-data": [</div><div id="bloop_customfont" style="margin: 0px;"> …. some options</div><div id="bloop_customfont" style="margin: 0px;"> ],</div><div id="bloop_customfont" style="margin: 0px;"> "pools": [</div><div id="bloop_customfont" style="margin: 0px;"> {</div><div id="bloop_customfont" style="margin: 0px;"> … pools</div><div id="bloop_customfont" style="margin: 0px;"> }</div><div id="bloop_customfont" style="margin: 0px;"> ],</div><div id="bloop_customfont" style="margin: 0px;"> "rebind-timer": 1800,</div><div id="bloop_customfont" style="margin: 0px;"> "relay": {</div><div id="bloop_customfont" style="margin: 0px;"> "ip-addresses": [</div><div id="bloop_customfont" style="margin: 0px;"> “relay_address"</div><div id="bloop_customfont" style="margin: 0px;"> ]</div><div id="bloop_customfont" style="margin: 0px;"> },</div><div id="bloop_customfont" style="margin: 0px;"> "subnet": "192.168.225.0/24",</div><div id="bloop_customfont" style="margin: 0px;"> },</div><div id="bloop_customfont" style="margin: 0px;"> {</div><div id="bloop_customfont" style="margin: 0px;"> </div><div id="bloop_customfont" style="margin: 0px;"> "client-class": "cpe",</div><div id="bloop_customfont" style="margin: 0px;"> ….. </div><div id="bloop_customfont" style="margin: 0px;"> …..</div><div id="bloop_customfont" style="margin: 0px;"> "subnet": "192.168.226.0/24",</div><div id="bloop_customfont" style="margin: 0px;"> },</div><div id="bloop_customfont" style="margin: 0px;"> {</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"> "next-server": “….",</div><div id="bloop_customfont" style="margin: 0px;"> “client-class”:”mta"</div><div id="bloop_customfont" style="margin: 0px;"> ….</div><div id="bloop_customfont" style="margin: 0px;"> "subnet": "192.168.227.0/24",</div><div id="bloop_customfont" style="margin: 0px;"> }</div><div id="bloop_customfont" style="margin: 0px;"> ],</div><div id="bloop_customfont" style="margin: 0px;"> "valid-lifetime": 0</div><div id="bloop_customfont" style="margin: 0px;"> }</div></div></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Cheers,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Mathias</div> <div id="bloop_sign_1528567619661020928" class="bloop_sign"><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; line-height: 22px;"><br></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; line-height: 22px;"><b style="font-family: Calibri, sans-serif; font-size: 11pt;"><font color="#222222"><span lang="EN-US" xml:lang="EN-US" style="font-size: 9pt; line-height: 18px; font-family: Verdana, sans-serif; letter-spacing: 0.35pt;">EasySolutions GmbH</span>
</font> </b></p><p class="MsoNormal" style="margin: 0.3cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 22px;"><b>
</b>
<span lang="EN-US" xml:lang="EN-US" style="font-size: 8.5pt; line-height: 17px; font-family: Verdana, sans-serif; color: rgb(51, 63, 72); letter-spacing: 0.35pt;">Gugenedt 2<br>
4741 Wendling | Austria</span>
</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 22px;">
<span lang="DE" xml:lang="DE" style="font-size: 8.5pt; line-height: 17px; font-family: Verdana, sans-serif; color: rgb(51, 63, 72); letter-spacing: 0.35pt;">Mobil: <a href="tel://+436605646568">+43 660 5646568</a>
</span>
</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 22px;">
<span style="color: rgb(51, 63, 72); font-family: Verdana, sans-serif; font-size: 11.333333015441895px; letter-spacing: 0.46666666865348816px;">Tel: <a href="tel://+4372090010025">+43 720 900100-25</a>
</span>
</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 22px;">
<span lang="DE" xml:lang="DE" style="font-size: 8.5pt; line-height: 17px; font-family: Verdana, sans-serif; color: rgb(51, 63, 72); letter-spacing: 0.35pt;">
<a href="mailto:mathias.aichinger@easysol.at">mathias.aichinger@easysol.at</a>
</span>
</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 22px;"></p>
<p class="MsoNormal" style="margin: 0.3cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 22px;"></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 22px;">
<span lang="DE" xml:lang="DE" style="color: rgb(51, 63, 72);">
<span style="font-size: 8.5pt; line-height: 17px; font-family: Verdana, sans-serif; letter-spacing: 0.35pt;">
<a href="http://www.easysol.at/">www.easysol.at</a></span></span></p>
</div> <br><p class="airmail_on">On 8. June 2018 at 15:08:02, Mateusz Galiński (<a href="mailto:m.galinski@vector.net">m.galinski@vector.net</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div lang="PL" link="#0563C1" vlink="#954F72"><div></div><div>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hey Kea DHCP users.<o:p></o:p></p>
<p class="MsoNormal">I have following problem. I want to match my cable modem config file by Cable Modem Software Version. Software Version is capsulated in Vendor Specific Information, suboption 6.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Wireshark Discover:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> Option: (43) Vendor-Specific Information (CableLabs)<o:p></o:p></p>
<p class="MsoNormal"> Length: 96<o:p></o:p></p>
<p class="MsoNormal"> Option 43 Suboption: (2) Device Type<o:p></o:p></p>
<p class="MsoNormal"> Length: 3<o:p></o:p></p>
<p class="MsoNormal"> Device Type: ECM<o:p></o:p></p>
<p class="MsoNormal"> Option 43 Suboption: (3) eSAFE Types<o:p></o:p></p>
<p class="MsoNormal"> Length: 4<o:p></o:p></p>
<p class="MsoNormal"> eSAFE Types: ECM:<o:p></o:p></p>
<p class="MsoNormal"> Option 43 Suboption: (4) Serial Number<o:p></o:p></p>
<p class="MsoNormal"> Length: 15<o:p></o:p></p>
<p class="MsoNormal"> Serial Number: FASBRZ79K100067<o:p></o:p></p>
<p class="MsoNormal"> Option 43 Suboption: (5) Hardware Version<o:p></o:p></p>
<p class="MsoNormal"> Length: 1<o:p></o:p></p>
<p class="MsoNormal"> Hardware Version: 1<o:p></o:p></p>
<p class="MsoNormal"> Option 43 Suboption: (6) Software Version<o:p></o:p></p>
<p class="MsoNormal"> Length: 8<o:p></o:p></p>
<p class="MsoNormal"> Software Version: 9.1.103S<o:p></o:p></p>
<p class="MsoNormal"> Option 43 Suboption: (7) Boot ROM version<o:p></o:p></p>
<p class="MsoNormal"> Length: 8<o:p></o:p></p>
<p class="MsoNormal"> Boot ROM version: 1.2.1.62<o:p></o:p></p>
<p class="MsoNormal"> Option 43 Suboption: (8) Organizationally Unique Identifier<o:p></o:p></p>
<p class="MsoNormal"> Length: 6<o:p></o:p></p>
<p class="MsoNormal"> Organizationally Unique Identifier: 0000CA<o:p></o:p></p>
<p class="MsoNormal"> Option 43 Suboption: (9) Model Number<o:p></o:p></p>
<p class="MsoNormal"> Length: 6<o:p></o:p></p>
<p class="MsoNormal"> Model Number: CM820S<o:p></o:p></p>
<p class="MsoNormal"> Option 43 Suboption: (10) Vendor Name<o:p></o:p></p>
<p class="MsoNormal"> Length: 25<o:p></o:p></p>
<p class="MsoNormal"> Vendor Name: Arris Interactive, L.L.C.<o:p></o:p></p>
<p class="MsoNormal"> Option 43 Suboption: (15) eSafe Config File Devices<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I want to use something like this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">"client-classes": [<o:p></o:p></p>
<p class="MsoNormal"> {<o:p></o:p></p>
<p class="MsoNormal"> ##Cable modem CLass<o:p></o:p></p>
<p class="MsoNormal"> "name": "CM1",<o:p></o:p></p>
<p class="MsoNormal"> "test": "substring(option[43].hex, x, x)=='9.1.103S '",<o:p></o:p></p>
<p class="MsoNormal"> "next-server": "10.100.100.30",<o:p></o:p></p>
<p class="MsoNormal"> "option-data": [<o:p></o:p></p>
<p class="MsoNormal"> { "name": "tftp-server-name", "data": "10.100.100.30" },<o:p></o:p></p>
<p class="MsoNormal"> { "name": "time-servers", "data": "10.100.100.30"},<o:p></o:p></p>
<p class="MsoNormal"> { "name": "log-servers", "data": "10.100.100.30" },<o:p></o:p></p>
<p class="MsoNormal"> { "name": "time-offset", "data": "-3600" }<o:p></o:p></p>
<p class="MsoNormal"> ],<o:p></o:p></p>
<p class="MsoNormal"> "only-if-required": true<o:p></o:p></p>
<p class="MsoNormal"> },<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But my problem is that I have a lot of different cable modems, where order and amount of suboption is also different, so I cant specify nr of hex I want to analyze. So my question is, is there a solution to get text from specified Option
and Suboption in class matching?<o:p></o:p></p>
</div>
<hr style="COLOR: #cccccc" id="c1-id-6">
<p class="MsoNormal" style="FONT-FAMILY: Arial; MARGIN: 0cm 0cm 8pt" id="c1-id-7">
<span lang="EN-US" style="FONT-SIZE: 7pt; FONT-FAMILY: Arial; COLOR: #cccccc; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: PL; mso-bidi-language: AR-SA" id="c1-id-8"><span lang="EN-US" style="FONT-SIZE: 7pt; FONT-FAMILY: 'Arial',sans-serif; COLOR: #bfbfbf; LINE-HEIGHT: 107%; mso-ansi-language: EN-US; mso-themecolor: background1; mso-themeshade: 191; mso-style-textfill-fill-color: #BFBFBF; mso-style-textfill-fill-themecolor: background1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=75000" id="c1-id-9">VECTOR
TECHNOLOGIES SA (Joint-Stock Company) incorporated under the laws of Poland<br id="c1-id-10">
Registered offices at 6 Krzemowa Street, Gdynia, Poland (postal code: 81-577)<br id="c1-id-11">
Entered into the National Court Register under KRS no. 0000591577<br id="c1-id-12">
Documents of the Company are filed at the District Court in Gdansk (postal code: 80-126)<br id="c1-id-13">
Share capital: 5.050.000 Polish Zlotys (paid up); tax ID no./EU VAT no.: PL </span>
</span><span lang="EN-US" style="FONT-SIZE: 7pt; COLOR: #cccccc; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: PL; mso-bidi-language: AR-SA" id="c1-id-14"><span lang="EN-US" style="FONT-SIZE: 7pt; COLOR: #bfbfbf; LINE-HEIGHT: 107%; mso-ansi-language: EN-US; mso-themecolor: background1; mso-themeshade: 191; mso-style-textfill-fill-color: #BFBFBF; mso-style-textfill-fill-themecolor: background1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=75000" id="c1-id-15">9581671449<br id="c1-id-16">
</span></span></p>
<hr style="COLOR: #cccccc" id="c1-id-17">
_______________________________________________
<br>Kea-users mailing list
<br>Kea-users@lists.isc.org
<br>https://lists.isc.org/mailman/listinfo/kea-users
<br></div></div></span></blockquote></body></html>