Welcome! » Log In » Create A New Profile

script to show usage of tape drives on a media server

Posted by Anonymous 
script to show usage of tape drives on a media server
April 13, 2005 10:57AM
I use Mark's script on my 2 busy netbackup servers every day and it works
great! I have found this VERY useful in the last month or so as I have been
reorganizing the scheduling on a couple master servers. Thanks again Mark!

Note: drive 0 is an external standalone tape drive that is why it reports A
every 15 mins.

Here is some sample output:

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

## Drive Availability: 54.3%
Drive 0 = 0% Drive 1 = 67% Drive 2 = 60% Drive 3 = 57%
Drive 4 = 52% Drive 5 = 55% Drive 6 = 66% Drive 7 = 46%
Drive 8 = 69% Drive 9 = 45% Drive 10 = 75%
## Report Done

Scott Chapman
Insurance Corporation of British Columbia - Victoria
ph: 250.414.7650 cell: 250.213.9295

-----Original Message-----
From: Mark.Donaldson < at > cexp.com [mailto]
Sent: Wednesday, April 13, 2005 10:36 AM
To: Daniel.Benton < at > qwest.com; veritas-bu < at > mailman.eng.auburn.edu
Subject: RE: [Veritas-bu] script to show usage of tape drives on a media s
erver

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.edu
[mailto]On Behalf Of Benton, Daniel
Sent: Wednesday, April 13, 2005 9:40 AM
To: veritas-bu < at > mailman.eng.auburn.edu
Subject: [Veritas-bu] script to show usage of tape drives on a media server

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,
script to show usage of tape drives on a media server
April 13, 2005 10:35PM
--bajzpZikUji1w+G9
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Chapman, Scott <Scott.Chapman < at > icbc.com> [2005-04-13 10]:
[quote]I use Mark's script on my 2 busy netbackup servers every day and it works
great! I have found this VERY useful in the last month or so as I have b=
[/quote]een
[quote]reorganizing the scheduling on a couple master servers. Thanks again Mar=
[/quote]k!

I guess I could plug Aptare at this point. They have a great graphing of
tape drive utilization that shows not only drive usage, but the Max and
averge as well. They also have individual drive throughput stats.

It's also very easy to go back and look at historical information.=20

--=20
David Rock
david < at > graniteweb.com

--bajzpZikUji1w+G9
script to show usage of tape drives on a media server
April 14, 2005 04:45AM
On Thu, Apr 14, 2005 at 12:35:38AM -0500, David Rock wrote:
[quote]* Chapman, Scott <Scott.Chapman < at > icbc.com> [2005-04-13 10]:
[quote]I use Mark's script on my 2 busy netbackup servers every day and it works
great! I have found this VERY useful in the last month or so as I have been
reorganizing the scheduling on a couple master servers. Thanks again Mark!
[/quote]
I guess I could plug Aptare at this point. They have a great graphing of
tape drive utilization that shows not only drive usage, but the Max and
averge as well. They also have individual drive throughput stats.

It's also very easy to go back and look at historical information.
[/quote]
I was going to put in my regular plug for StorageConsole too but the
original request was for text only with no graphs. The information is
certainly in StorageConsole's database, but it's non-trivial to write
the sql to get it back out (of course, Aptare is pretty good with
helping its users write custom sql statements like this).

--
Ed Wilts, Mounds View, MN, USA
mailto:ewilts < at > ewilts.org
script to show usage of tape drives on a media server
July 02, 2015 08:25PM
Hi my email is ifanartha@gmail.com
Can you please share the script?
Thanks in advance
Sorry, only registered users may post in this forum.

Click here to login