[rescue] Java - code to detect MAC address?

David Holland dholland at woh.rr.com
Tue Feb 18 14:09:56 CST 2003


This isn't JAVA code, but it was something I just stumbled across, and
sounds like it does what you want.  Perhaps it can at least give some
pointers.. 

http://libdnet.sourceforge.net/

David


On Sun, 2003-02-16 at 01:04, Eric Webb wrote:
> On Sunday 16 February 2003 12:23 am, Patrick Giagnocavo +1.717.201.3366 wrote:
> > > arp -s is pretty standard across most Unices, I think.
> >
> > doh!  I meant arp -a of course....
> 
> Well, the arp command and its general purpose in life is somewhat standard, 
> but output format is different between Linux, AIX and Solaris (actually, AIX 
> and Linux look similar.)  True, it will give you mac addresses for machines 
> it has recently communicated with, but it will not in always tell you the mac 
> address of itself (Solaris and Linux do, but AIX doesn't).
> 
> And there's still one further problem -- I need to know the hardware address 
> of the *default route* nic in a multi-homed system.
> 
> 
> Argh.  Custom code and kludgy response parsing here I come.
> 
> 
> -E.
> _______________________________________________
> rescue list - http://www.sunhelp.org/mailman/listinfo/rescue


More information about the rescue mailing list