Title: RE: Win32::AdminMisc::GetMemoryInfo reporting unrealistic data

Hmm.. that works, but it's slow as snot compared to other methods.  Sigh.
TotalPhysicalMemory in Win32_ComputerSystem seems a little more accurate than TotalVisibleMemorySize, so far.

Thanks for the pointers, though!


-----Original Message-----
From: Patrick J. LoPresti [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 12, 2003 8:06 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Win32::AdminMisc::GetMemoryInfo reporting unrealistic data


There are a few WMI interfaces for querying physical memory.  The
TotalVisibleMemorySize property of Win32_OperatingSystem is one of
them:

  http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_operatingsystem.asp

To try it out, download instances.pl from:

  http://unattended.sourceforge.net/apps.html#instances

Then run "instances.pl Win32_OperatingSystem".  Use "-r <hostname>" to
operate on a remote system.

Specialized code to query just this property would only need a handful
of lines.

 - Pat
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to