Welcome! » Log In » Create A New Profile

script to show usage of tape drives on a media s erver

Posted by Anonymous 
script to show usage of tape drives on a media s erver
April 13, 2005 10:36AM
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 s erver
April 13, 2005 10:40AM
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.edu
[mailto]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,
script to show usage of tape drives on a media s erver
April 14, 2005 01:00AM
Maybe setup a tpclean schedule like tpclean -F Tapedrives -n hours
put a tape in the robot and self clean after 25 hours?
Most cleaning tapes only last 20 times, they should go to NONE pool -

IF a cleaning tape is used more than the expired time then only dirt will
get on the heads. Cleaning tapes run to the last block then start over
distributing all dirt from the first block. Thats why a new tape takes only
seconds to clean and eject - old tapes take 7 - 12 minutes to clean and
eject - The longer the cleaning the older the tape.

-----Original Message-----
From: Tim Berger
To: Benton, Daniel
Cc: veritas-bu < at > mailman.eng.auburn.edu
Sent: 4/13/2005 4:53 PM
Subject: Re: [Veritas-bu] script to show usage of tape drives on a media
server

Not sure if this is what you're looking for, but tpclean -L
displayscumulative mount times (in hours). Do this once a day, take
thedifference, and there you have it. If you have automatic
cleaningconfigured, note that the mount times will get reset upon
cleaning. Otherwise, use cron and schedule the cleaning "manually".
On 4/13/05, Benton, Daniel <Daniel.Benton < at > qwest.com> wrote:> > > > 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. > >
[quote][quote]Thanks, > >
[/quote][/quote]
-- -Tim
script to show usage of tape drives on a media s erver
April 14, 2005 02:49AM
FOR WINDOWS ONLY:
in the performance monitor for windows there are a couple of
things that help with tape performance issues?

-----Original Message-----
From: Eric Ljungblad
To: 'Tim Berger '; 'Benton, Daniel '
Cc: 'veritas-bu < at > mailman.eng.auburn.edu '
Sent: 4/14/2005 1:00 AM
Subject: RE: [Veritas-bu] script to show usage of tape drives on a media s
erver

Maybe setup a tpclean schedule like tpclean -F Tapedrives -n hours
put a tape in the robot and self clean after 25 hours?
Most cleaning tapes only last 20 times, they should go to NONE pool -

IF a cleaning tape is used more than the expired time then only dirt
will
get on the heads. Cleaning tapes run to the last block then start over
distributing all dirt from the first block. Thats why a new tape takes
only
seconds to clean and eject - old tapes take 7 - 12 minutes to clean and
eject - The longer the cleaning the older the tape.

-----Original Message-----
From: Tim Berger
To: Benton, Daniel
Cc: veritas-bu < at > mailman.eng.auburn.edu
Sent: 4/13/2005 4:53 PM
Subject: Re: [Veritas-bu] script to show usage of tape drives on a media
server

Not sure if this is what you're looking for, but tpclean -L
displayscumulative mount times (in hours). Do this once a day, take
thedifference, and there you have it. If you have automatic
cleaningconfigured, note that the mount times will get reset upon
cleaning. Otherwise, use cron and schedule the cleaning "manually".
On 4/13/05, Benton, Daniel <Daniel.Benton < at > qwest.com> wrote:> > > > 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. > >
[quote][quote]Thanks, > >
[/quote][/quote]
-- -Tim
script to show usage of tape drives on a media s erver
April 14, 2005 08:24AM
One thing to note is that this info, the tpclean, is per-media server. In a
SSO environment, it's not, therefore, accurate unless you go to all servers,
match an necessary index numbers, and sum the hours.

-M

-----Original Message-----
From: veritas-bu-admin < at > mailman.eng.auburn.edu
[mailto]On Behalf Of Tim Berger
Sent: Wednesday, April 13, 2005 5:54 PM
To: Benton, Daniel
Cc: veritas-bu < at > mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] script to show usage of tape drives on a media
server

Not sure if this is what you're looking for, but tpclean -L
displayscumulative mount times (in hours). Do this once a day, take
thedifference, and there you have it. If you have automatic
cleaningconfigured, note that the mount times will get reset upon cleaning.
Otherwise, use cron and schedule the cleaning "manually".
On 4/13/05, Benton, Daniel <Daniel.Benton < at > qwest.com> wrote:> > > > 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, >

-- -Tim
script to show usage of tape drives on a media s erver
April 12, 2010 10:54AM
My email is rail_1973@yahoo.ca. Thanks in advance for saving me the time!

Cheers,

carl
script to show usage of tape drives on a media s erver
August 09, 2012 09:36AM
Hi please email me the script shrivanihere@gmail.com..

Thanks inadvance
script to show usage of tape drives on a media s erver
July 02, 2015 08:18PM
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