Veritas-bu

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

2008-02-06 14:01:04
Subject: Re: [Veritas-bu] plot drive usage/availability against time?
From: <Mark.Donaldson AT cexp DOT com>
To: <bobbyrjw AT comcast DOT net>, <veritas-bu AT mailman.eng.auburn DOT edu>
Date: Wed, 6 Feb 2008 11:39:19 -0700
Huh - you're right. I wrote this utility on NB v4 and it was broken when 
vmoprcmd became a piece of crap in v5.  They fixed it in v6.0 and v6.5, its 
seems.  

As written, it's not seeing the activity from another media server. The 
"vmoprcmd -xd ds" that's built into this script only displays activity by the 
local media server.

Does somebody have a 5.0 output they can mail me?  Try "vmprcmd -d ad" and 
maybe that'll be useful.  Also output from "vmoprcmd -d ds" might be helpful.  
Maybe I can write a fix for v5.

I'll put out a new version for the fixed "vmoprcmd" output in v6 and republish 
to the list.

-M

-----Original Message-----
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu 
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Bobby 
Williams
Sent: Saturday, February 02, 2008 5:33 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] plot drive usage/availability against time?

Here is the post for the script.

I did it at 5 minute intervals to justify more drives.

I copied the report into Excel.

I am attaching a sample report that shows the activity.  This is not the one
that I used justify more drives.  

The vertical bars are the hours.

Something that bit me on this script.  It is only looking for activity on a
drive.  It does not distinguish who owns the drive.  SSO drives show up in
the report and it does not signify that the drive is in use by another media
server.

The media server that I used this report on had no shared drives. 




Bobby Williams
2205 Peterson Drive
Chattanooga, Tennessee  37421
423-296-8200

-----Original Message-----
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of
Mark.Donaldson AT cexp DOT com
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] plot drive usage/availability against time?

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