home *** CD-ROM | disk | FTP | other *** search
- 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
- From: weinberg@sho.Eng.Sun.COM (Glenn Weinberg)
- Newsgroups: comp.sys.sun.hardware
- Subject: Re: Host ID
- Message-ID: <ll62khINNr9b@appserv.Eng.Sun.COM>
- Date: 12 Jan 93 18:14:41 GMT
- References: <1993Jan12.151056.6778@eua.ericsson.se>
- Reply-To: weinberg@sho.Eng.Sun.COM
- Organization: Sun Microsystems, Inc.
- Lines: 33
- NNTP-Posting-Host: sho
-
- In article 6778@eua.ericsson.se, euapbn@eua.ericsson.se (Per.Borjeson) writes:
- >In article 20462@porthos.cc.bellcore.com, bmaggio@wort.dcs.bellcore.com (Bill Maggio) writes:
- >> does anyone know how to translate the host id info
- >> into the the Sun system hardware type (eg 670,490,etc)?
- >
- >Hello Bill!
- >
- >Here is a small script that will test this:
- >
- [Script deleted]
-
- Note that as of the SPARCstation LX, Classic and SPARCcenter 2000, you can no
- longer depend on the high-order byte of the host ID to determine the machine
- type.
-
- This information is provided in the Open Boot PROM's device tree (on all Open
- Boot systems, not just the new ones). The "name" property in the root node
- provides the textual name of the machine, e.g., 'SUNW,SPARCcenter-2000'. From
- the shell, you can find this with prtconf -pv (devinfo -pv on 4.x). Programs
- can read /dev/openprom (although they must be sgid sys).
-
- If you use the "name" property to identify the system, you don't have to
- modify your script every time we release a new system, and you don't have
- to worry about getting the translation wrong in your script. For example,
- the SPARCstation IPX machine type is 57, not 56. 56 is the ELC.
-
- Regards,
-
- Glenn
- ---
- Glenn Weinberg Sun Microsystems Computer Corp. glenn.weinberg@Eng.Sun.COM
- Opinions expressed above should not be construed as representing any position,
- official or unofficial, of SMCC or Sun Microsystems, Inc.
-