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

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

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/sunmanagers/suntype

Alternatively, grab Michael Cooper's "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.



Home
FAQ