On Wed, 14 Jul 2004, Timothy Kohl wrote:

Forwarded message:

I need to write a script that will return how much memory (RAM) is on a system as well as how much of it is being used. Can anyone assist?

If this is done under UNIX/Linux, it might be easier than you think: just poke around the proc filesystem and you might find that all you need is really there....


-Federico

Under Linux:

@array_of_information=split(`cat /proc/meminfo`);

But of course, this isn't portable. It won't work on Windows -- which was specifically asked for -- and it also won't work on OSX or various other Unix variants.


Back to square one?

I still think SNMP is the most portable approach, even if it may be a lot of overhead to get started with...


-- Chris Devers _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to