Display RAM size on OS Linux, AIX , Solaris , HP-UX
Display RAM Size on DEC-UNIX
In DEC-UNIX, you can use the uerf command in conjunction with grep to display memory size. For example:
uerf -r 300 | grep -i mem
Here, the output of the uerf command is piped to grep to filter out and display the segments relating to memory. The –i option causes grep to find both uppercase and lowercase strings. With respect to the example shown here, grep –i mem looks for both “MEM” and “mem.”
Display RAM Size on HP/UX
In HP/UX, the dmesg command can display memory information:
dmesg
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 5242880 Kbytes,lockable: 4051216 Kbytes,available: 4651796 Kbytes
Display RAM Size on AIX
In IBM's AIX dialect of UNIX, you must issue two separate commands. You start with the lsdev command followed by the lsattr command to display the amount of memory on a server. First, execute lsdev to list all devices. Then pipe that output through grep to filter out everything not related to memory. That will get you the name of the memory devices that are installed. For example:
lsdev -C|grep mem
mem0 Available 00-00 Memory
No comments:
Post a Comment