Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Win32 Registry and Physical Memory

by Anonymous Monk
on Jun 07, 2002 at 18:01 UTC ( [id://172593]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello All, I am writing a script that will get all important hardware/system info for a remote server, but I can't figure out how to access the physical memory value in the registry (HKLM/HARDWARE/RESOURCEMAP/System Resources/Physical Memory/). The value for this key is listed as .Translated:REG_RESOURCE_LIST. If I'm supposed to be looking somewhere else or if there is another way to grab the RAM size from the server please let me know. I am currently using the Win32::TieRegistry module. Thanks!

Replies are listed 'Best First'.
Re: Win32 Registry and Physical Memory
by Moonie (Friar) on Jun 07, 2002 at 18:09 UTC
    You might want to look at Win32::AdminMisc. There's a function called GetMemoryInfo() - which I think would solve your problem.

    - Moon
Re: Win32 Registry and Physical Memory
by Rex(Wrecks) (Curate) on Jun 07, 2002 at 18:10 UTC
    Win32::AdminMisc is what you are looking for.

    "Nothing is sure but death and taxes" I say combine the two and its death to all taxes!
      Thanks for the quick responses, but the Win32::AdminMisc::GetMemoryInfo function only works locally (unless I am missing something). I need it to hit remote machines. :(

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://172593]
Approved by Rex(Wrecks)
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found