Display the number of CPUs
HP-UNIX
ioscan -c processor | grep processor | wc -l
Solais
Psrinfo -v | grep "status of processor" | wc -l
linux
CAT / Proc / CPUInfo / Grep Processor | WC -L
AIX
Lsdev -c | grep -i processor | wc -l
Show memory quantity
Solaris
Prtconf | grep -i mem
AIX
root> LSDEV-C | GREP MEM
Memo Available 00-00 Memory
It can be seen that MEM0 is the memory device name on the AIX device, and now uses lsattr-ei to see the amount of memory on the server.
root> lsattr - Ei Memo
Linux
Free
HP-UNIX
Swapinfo -tm
Related Resources: Codingame-Code4Life: Codingame-Code4life Game Code - Source Code