Monday, September 13, 2010

How to Find out cpu & Memory size?

Solaris :-
======
CPU :- psrinfo -v | grep "Status of processor" | wc –l
Memory :- prtconf | grep -i mem

AIX :-
====
CPU :- lsdev | grep Processor | wc -l
Memory :- lsattr -El mem0

HPUX :-
======
CPU & Memory :- /opt/perf/bin/glance
List processors :- icod_stat -a
Memory :- echo "sc prod memory;info;wait;il" | /usr/sbin/cstm | grep -i total.*memory

Linux :-
=====
CPU :- cat /proc/cpuinfo | grep processor
CPU :- grep cores /proc/cpuinfo
CPU :- cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'
Memory :- cat /proc/meminfo | awk 'match($1,"MemTotal") == 1 {print $2/1024 " MB"}'
 
O2 :-
====
CPU :- pset_info
Memory :- vmstat -P | grep -i "Total Physical Memory ="

No comments:

Post a Comment