tags:

views:

5948

answers:

5

Do you know if there is a UNIX command that will tell me what the CPU configuration for my Sun OS UNIX machine is? I am also trying to determine the memory configuration. Is there a UNIX command that will tell me that?

A: 

There is no standard Unix command, AFAIK. I haven't used Sun OS, but on Linux, you can use this:

cat /proc/cpuinfo

Sorry that it is Linux, not Sun OS. There is probably something similar though for Sun OS.

Zifre
There is a standard Solaris command: psrinfo.
Yeah, I said I don't use Sun OS, so I wouldn't know. Anyway, that is not standard Unix.
Zifre
A: 

I think you can use prtdiag or prtconf on many UNIXs

Uri
+4  A: 

Try psrinfo -v.

timday
A: 

My favorite is to look at the boot messages. If it's been recently booted try running /etc/dmesg. Otherwise find the boot messages, logged in /var/adm or some place in /var.

lumpynose
+2  A: 

Firstly it probably depends which version of Solaris you're running, but also what hardware.

On SPARC at least you have 'psrinfo' to show you processors; psrinfo on its own will show you the number of CPUs the machine sees. psrinfo -p shows you the number of physical processors installed. (From that you can deduce the number of threads/cores per physical processors.)

'prtdiag' will display a fair bit of info about the hardware in your machine. It looks like on a V240 you do get memory channel info from prtdiag, but you don't on a T2000. I guess that's an architecture issue between UltraSPARC IIIi and UltraSPARC T1.

James O'Gorman