Page 1 of 1 1
Topic Options
#38125 - 2003-03-20 03:07 PM Disk Quotas
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
I have disk quotas running on my windows 2000 server. There is a field for warning and it puts an event in the event log. Is there a way I can write a script that when a disk quota warning comes in the event log it would send the user an email telling them they are running out of disk space before it denys them?
Top
#38126 - 2003-03-20 03:10 PM Re: Disk Quotas
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes, you can. Look up EventSinks on the Microsoft MSDN website. They have a couple of VBScript example scripts. Or take a look at the ReadEVentlog() UDF.

However, I would highly recommend a professional disk quota software, such as W. Quinn / Precise (http://www.precise.com/Solutions/Storage/ )

The build-in quota-management is bare-bones and more or less unusable if you really want to do meaningful quoteas.

[ 20. March 2003, 15:11: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#38127 - 2003-03-21 01:47 AM Re: Disk Quotas
howyadoing Offline
Getting the hang of it

Registered: 2002-06-01
Posts: 86
Loc: Cincinnati
I read the udf and it looks easy to use. I am not quite sure how to code the rest of the script. Should I do something like

if $eventlog = 'system' and $eventid = '36'
else
endif

mail
etc?

Top
#38128 - 2003-03-21 03:20 AM Re: Disk Quotas
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please read the header for the ReadEVentlog(). It does explain how to use it. Basically, you would pull the events since the last check out of the eventlog and then take appropiate action based on the event info.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.059 seconds in which 0.031 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org