[ To find cpu sockets ]
AIX | prtconf | awk '/Number Of Processors:/ { print $NF }' |
HP-UX | (pa-risc)
/opt/ignite/bin/print_manifest or ioscan -fknC processor (ia64) machinfo | grep -v 'core.*logical' | awk '/[0-9] socket/ { print $1 }' |
SunOS | psrinfo -vp | grep physical | wc -l | awk '{ print $1 }' |
Linux | cat /proc/cpuinfo | awk '/physical id/ { print }' | sort | uniq | wc -l | awk '{ print $1 }' |
Windows | (wmic computersystem get NumberOfProcessors | findstr /v "^$" | select -Last 1).Trim() |
No comments:
Post a Comment