getting RAM size


 
Thread Tools Search this Thread
Top Forums Programming getting RAM size
# 1  
Old 05-30-2005
getting RAM size

Sir,

How can i get the RAM size .Is there is any predefined function ..Howsir???

Thanks In advance,
ArunKumar
# 2  
Old 05-30-2005
Whether or not this is possible and how to do it if it is possible depends on the specific OS.
# 3  
Old 05-30-2005
sir i am using unix how can i do it.If possible please explain with a example code.

Thanks,
ArunKumar
# 4  
Old 05-30-2005
Unix is a family of operating systems. If you need a portable way to determine the ram size on all of them you are out of luck. That cannot be done. As an example, I believe that I could do this with HP-UX 11i provided that I am running as root. If you do not know your OS, run "uname -a" and post the results.
# 5  
Old 05-30-2005
i get

Linux linuxserver 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux

sir please give me idea how can i get for windows and dos
# 6  
Old 05-30-2005
With linux, you can read the file /proc/meminfo and parse the results. It will seem to be a text file. You can "cat /proc/meminfo" to see what you have to work with.

I'm not a Windows guy. But I think WMI is the way to go at least with XP. I'm not a wmi expert. But from my command window I ran the command:
wmic path Win32_PhysicalMemory get Capacity
and I got two lines, one for each of my memory modules. I know that you can invoke wmi from vbscript but I have never done that. Anyway look for wmi documentation as a starting point.
# 7  
Old 05-30-2005
Thank you i will parse the result i am etting many output i dont know which is ram memory.. Help please...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Command for finding RAM size in HP-UX

I am trying to find RAM size in my HP-UNIX server. what command I should use for this? I am using top command but not clear about below line from top o/p Memory: 1517080K (471284K) real, 1877692K (751256K) virtual, 8078944K free Page# 1/6 (3 Replies)
Discussion started by: venkatababu
3 Replies

2. Red Hat

RAM Size

Can anyone let me know whether there is a command to know the RAM capacity in GB? I have tried cat /proc/meminfo and free.But its not in GB. I need to use it in script. Thanks and Regards (4 Replies)
Discussion started by: Rupaa
4 Replies

3. UNIX for Dummies Questions & Answers

how to know RAM size

Hi can anyone please help me, how to know RAM specification in unix? (4 Replies)
Discussion started by: palash2k
4 Replies

4. Shell Programming and Scripting

To find the RAM size for an Linux server.

Hi Gurus, Can someone let me know how to find the RAM size,ROM size and Number of processors for a linux server. Version :Linux 2.4.9-e.57smp Also what does "e.57smp" stands for? Thanks in advance gurus..... cheers. (3 Replies)
Discussion started by: navojit dutta
3 Replies

5. Shell Programming and Scripting

ram size in sun solaris

I need to check ram size and currently free in sun solaris box (8 Replies)
Discussion started by: pmsuper
8 Replies

6. AIX

To find RAM Size in AIX as normal user?

Hi, Am jus trying to find the Total RAM Size of a AIX m/c (in MB)..svmon works perfectly for a superuser...But i want to achive this as a normal user...Please help me out with correct command.. Best Regards, Muthukumaran.M (3 Replies)
Discussion started by: muthukumaran13
3 Replies

7. HP-UX

RAM size

hi, while i am working in hpux 11.23 using a telnet connection how do i check the RAM size and hard disk size? (4 Replies)
Discussion started by: sekar sundaram
4 Replies

8. UNIX for Dummies Questions & Answers

How to find RAM size in my Solaris 8

Hello there, I have a very basic question. It is so simple to find out all the information about system in windows environment. But I do not see any easy way to find it out in my Unix (Solaris 8) box. All I want to find out how much RAM I have in my solaris 8 box. Is there any command? ... (3 Replies)
Discussion started by: malikabid
3 Replies

9. UNIX for Dummies Questions & Answers

Size of Installed RAM ?

Is it possible from the command line, or by looking at one of the log files to find out the amount of RAM installed on my SCO Unix 5.05 Server? I also need to find out H/Disk size and Processor speed but I think i'll do a search of the forums for those ones. Thanks RamblasPro (2 Replies)
Discussion started by: RamblasPro
2 Replies

10. UNIX for Dummies Questions & Answers

RAM size in Digital unix

Hi All Im currntly working on a digital unix machine and must know what is the amount of MB\GB instaled ( i do not have physical access to the machine). can anyone help me here? 10x!!!!!!!!!!!!!!! (1 Reply)
Discussion started by: dindan100
1 Replies
Login or Register to Ask a Question