[ To find cpu speed ]
AIX | prtconf -s | awk '{ print $(NF-1) }' |
HP-UX | (pa-risc)
/opt/ignite/bin/print_manifest or ioscan -fknC processor (ia64) machinfo | grep 'GHz' | sed -e 's/GHz/@/' | awk -F@ '{ print $1 }' | tr -d '()' | awk '{ printf("%.0f\n", $NF*1024) }' |
SunOS | kstat -m cpu_info | grep clock_MHz | head -1 | awk '{ printf("%.0f\n", $2) }' |
Linux | cat
/proc/cpuinfo | awk '/MHz/ {
printf("%.0f\n", $NF) }' | uniq or lscpu | awk '/CPU MHz/ { printf("%.0f\n", $NF) }' |
Windows | ([Math]::round((wmic cpu get MaxClockSpeed | findstr /v "^$" | select -Last 1)/1024)) |
No comments:
Post a Comment