Here is the script I wrote and use to email me, senior admins, helpdesk, and
the user responsible for that section. It will also include first level
subdirectories and their size in KB, MB, or GB makes it user friendly, some
users have problems figuring out the numbers.
I left the name of my filer, cosmos, only as an example. Feel free to use
it, at your own risk of course, but will be happy to answer any questions.
for the email portion at the bottom of the script I had to leave out the
email names, but its simple to configure.
hope this helps
Steven
-----Original Message-----
From: Thompson, Tim [mailto:tim.thompson@netapp.com]
Sent: Wednesday, June 13, 2001 2:07 PM
To: Boyer, Steven
Subject: RE: Qtree Utilization Alerts
If you're willing to share the script, we could make it available
on the NOW site. ...Tim...
-----Original Message-----
From: Steven Boyer [mailto:Steven.Boyer@GD-WTS-CENTCOM.COM]
Sent: Tuesday, June 12, 2001 9:05 PM
To: toasters(a)mathworks.com; Dale Wolf
Subject: Re: Qtree Utilization Alerts
Dale
I wrote a script, on a Unix client, that looks at each tree in the
/etc/quotas file. If the tree is within 90% of the three it then sends an
email the user who is responsible for the tree, our helpdesk, and senior
admins. The file that I email also includes the sub directories of that
tree so the user can get an idea of were he might be able to cleanup data.
My scripts run once an hour mon-fri.
---------- Original Message ----------------------------------
From: "Dale Wolf" <wolfd(a)agcs.com>
Date: Tue, 12 Jun 2001 16:29:20 -0700
>I am looking for a tool to send alerts in the form of email or NT alerts
>when a Qtree reaches some threshold or percentage (say 80%) of it's
>quota. I want to be able to extract or construct the alert only for
>certain Qtrees. Our Qtree naming standard makes it simple to identify
>an NTFS Qtree.
>
>I've thought about automatically generating the Qtree report and writing
>a tool to parse the information out of the report and generate any
>alerts needed.
>
>Any tools or suggestions are welcome.
>
>Thanks.
>
>
--
Steven N. Boyer
UNIX/NT/NetApp Support
HQUSCENTCOM
General Dynamics
--