<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Many thanks Glenn.<br><br>I have been trying to play around, but can't seem to get the CID value returned by the NAS back to DHCP server.<br><br>P, Request from 68:ef:bd:4a:fa:18, length: 283, xid:0x349c, flags: [none] (0x0000)<br> Client IP: xx.xx.xx.xx<br> Gateway IP: xx.xx.xx.xx<br> Client Ethernet Address: xx.xx.xx.xx.xx.xx<br> Vendor-rfc1048:<br> DHCP:REQUEST<br> MSZ:1152<br> <b><u> CID:"bob@foobar"<br></u></b> LT:3600<br> PR:SM+NS+DN+WNS<br><br>How can I extract this CID information in the dhcpd log file using the concat method?<br><br>Thanks<br>RK<br><div><div id="SkyDrivePlaceholder"></div>> Date: Fri, 24 Aug 2012 21:15:20 +1000<br>> Subject: RE: addding "CID" and leased address to logging<br>> From: glenn.satchell@uniq.com.au<br>> To: dhcp-users@lists.isc.org<br>> <br>> man dhcp-eval:<br>> <br>> log (priority, data-expr)<br>> <br>> Logging statements may be used to send information to the<br>> standard logging channels. A logging statement includes<br>> an optional priority (fatal, error, info, or debug), and a<br>> data expression.<br>> <br>> Logging statements take only a single data expression<br>> argument, so if you want to output multiple data values,<br>> you will need to use the concat operator to concatenate<br>> them.<br>> <br>> You need to ensure that anything concatenated is not a null string,<br>> otherwise the whole concatenated string is null.<br>> <br>> The logging destination is done through the log-facility command (see<br>> dhcpd.conf(5) and subsequently syslog.conf.<br>> <br>> regards,<br>> -glenn<br>> <br>> On Fri, August 24, 2012 6:35 pm, raz khan wrote:<br>> > Many thanks Niall.I will try the suggested method. However I would like to<br>> > find out if there is any documentation about using "info concat(.." in the<br>> > dhcpd.conf file? I have checked various resources, but nothing mentioned.<br>> > Can anyone point me to the right source?<br>> > ThanksRK<br>> ><br>> >> Subject: Re: addding "CID" and leased address to logging<br>> >> From: Niall.oReilly@ucd.ie<br>> >> Date: Wed, 22 Aug 2012 17:41:49 +0100<br>> >> To: dhcp-users@lists.isc.org<br>> >><br>> >><br>> >> On 22 Aug 2012, at 17:31, raz khan wrote:<br>> >><br>> >> > This information is passed on to the lease file but not to the default<br>> >> log file.<br>> >><br>> >> The kind of thing you seem to need is discussed in the archives. Try<br>> >> https://lists.isc.org/pipermail/dhcp-users/2008-November/007847.html<br>> >><br>> >> Niall O'Reilly<br>> >><br>> >><br>> >> _______________________________________________<br>> >> dhcp-users mailing list<br>> >> dhcp-users@lists.isc.org<br>> >> https://lists.isc.org/mailman/listinfo/dhcp-users<br>> > _______________________________________________<br>> > dhcp-users mailing list<br>> > dhcp-users@lists.isc.org<br>> > https://lists.isc.org/mailman/listinfo/dhcp-users<br>> <br>> <br>> _______________________________________________<br>> dhcp-users mailing list<br>> dhcp-users@lists.isc.org<br>> https://lists.isc.org/mailman/listinfo/dhcp-users<br></div> </div></body>
</html>