Macro 32 Ramblings

Mind Archive

Sun Hardware > How to figure out hardware model from command line

http://www.motherboardpoint.com/figure-out-hardware-model-command-line-t144588.html

/usr/bin/uname -i

(use the full path to avoid shell builtins some versions of which will
will show the hostid for uname -i instead) sometimes do the job, but some
systems look identical at that level. For them,

prtconf -pv|grep ‘banner-name’

might distinguish among them. It probably takes both to do the job (since
there are some where the uname -i is the same, and others where
banner-name is not present, I think), and I don’t promise that even that
will cover all possiblities.

As a further trick, systems where the high order bit of the hostid
(0x80000000) is _not_ on can be distinguished by the high order byte
of the host id ,if you happen to know the magic values (they used to
be in /usr/include/sys/cpu.h, back around the Solaris 2.5.1 days, but
are’t in there anymore as of Solaris 8; I don’t know when they went away).
Basically, that only works with sun4c’s and some sun4m’s; AFAIK, it
does _not_ work with sun4d’s or any sun4u’s.

And with (as root)

adb -k <