[ To find cpu type ]
AIX | prtconf | awk -F: '/Processor Type:/ { print $2 }' |
HP-UX | (pa-risc)
/opt/ignite/bin/print_manifest or ioscan -fknC processor (ia64) machinfo | sed -e 's/ */ /g' | grep 'Intel(R) Itanium' | tail -1 | awk -F':' \ '{ if($0 ~ /processor model/) $0=$2; else $0=$0; } END { print $0; }' | sed -e 's/Intel(R)//' -e 's/[Pp]rocessor//' -e 's/^ *//' | tr -d ',' |
SunOS | psrinfo -vp | grep -v '^$' | tail -1 | awk '{ if($1 ~ /SPARC/) print $1; else print $2, $4; }' |
Linux | cat
/proc/cpuinfo | grep 'model name' | awk -F: '{ print $2 }' | head -1 | sed -e
's/ */ /g' or dmidecode -s processor-version | egrep -v '^#|^$' | head -1 | awk '{ print $2, $4 }' |
Windows | (wmic cpu get Name | findstr /v "^$" | select -Last 1).Trim() |
No comments:
Post a Comment