[ To find memory size ]
AIX | lsattr -El mem0 | grep Total | awk '{ printf("%.0f\n", $2) }' |
HP-UX | (pa-risc)
/opt/ignite/bin/print_manifest | grep "Memory:" (ia64) machinfo | tr -d '=' | awk '/Memory/ { printf("%.0f\n", $2/1024) }' |
SunOS | prtconf -pv | grep '^Memory' | awk '{ printf("%.0f\n", $3/1024) }' |
Linux | cat /proc/meminfo | awk '/MemTotal:/ { printf("%.0f\n", $2/1024/1024) }' |
Windows | ([Math]::round((wmic MemoryChip get Capacity | findstr /v Capacity | findstr /v "^$" | Measure-Object -Sum | select Sum | findstr /v "^$" | select -Last 1)/1024/1024/1024)) |
No comments:
Post a Comment