prtconf
I came this very useful tool for solaris the other day. It can be used to print hardware device information of the system. The tool is invoked as
/usr/sbin/prtconf
This gives very basic info about the system. Using the -v option makes it print more verbose information. To get the amount of memory on the system
/usr/sbin/prtconf | grep Memory
Memory size: 320 Megabytes
To get CPU info like vendor id and speed
/usr/sbin/prtconf -v
looking under the cpu, instance #x tree ( x = 0 for single cpu ) we see that there is a leaf by the name cpu-mhz as shown below.
name='cpu-mhz' type=int items=1
value=00000226
I'm guessing that that value(0000226, in hex, which is 550 in decimal) gives the CPU speed in MHz. Processor info can also be got using the command
/usr/sbin/psrinfo -v
/usr/sbin/prtconf
This gives very basic info about the system. Using the -v option makes it print more verbose information. To get the amount of memory on the system
/usr/sbin/prtconf | grep Memory
Memory size: 320 Megabytes
To get CPU info like vendor id and speed
/usr/sbin/prtconf -v
looking under the cpu, instance #x tree ( x = 0 for single cpu ) we see that there is a leaf by the name cpu-mhz as shown below.
name='cpu-mhz' type=int items=1
value=00000226
I'm guessing that that value(0000226, in hex, which is 550 in decimal) gives the CPU speed in MHz. Processor info can also be got using the command
/usr/sbin/psrinfo -v
0 Comments:
Post a Comment
<< Home