WMI is installed by default on Win2K, WinXP and Windows 2003.  It is part of the WBEM initiative to provide a common interface to the computer environment.  If you go to http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyid=9ef05cbd-c1c5-41e7-9da8-212c414a7ab0 .  Microsoft has provided a tool (called Scriptomatic) that you will provide WMI scripts that use WMI using _vbscript_, Perl, JScript, Python.  There are classes such as Win32_Disk, Win32_DiskDrivePhysicalMedia, Win32_LogicalDisk, etc. , that should give you the details you will need.  Also, http://cwashington.netreach.net/depo/view.asp?Index=818&ScriptType=perl has a sample script (Script using WMI to query computers for Logical Disk info, compute the amount of free space in MB and percent. Output file in HTML , option to display on screen or email the HTML file.).
 

Steven Thomson
Unisys
AFRL E-Mail and Lan Support
505-853-3148
[EMAIL PROTECTED]
"Before they invented drawing boards, what did they go back to?"
 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, October 03, 2005 10:28 AM
To: $Bill Luebkert
Cc: [email protected]
Subject: Re: Returning remote directory information


Bill,

WMI = Windows Management Instrumentation?  We do not use such a package in our WIN2k server environments.
Unfortunately, rsh requires a server process running on the server, which can only be installed by the administrative team.  Are there no packages offered through CPAN/Other?

Regards,


Chris McEwen
Sr. Configuration Management Analyst
Alcatel Canada Inc.
Office: 416.748.4424 ext 5015
mailto: [EMAIL PROTECTED]



"$Bill Luebkert" <[EMAIL PROTECTED]>

10/03/2005 12:15 PM

To
[EMAIL PROTECTED]
cc
[email protected]
Subject
Re: Returning remote directory information





[EMAIL PROTECTED] wrote:
>
> Morning,
>
> I am trying to create a function that would log into to a remote server
> and return the directory size.  Is there an existing package that can be
> downloaded which will return the size of a remote directory?

You should be able to use WMI or some form of rsh (module or cmdline)
given the right perms to access the remote computer.

--
 ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
(_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
 / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to