Friday, October 07, 2005

How can my program tell what model Sun it is running on?

How can my program tell what model Sun it is running on?Subject: 9.2)

On older suns, the model type is encoded in the hostid. For
suns with the "Openboot" prom (All sparcstations and the 600 series),
/usr/sbin/prtconf will reveal the model type.

"Suntype", written by John DiMarco (jdd@cs.toronto.edu) is a shell
script which does the appropriate thing on all suns. It is available
for anonymous ftp at ftp://ftp.cs.toronto.edu/pub/jdd/suntype

Alternatively, grab Michael Cooper's <mcooper at magnicomp dot com> "sysinfo"
program, which provides all sorts of information about a given system,
including the machine type. sysinfo is available on the web at
http://www.magnicomp.com/, although it is now a commercial product that is
free only for educational and non-profit organizations.

0 Comments:

Post a Comment

<< Home