Commands for check RAM size on Linux, AIX , Solaris , HP-UX, Windows platforms

Check RAM Size on Linux, AIX, Solaries,HP-US and Windows Platform

Display RAM Size on windows
check the ram size on windows platform with systeminfo or wmic commands

systeminfo |find "Total Physical Memory"
Output:
Total Physical Memory: 8,097 MB

wmic MemoryChip get BankLabel, Capacity, MemoryType, TypeDetail, Speed
Output:
BankLabel Capacity MemoryType Speed TypeDetail
4294967296 0 1600 128
4294967296 0 1600 128

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
Output:
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 , 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
Output:
mem0       Available 00-00           Memory

Here you can see that mem0 is the name of the memory device. Now that you have the name,
you can issue the lsattr –El command to see the amount of memory on the server.
In the following example, the server has 3GB of RAM installed.

lsattr -El mem0
Output:
size     3064 Total amount of physical memory …
You must issue the lsattr –El command separately for each memory device.

Display RAM Size on Solaris
The prtconf command can also be used on all Solaris servers to quickly see the amount of available memory:

prtconf|grep -i mem
Output:
Memory size: 2048 Megabytes
memory (driver not attached)
virtual-memory (driver not attached)

Display RAM Size in Linux
In Linux, the free command can be used to quickly display the amount of RAM memory on the server:

free
Output:
 total       used       free     shared    buffers     cached
Mem:       3728668     504688    3223980      41316     430072      29440
-/+ buffers/cache:      45176    3683492
Swap:       265032        608     264424

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s