<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>I am working on logging option82 information for requests. I would like to just have one line that gives the option82 information, lease time, IP address, hardware address, and host-name if the client has it set. Currently I am using.<br><br><div> if exists agent.remote-id<br>        {<br>        log ( info, concat( "lease,", binary-to-ascii (10, 8, ".", leased-address),",",<br>        "agent,",option agent.remote-id,",",<br>        "time,",binary-to-ascii(10,32,"",encode-int (lease-time,32)),",",<br>        "hardware,",binary-to-ascii(16,8,":",substring(hardware,1,7))<br>         )
 );<br><br>
This gives me <br>lease,192.168.11.250,agent,0003,time,600,hardware,0:1e:a:db:58:4f<br><br>I would like to see the hardware address get formatted with XX:XX:XX:XX:XX:XX currently if the hex value starts with 0 if gets dropped.<br>Also I can't figure out how to extract the host-name. I know that it can be done because both of the values appear correctly in the normal DHCP logging.<br><br>So if someone has some working examples or is willing to help me out that would be great.<br><br>Wayne<br><br><br><br>
<br>
</div><br><br><br><br><br></div></div><br>



      </body></html>