How to find hostname

Jason Hellenthal jhellenthal at dataix.net
Thu Sep 18 00:03:41 UTC 2014


The MAC address of the hosts adapter... Take look at the last line of your log file and compare the two.

-- 
 Jason Hellenthal
 Mobile: +1 (616) 953-0176
 jhellenthal at DataIX.net
 JJH48-ARIN

> On Sep 17, 2014, at 18:59, Bill Shirley <Bill at Henagar.PolymerIndustries.biz> wrote:
> 
> I'm having trouble figuring out where this device gets its name.  My log statement:
> on commit {
>         if static { set is-static = " --> STATIC"; } else { set is-static = "";}
>         log (   info,
>                 concat (
>                         "Host:", pick-first-value(option fqdn.hostname, option host-name, ddns-hostname, "(none)")
>                         ,"  VendorId:", pick-first-value(option vendor-class-identifier, "(none)")
> #                       ,"  UserClass:", pick-first-value(option user-class, "(none)")
>                         ,"  MemberOf:", pick-first-value(member_of, "(none)")
>                         ,"  PoolType:", pick-first-value(pool-type, "(none)")
>                         ,"  Lease:", pick-first-value(binary-to-ascii(10,32,"",encode-int(lease-time,32)), "(none)")
>                         , is-static
>                 )
>         );
> }
> 
> And from my log file you can see a 'Host:(none)':
> Sep 17 18:41:22 apinetstore dhcpd: fancy bits in fqdn option
> Sep 17 18:41:22 apinetstore dhcpd: DHCPDISCOVER from 00:20:4a:f3:c5:a7 (CF3C5A7) via lan10
> Sep 17 18:41:23 apinetstore dhcpd: DHCPOFFER on 10.98.1.72 to 00:20:4a:f3:c5:a7 via lan10
> Sep 17 18:41:23 apinetstore dhcpd: fancy bits in fqdn option
> Sep 17 18:41:23 apinetstore dhcpd: Host:(none)  VendorId:(none)  MemberOf:10.Microsoft  PoolType:10.Microsoft  Lease:21600
> Sep 17 18:41:23 apinetstore dhcpd: DHCPREQUEST for 10.98.1.72 (10.96.0.9) from 00:20:4a:f3:c5:a7 via lan10
> Sep 17 18:41:23 apinetstore dhcpd: DHCPACK on 10.98.1.72 to 00:20:4a:f3:c5:a7 via lan10
> 
> Where does the host name CF3C5A7 come from?
> 
> TIA,
> Bill
> 
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20140917/bea38c10/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6118 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20140917/bea38c10/attachment-0001.bin>


More information about the dhcp-users mailing list