<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=945282820-05082008><FONT face=Arial 
color=#0000ff size=2>I have done it before using awk to parse the leases file - 
I left that code at my last job, but a quick search found 
this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=945282820-05082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=945282820-05082008><FONT face=Arial 
color=#0000ff size=2><A 
href="http://blackshell.usebox.net/pub/shell/dhcp.awk">http://blackshell.usebox.net/pub/shell/dhcp.awk</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=945282820-05082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=945282820-05082008><FONT face=Arial 
color=#0000ff size=2>which you can probably adapt to suit your needs pretty 
quickly.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=945282820-05082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=945282820-05082008><FONT face=Arial 
color=#0000ff size=2>Thats my very quick answer - I'm sure others probably have 
better ones.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=945282820-05082008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=945282820-05082008><FONT face=Arial 
color=#0000ff size=2>t.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> dhcp-users-bounce@isc.org 
[mailto:dhcp-users-bounce@isc.org] <B>On Behalf Of </B>schilling<BR><B>Sent:</B> 
Tuesday, August 05, 2008 4:11 PM<BR><B>To:</B> 
dhcp-users@isc.org<BR><B>Subject:</B> what's the easiest way to get current 
lease given the ip address?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>Hi All,<BR><BR>We could know the IP address from webpage, but how 
to map the ip address to the mac address if the dhcp and web server are on the 
same computer?<BR><BR>Thanks.<BR><BR>Schilling<BR></DIV>--------------------------------------------------------------------- <br>
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
</BODY></HTML>