home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sgi / 16360 < prev    next >
Encoding:
Text File  |  1992-11-12  |  2.0 KB  |  53 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sgigate!sgi!rhyolite!vjs
  3. From: vjs@rhyolite.wpd.sgi.com (Vernon Schryver)
  4. Subject: Re: FAQ How to obtain my ethernet address?
  5. Message-ID: <s9gp934@rhyolite.wpd.sgi.com>
  6. Organization: Silicon Graphics, Inc.  Mountain View, CA
  7. References: <34037@adm.brl.mil> <1du9g1INNj2o@fnnews.fnal.gov>
  8. Date: Thu, 12 Nov 1992 20:34:25 GMT
  9. Lines: 42
  10.  
  11. In article <1du9g1INNj2o@fnnews.fnal.gov>, shah@fnsony.fnal.gov (Hemant Shah) writes:
  12. > In article <34037@adm.brl.mil>, HACK@fcrfv2.ncifcrf.gov writes:
  13. > |> I know it's been recently asked but I can't find my notes . . .
  14. > |> 
  15. > |> What is the command to obtain my Ethernet address?
  16. > |> 
  17. > |> Thanks.
  18. > |> 
  19. > |> Dallas C. Hack
  20. > |> hack@fcrfv1.ncifcrf.gov
  21. > Here's a little shell script I use:
  22. > ---------------- 8< ------- Begin shell script ---------- 8< -------------
  23. > #!/bin/sh
  24. >    # On SGI systems, sysinfo command gives 2 different outputs depending on
  25. >    # the model. It display 4 rows of numbers. On some systems it give last 4
  26. >    # bytes of the ethernet address and rest of the fields are "00", in that
  27. >    # case prepend "08:00" which identifies this system as SGI.
  28. >    # On other systems it displays 4 rows of numbers (not all are "00")
  29. >    # in this case first alternate 6 set of numbers give full ethernet address
  30. >    # of the system...
  31.  
  32.  
  33. Using sysinfo to get the ethernet address is a Bad Idea, at least with current
  34. versions of IRIX.
  35.  
  36. If SGI ever gets its act together for system ID's after these last 6+
  37. years of trying, the already very tenuous connection between the sysid
  38. and the ethernet address will fade entirely.
  39.  
  40. As I recall, the main thing that kept ASD platforms relating the
  41. system ID with the ethernet ID was downward compatibility.  Future
  42. systems do not have that constraint.
  43.  
  44.  
  45. Instead, use `netstat -ina`.  It is supposed to return the MAC address
  46. and does.  With netsetat, you don't have to make fiddles about the
  47. relation, if any, between the system ID and any of the network MAC
  48. addresses.
  49.  
  50.  
  51. Vernon Schryver,  vjs@sgi.com
  52.