Veritas-bu

[Veritas-bu] script to show usage of tape drives on a media s erver

2005-04-13 13:40:04
Subject: [Veritas-bu] script to show usage of tape drives on a media s erver
From: Mark.Donaldson AT cexp DOT com (Mark.Donaldson AT cexp DOT com)
Date: Wed, 13 Apr 2005 11:40:04 -0600
Here's a vertical snippage of the first 12 hours of the report...

  00---01---02---03---04---05---06---07---08---09---10---11---12
 0 |####|####|####|####|####|####|####|####|####|####|####|####|
 1 |##-#|#---|----|--##|####|####|####|####|####|####|###-|----|
 2 |####|####|####|####|####|####|#-##|####|--##|#-##|##-#|----|
 3 |####|####|####|####|####|####|####|####|####|####|####|####|
 4 |---#|#---|-###|----|-#--|----|----|----|----|----|----|----|
 5 |####|####|##--|-###|####|####|####|####|####|####|###-|----|
 6 |####|####|####|####|####|####|####|####|####|####|#-#-|---#|
 7 |####|####|####|####|-###|##-#|-###|#-##|##-#|####|##--|#---|
 8 |-###|####|####|##-#|##--|-#--|----|----|----|-###|----|----|
 9 |--##|----|----|----|----|-#--|----|----|----|----|----|----|
10 |####|####|####|####|####|####|####|####|####|####|####|####|
11 |#-##|####|####|####|####|####|####|#-##|####|###-|###-|---#|
12 |####|####|####|####|####|####|####|####|####|#---|##--|----|
13 |----|####|####|##--|##--|##-#|-##-|----|----|----|----|----|
14 |----|----|--##|####|-##-|----|----|----|----|----|---#|####|
15 |##--|----|----|--##|####|####|####|####|####|####|####|####|
16 |----|----|----|----|####|####|####|####|##--|----|#---|----|
17 |####|####|####|####|####|####|####|####|####|####|####|####|
18 |---#|----|----|---#|-###|----|----|----|----|----|----|----|
19 |DDDD|DDDD|DDDD|DDDD|DDDD|DDDD|DDDD|DDDD|DDDD|DDDD|DDDD|DDDD|
20 |----|----|----|----|----|----|----|----|----|----|----|----|
21 |----|----|----|----|----|----|----|----|----|----|----|----|

## Drive Availability: 44.7%
Drive  0 =   0% Drive  1 =  45% Drive  2 =  36% Drive  3 =   0%
Drive  4 =  82% Drive  5 =  47% Drive  6 =  31% Drive  7 =  31%
Drive  8 =  68% Drive  9 =  86% Drive 10 =   8% Drive 11 =  35%
Drive 12 =  41% Drive 13 =  62% Drive 14 =  43% Drive 15 =  17%
Drive 16 =  60% Drive 17 =   0% Drive 18 =  83% Drive 19 =   0%
Drive 20 = 100% Drive 21 = 100%
## Report Done

-----Original Message-----
From: Donaldson, Mark - Broomfield, CO 

This is my script for this - it does graph, in fact.  Just run it via cron
every 15 min or so (mine is cron'd for "1,16,31,46 * * * *").  

Other than adding your email address to the "ADDR" variable at the top of
the script, it's self configuring.  More frequent runs gives better
resolution but wider graphs (and the reverse, of course).  It mails the
graph at midnight when the collection file rolls over.

At the bottom, it gives percentage of availability by drive & overall.

Note, if a job starts & ends between sample periods, it's missed.  The
output is purely based on samples.  Once day I'll work out a log scraper
that parses the bptm file but that's far away.  

-M

-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of Benton, 
Daniel
Sent: Wednesday, April 13, 2005 9:40 AM


I'm trying to find a script that will show the amount of time each tape
drive on a media server is used during the day.
I don't need any graphic - just the tape drive name and the amount of time
in use.
 
Thanks,
 

<Prev in Thread] Current Thread [Next in Thread>