home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sun / hardware / 6826 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.9 KB

  1. Path: sparky!uunet!cs.utexas.edu!natinst.com!news.dell.com!texsun!cronkite.Central.Sun.COM!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!appserv.Eng.Sun.COM!sho!weinberg
  2. From: weinberg@sho.Eng.Sun.COM (Glenn Weinberg)
  3. Newsgroups: comp.sys.sun.hardware
  4. Subject: Re: Host ID
  5. Message-ID: <ll62khINNr9b@appserv.Eng.Sun.COM>
  6. Date: 12 Jan 93 18:14:41 GMT
  7. References: <1993Jan12.151056.6778@eua.ericsson.se>
  8. Reply-To: weinberg@sho.Eng.Sun.COM
  9. Organization: Sun Microsystems, Inc.
  10. Lines: 33
  11. NNTP-Posting-Host: sho
  12.  
  13. In article 6778@eua.ericsson.se, euapbn@eua.ericsson.se (Per.Borjeson) writes:
  14. >In article 20462@porthos.cc.bellcore.com, bmaggio@wort.dcs.bellcore.com (Bill Maggio) writes:
  15. >> does anyone know how to translate the host id info 
  16. >> into the the Sun system hardware type (eg 670,490,etc)?
  17. >
  18. >Hello Bill!
  19. >
  20. >Here is a small script that will test this:
  21. >
  22. [Script deleted]
  23.  
  24. Note that as of the SPARCstation LX, Classic and SPARCcenter 2000, you can no
  25. longer depend on the high-order byte of the host ID to determine the machine
  26. type.
  27.  
  28. This information is provided in the Open Boot PROM's device tree (on all Open
  29. Boot systems, not just the new ones).  The "name" property in the root node
  30. provides the textual name of the machine, e.g., 'SUNW,SPARCcenter-2000'.  From
  31. the shell, you can find this with prtconf -pv (devinfo -pv on 4.x).  Programs
  32. can read /dev/openprom (although they must be sgid sys).
  33.  
  34. If you use the "name" property to identify the system, you don't have to
  35. modify your script every time we release a new system, and you don't have
  36. to worry about getting the translation wrong in your script.  For example,
  37. the SPARCstation IPX machine type is 57, not 56.  56 is the ELC.
  38.  
  39.     Regards,
  40.  
  41.     Glenn
  42. ---
  43. Glenn Weinberg    Sun Microsystems Computer Corp.    glenn.weinberg@Eng.Sun.COM
  44. Opinions expressed above should not be construed as representing any position,
  45. official or unofficial, of SMCC or Sun Microsystems, Inc.
  46.