Low hard drive warning

  • Thread starter Thread starter David
  • Start date Start date
D

David

How can I configure windows 2000 and 2003 server to send me notification
when one of the servers hard drives reaches a certain level of free disk
space?
 
David said:
How can I configure windows 2000 and 2003 server to send me notification
when one of the servers hard drives reaches a certain level of free disk
space?

If you dig around then you may be able to find an automatic
function that will do this for you. Check out Google - someone
has probably done this before.

You can also use the Task Scheduler to run the batch file
below once every night. Use mailto.exe, sendmail.exe, blat.exe
or some other public domain command line mailer to generate
an alert mail.

1 @echo off
2 Rem Set the trigger level in the following line to the required number of
MBytes.
3 set limit=6000

4 for /F "tokens=3" %%a in ('dir c:\ /-c ^| find /i "bytes free"') do set
free=%%a
5 set free=%free:~0,-6%
6 if "%free%"=="" set free=0
7 if %free% LSS %limit% c:\tools\mailto . . . . . .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top