Veritas-bu

Re: [Veritas-bu] plot drive usage/availability against time?

2007-11-14 14:10:02
Subject: Re: [Veritas-bu] plot drive usage/availability against time?
From: Justin Piszcz <jpiszcz AT lucidpixels DOT com>
To: Mark.Donaldson AT cexp DOT com
Date: Wed, 14 Nov 2007 13:46:50 -0500 (EST)
Very cool.

On Wed, 14 Nov 2007, Mark.Donaldson AT cexp DOT com wrote:

Hi all,

I found my old drive utilization script and updated it.  It's been tested on 
6.0.4 and it works there.  Change the email address in it to your email 
address, add it to cron (on a maybe 15 min interval or so) on a media server 
that can see all the tape drives.  It samples every 15 minutes, and will mail a 
report new report to you at the rolling of the day.

Output looks like this (snipped from 15:00).  Ignore all the down drives, we 
were performing library maintenance:

   15--16---17---18---19---20---21---22---23---
0 ||DDD|----|--#-|-###|####|####|----|----|----|
1 ||DDD|----|-#--|###-|----|----|----|----|-###|
2 ||DDD|####|####|####|####|####|####|####|####|
3 ||DDD|####|####|####|####|####|####|####|####|
4 ||DDD|---#|####|####|####|####|##--|----|--##|
5 ||DDD|---#|####|####|####|----|####|####|####|
6 ||DDD|---#|####|####|####|####|####|####|####|
7 ||DDD|---#|####|####|####|####|####|####|####|
8 ||DDD|----|-###|####|####|####|####|####|####|
9 ||DDD|----|----|----|----|----|----|----|---#|
10 ||DDD|DDD#|####|####|####|####|####|####|####|
11 ||DDD|DDD#|####|####|###-|----|----|----|----|
12 ||DDD|DDD-|----|-###|####|####|####|####|####|
13 ||DDD|DDD-|-###|####|##--|----|----|----|----|
14 ||DDD|DDD#|----|-###|####|###-|####|####|####|
15 ||DDD|DDD-|-#--|-###|####|####|####|####|####|
16 ||DDD|DDD-|----|-###|####|####|####|####|####|
17 ||DDD|DDD-|----|-##-|----|----|----|----|--#P|
18 ||DDD|DDD-|----|-###|####|####|####|####|####|

## Drive Availability: 29.5%
Drive  0 =  57% Drive  1 =  71% Drive  2 =   0% Drive  3 =   0%
Drive  4 =  31% Drive  5 =  20% Drive  6 =   8% Drive  7 =   8%
Drive  8 =  14% Drive  9 =  88% Drive 10 =   0% Drive 11 =  48%
Drive 12 =  17% Drive 13 =  57% Drive 14 =  17% Drive 15 =  14%
Drive 16 =  17% Drive 17 =  71% Drive 18 =  17%

-----Original Message-----
Sent: Friday, November 09, 2007 10:22 AM

Yeah - that was my script but it was broken by the new spammy behavior of the 
vmoprcmd output.  I haven't updated it yet.

-----Original Message-----
Sent: Thursday, November 08, 2007 9:26 PM

I would like to be able to report on drive usage over a period of time:
either individually, or # in use. 
I am interested in identifying periods where additional backups might be
scheduled.

I think it's been a year or two but somebody did post a script to this list
to do this.  I run Aptare's StorageConsole and this is one of the canned
reports so I didn't keep the script.

        .../Ed

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu