Veritas-bu

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

2005-04-13 13:57:39
Subject: [Veritas-bu] script to show usage of tape drives on a media s erver
From: Scott.Chapman AT icbc DOT com (Chapman, Scott)
Date: Wed, 13 Apr 2005 10:57:39 -0700
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C54052.4851E630
Content-Type: text/plain

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 DOT com [mailto:Mark.Donaldson AT cexp DOT com] 
Sent: Wednesday, April 13, 2005 10:36 AM
To: Daniel.Benton AT qwest DOT com; veritas-bu AT mailman.eng.auburn DOT 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 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
To: veritas-bu AT mailman.eng.auburn DOT 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,
 


------_=_NextPart_001_01C54052.4851E630
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Veritas-bu] script to show usage of tape drives on a media =
s       erver</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I use Mark's script on my 2 busy netbackup servers =
every day and it works great!&nbsp; I have found this VERY useful in =
the last month or so as I have been reorganizing the scheduling on a =
couple master servers.&nbsp; Thanks again Mark!</FONT></P>

<P><FONT SIZE=3D2>Note:&nbsp; drive 0 is an external standalone tape =
drive that is why it reports A every 15 mins.</FONT>
</P>

<P><FONT SIZE=3D2>Here is some sample output:</FONT>
<BR><FONT SIZE=3D2>&nbsp; =
00---01---02---03---04---05---06---07---08---09---10---11---12---13---14=
---15---16---17---18---19---20---21---22---23---</FONT></P>

<P><FONT SIZE=3D2>&nbsp;0 =
|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|A=
AAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|</FONT></P>

<P><FONT SIZE=3D2>&nbsp;1 =
|--##|####|####|###-|####|##--|----|-###|#---|----|----|----|----|----|-=
---|----|----|----|-###|#--#|-#--|----|----|-##-|</FONT></P>

<P><FONT SIZE=3D2>&nbsp;2 =
|####|###-|--##|##--|----|--##|####|###-|----|----|--#-|----|----|-#--|-=
---|----|----|-###|####|####|#---|----|-###|#---|</FONT></P>

<P><FONT SIZE=3D2>&nbsp;3 =
|####|####|####|####|####|##--|----|-#--|-#--|----|----|----|----|----|#=
---|----|----|-##-|-#--|-###|####|#-##|###-|----|</FONT></P>

<P><FONT SIZE=3D2>&nbsp;4 =
|####|####|##--|#-##|####|####|####|####|####|###-|----|----|----|----|-=
---|----|----|-#-#|-###|##--|#---|----|----|--##|</FONT></P>

<P><FONT SIZE=3D2>&nbsp;5 =
|----|#---|--##|#--#|####|####|####|###-|----|----|--#-|----|----|----|-=
---|----|----|-###|-###|####|####|####|#---|-###|</FONT></P>

<P><FONT SIZE=3D2>&nbsp;6 =
|----|----|####|#---|-###|##--|----|----|----|----|----|----|----|----|-=
---|----|----|-###|####|####|####|####|----|-###|</FONT></P>

<P><FONT SIZE=3D2>&nbsp;7 =
|----|---#|####|####|####|####|####|####|####|###-|----|----|----|----|-=
---|----|----|-###|###-|--##|####|####|#---|--##|</FONT></P>

<P><FONT SIZE=3D2>&nbsp;8 =
|----|---#|####|##-#|####|##--|----|----|----|----|----|----|----|#---|-=
---|----|----|-###|##--|---#|####|###-|----|#---|</FONT></P>

<P><FONT SIZE=3D2>&nbsp;9 =
|####|####|####|####|####|##--|----|-#--|----|----|----|----|----|---#|#=
###|####|####|#--#|####|##--|----|----|####|####|</FONT></P>

<P><FONT SIZE=3D2>10 =
|----|----|#-##|##-#|----|----|----|-###|#---|----|----|----|----|----|-=
---|----|----|-###|#---|-##-|----|-###|####|#---|</FONT></P>

<P><FONT SIZE=3D2>## Drive Availability: 54.3%</FONT>
<BR><FONT SIZE=3D2>Drive&nbsp; 0 =3D&nbsp;&nbsp; 0% Drive&nbsp; 1 =
=3D&nbsp; 67% Drive&nbsp; 2 =3D&nbsp; 60% Drive&nbsp; 3 =3D&nbsp; 57% =
</FONT>
<BR><FONT SIZE=3D2>Drive&nbsp; 4 =3D&nbsp; 52% Drive&nbsp; 5 =3D&nbsp; =
55% Drive&nbsp; 6 =3D&nbsp; 66% Drive&nbsp; 7 =3D&nbsp; 46% </FONT>
<BR><FONT SIZE=3D2>Drive&nbsp; 8 =3D&nbsp; 69% Drive&nbsp; 9 =3D&nbsp; =
45% Drive 10 =3D&nbsp; 75% </FONT>
<BR><FONT SIZE=3D2>## Report Done</FONT>
</P>

<P><FONT =
SIZE=3D2>____________________________________________________________</F=
ONT>
<BR><FONT SIZE=3D2>Scott Chapman</FONT>
<BR><FONT SIZE=3D2>Insurance Corporation of British Columbia - =
Victoria</FONT>
<BR><FONT SIZE=3D2>ph: 250.414.7650&nbsp; cell: 250.213.9295</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Mark.Donaldson AT cexp DOT com [<A =
HREF=3D"mailto:Mark.Donaldson AT cexp DOT com">mailto:Mark.Donaldson AT cexp 
DOT com</=
A>] </FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, April 13, 2005 10:36 AM</FONT>
<BR><FONT SIZE=3D2>To: Daniel.Benton AT qwest DOT com; =
veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [Veritas-bu] script to show usage of =
tape drives on a media s erver</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>This is my script for this - it does graph, in =
fact.&nbsp; Just run it via cron</FONT>
<BR><FONT SIZE=3D2>every 15 min or so (mine is cron'd for =
&quot;1,16,31,46 * * * *&quot;).&nbsp; </FONT>
</P>

<P><FONT SIZE=3D2>Other than adding your email address to the =
&quot;ADDR&quot; variable at the top of</FONT>
<BR><FONT SIZE=3D2>the script, it's self configuring.&nbsp; More =
frequent runs gives better</FONT>
<BR><FONT SIZE=3D2>resolution but wider graphs (and the reverse, of =
course).&nbsp; It mails the</FONT>
<BR><FONT SIZE=3D2>graph at midnight when the collection file rolls =
over.</FONT>
</P>

<P><FONT SIZE=3D2>At the bottom, it gives percentage of availability by =
drive &amp; overall.</FONT>
</P>

<P><FONT SIZE=3D2>Note, if a job starts &amp; ends between sample =
periods, it's missed.&nbsp; The</FONT>
<BR><FONT SIZE=3D2>output is purely based on samples.&nbsp; Once day =
I'll work out a log scraper</FONT>
<BR><FONT SIZE=3D2>that parses the bptm file but that's far away.&nbsp; =
</FONT>
</P>

<P><FONT SIZE=3D2>-M</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: veritas-bu-admin AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2>[<A =
HREF=3D"mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu">mailto:veritas-b=
u-admin AT mailman.eng.auburn DOT edu</A>]On Behalf Of Benton, Daniel</FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, April 13, 2005 9:40 AM</FONT>
<BR><FONT SIZE=3D2>To: veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2>Subject: [Veritas-bu] script to show usage of tape =
drives on a media server</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>I'm trying to find a script that will show the amount =
of time each tape</FONT>
<BR><FONT SIZE=3D2>drive on a media server is used during the =
day.</FONT>
<BR><FONT SIZE=3D2>I don't need any graphic - just the tape drive name =
and the amount of time</FONT>
<BR><FONT SIZE=3D2>in use.</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>Thanks,</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C54052.4851E630--

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