FreeSpace
Home
Up
Analyze602
AVReceiver
FreeSpace
Home Automation
Irrigation Control 1
ISP Performance
PantryTech/Pod
QuizManager
RandomPix
SlideShow
Web Extraction
Web Path Analyzer
Web Tool
WxPatch

FreeSpace is a simple script that scans selected server volumes and reports on their free space. It also color codes the results to give you quick - at-a-glance indication if a volume is nearing capacity.

Here's a sample report:

Prerequisites

  • Installed and operational web server - tested only with IIS on WinXP
  • Perl installed and associated with .PL suffix in PATHEXT environment var

Download the Perl Script

FreeSpace.zip

Containing:
FreeSpace.pl
CheckVersion.pm

Configure the Script

Manually install FreeSpace.pl into any folder. I recommend c:\Tools. The FreeSpace.pl script requires you to set the name and share for each computer to be monitored. FreeSpace.pl is a text file, so you can edit it with just about anything, notepad for instance.

CheckVersion.pm should be installed into the <perl>\site\lib\Version folder, which you may have to create.

Win32-AdminMisc.ppd must be downloaded and installed. Visit http://www.roth.net/perl/adminmisc/ for the download and instructions for installation.

Testing and Deployment

You can run this script from the command line. If you have perl files configured properly, you can simply type "FreeSpace" and it will run and report. If you see the html content, you are ready for automation.

Run as a period Job

Open Control Panel and then Schedule Tasks. Create a new task to run FreeSpace. A typical command line to do this is

c:\perl\bin\perl.exe c:\Tools\FreeSpace.pl d:\inetpub\www\FreeSpace.htm

This starts perl, gives it the FreeSpace script, and gives that script the path and name where to publish the results. Note that the third parameter should be somewhere within your web space.

Configure this script to run every 1 or perhaps every day, it all depends on how active your servers are.

Run as Admin

In order to access the information on other servers, you must run this script as an Admin. To minimize the security risk, this script should never be run from the web space (which likely isn't "Admin" anyway). So it only publishes a static file to the web server.

Monitor the Servers

I enable active desktop on my main machine. With this, I can embed FreeSpace.htm in the desktop for easy at-a-glance monitoring. You can configure a refresh interval so it will be reasonably up to date. Note that the refresh interval is configured separately from how often you have Task Scheduler set to acquire the data.

License Agreement

This program is Webware. You may install it, test it for a reasonable period of time, and even modify it, but if you elect to keep it in use, whether in original form or in a modified form, you are then obligated to pay on a scale based on the value you receive from it. You are not allowed to redistribute any modified copy.

As with other license agreement, this program is supplied as is, and is not guaranteed free from defects. You assume all risk for problems you may incur as a result of the use of this program.

 

You can use this secure payment system to tell me how you like these programs. If you feel you've acquired a $1 program, then please, send only a single dollar. If you feel it is worth more, then fill in the amount that matches the value you've received.