SUMMARY: Ethernet hardware address

From: mcgregor@bsys001.fob.ford.com
Date: Thu Mar 31 1994 - 02:10:09 CST


Thanks to everyone to deluged my mailbox with replies! I ended up with a huge
number of responses, most of which fell into 4 categories. These were:

(1) Use 'uerf -R -r 300 | more'
    This is probably the most obvious solution, but doesn't work on machines
    where the reboot information has "fallen off" the end of the syserr file.
    Some of our machines are in this situation.

(2) Use arp -a
    This was a good 'un. What it does is (ref: manual) "DIsplays current
    Address Resolution Protocol (ARP) entries from the specified name list ...".
    Only works if machine has recently pinged (easily fixed).

(3) Get "sysinfo" from an ftp site.
    Does anyone have this? I can't get outside Ford Motor Co. using ftp! The
    reason I was looking for a way to get the ethernet address was to write a
    shell script to dump out machine information (ie. hostname, IP address, OS,
    OS version, software/host ID and ethernet card(s) address(es). The script
    has to work on DECs, HPs, Suns and IBMs. I'll post it when it's finished
    if anyone wants to see it.

(4) Use 'pfstat -p'
    This command prints packet filter status information. With the -p option
    it displays device parameters, one of which is the interface address. Also
    still works when machine if configured as a gateway and has more than one
    ethernet card (as does using uerf).

(5) "Use this program ..."
    A special thanks to all those who sent me a C program to do the trick. I
    tried most of them out, and the ones I tried all worked very well.

A big thanks to the following:

 mnk@wuerl.wustl.edu (Menelaos Karamichalis)
 Dave Sill <de5@de5.ctd.ornl.gov>
 woody@gergu2.tamu.edu (Woody Lee)
 chandler@whatever.cs.jhu.edu (Justin Chandler)
 Johannes Grosen <grosen@isc.cs.ndsu.nodak.edu>
 rees@cs.bu.edu (David Rees)
 Leo Mayerhofer <leo@vmars.tuwien.ac.at>
 oisin@sbcm.com
 Rich Scheller <rms@esu.edu>
 cammuso@server.adra.com (Paul Cammuso)
 ajk@som.fi
 Marc Wiener <marc@aip.org>
 David Warren <warren@atmos.washington.edu>
 huhman@ee.deere.com (Stan Huhman)
 grant@panhed.psc.edu
 smithj@hep.phys.ksu.edu
 steved@longs.lance.colostate.edu
 runde@mms.com

Cheers,

James

,----------------------------------------------.------------------------------.
| James McGregor mcgregor@bsysgwy.fob.ford.com | "I often quote myself; |
| Ford Motor Co. Engineering & Research Centre | it adds spice to my |
| Laindon, Basildon, U.K. SS15 6EE 0268 402910 | conversation" -- G. B. Shaw |
`----------------------------------------------^------------------------------'
 Disclaimer: The views expressed above are mine and not those of Ford Motor Co.



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:58 CDT