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

2008-02-07 Thread A Darren Dunham
On Thu, Feb 07, 2008 at 01:17:36PM -0700, [EMAIL PROTECTED] wrote:
> Yeah, that's the holy grail - no sampling error, if a drive is active between 
> polls, my method misses it.
> 
> The parsting task was just so huge I haven't tackled that, though... 

Hmm..  I don't use bperror much.  I don't see individual drive
load/unloads in the output.  How do you get the information out of
bperror?

-- 
Darren Dunham   [EMAIL PROTECTED]
Senior Technical Consultant TAOShttp://www.taos.com/
Got some Dr Pepper?   San Francisco, CA bay area
 < This line left intentionally blank to confuse you. >
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2008-02-07 Thread Mark.Donaldson
Yeah, that's the holy grail - no sampling error, if a drive is active between 
polls, my method misses it.

The parsting task was just so huge I haven't tackled that, though... 

-Original Message-
From: Peter Marelas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 06, 2008 3:16 PM
To: Donaldson, Mark - Broomfield, CO; [EMAIL PROTECTED]; 
veritas-bu@mailman.eng.auburn.edu
Subject: RE: Re: [Veritas-bu] plot drive usage/availability against time?

Parse bperror output

Sent by GoodLink (www.good.com)


 -Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:   Wednesday, February 06, 2008 01:47 PM US Mountain Standard Time
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; veritas-bu@mailman.eng.auburn.edu
Subject:    Re: [Veritas-bu] plot drive usage/availability against time?

If I can clarify.  

I could use the output from a v5 media server with SSO drives.  I'm looking for 
a single command that shows the usage by all media servers, not just the local 
one.

Otherwise, I'm building a loop to walk "vmoprcmd -h " across all media 
servers.

-M 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2008 11:39 AM
To: [EMAIL PROTECTED]; veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] plot drive usage/availability against time?

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bobby Williams
Sent: Saturday, February 02, 2008 5:33 AM
To: veritas-bu@mailman.eng.auburn.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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu@mailman.eng.auburn.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 = 

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

2008-02-06 Thread Peter Marelas
Parse bperror output

Sent by GoodLink (www.good.com)


 -Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:   Wednesday, February 06, 2008 01:47 PM US Mountain Standard Time
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; veritas-bu@mailman.eng.auburn.edu
Subject:Re: [Veritas-bu] plot drive usage/availability against time?

If I can clarify.  

I could use the output from a v5 media server with SSO drives.  I'm looking for 
a single command that shows the usage by all media servers, not just the local 
one.

Otherwise, I'm building a loop to walk "vmoprcmd -h " across all media 
servers.

-M 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2008 11:39 AM
To: [EMAIL PROTECTED]; veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] plot drive usage/availability against time?

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bobby Williams
Sent: Saturday, February 02, 2008 5:33 AM
To: veritas-bu@mailman.eng.auburn.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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu@mailman.eng.auburn.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

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

2008-02-06 Thread Mark.Donaldson
If I can clarify.  

I could use the output from a v5 media server with SSO drives.  I'm looking for 
a single command that shows the usage by all media servers, not just the local 
one.

Otherwise, I'm building a loop to walk "vmoprcmd -h " across all media 
servers.

-M 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2008 11:39 AM
To: [EMAIL PROTECTED]; veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] plot drive usage/availability against time?

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bobby Williams
Sent: Saturday, February 02, 2008 5:33 AM
To: veritas-bu@mailman.eng.auburn.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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu@mailman.eng.auburn.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


_

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

2008-02-06 Thread Mark.Donaldson
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bobby Williams
Sent: Saturday, February 02, 2008 5:33 AM
To: veritas-bu@mailman.eng.auburn.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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu@mailman.eng.auburn.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@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2008-02-04 Thread Jared . Seaton
http://mailman.eng.auburn.edu/pipermail/veritas-bu/2007-November/045714.html

At the bottom of the page is the URL for the script.

Or here:

http://mailman.eng.auburn.edu/pipermail/veritas-bu/attachments/20071114/89c37598/drive_graph.txt









"mark_au" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
02/03/2008 11:43 PM
Please respond to
VERITAS-BU@mailman.eng.auburn.edu


To
VERITAS-BU@mailman.eng.auburn.edu
cc

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







Very handy looking script.. but i cant see any links /attachments to it 
etc...
any idea how i can grab a copy at all please ???


cheers

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--


___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu



==
CONFIDENTIALITY NOTICE:  This e-mail message and all attachments transmitted 
with it may contain legally privileged, proprietary and/or confidential 
information intended solely for the use of the addressee.  If you are not the 
intended recipient, you are hereby notified that any review, dissemination, 
distribution, duplication or other use of this message and/or its attachments 
is strictly prohibited.  If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message and 
its attachments.  Thank you.
==
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2008-02-03 Thread mark_au

Very handy looking script.. but i cant see any links /attachments to it etc...
any idea how i can grab a copy at all please ???


cheers

+--
|This was sent by [EMAIL PROTECTED] via Backup Central.
|Forward SPAM to [EMAIL PROTECTED]
+--


___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2008-02-02 Thread Bobby Williams
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu@mailman.eng.auburn.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



cpl-media4 drive avail graph.xls
Description: MS-Excel spreadsheet
#!/bin/ksh

# By: Mark Donaldson - Corporate Express. 
# Updated: Nov 2007

# Run via cron on a server that can see all drives. Rec'd every 15 min.

PATH=$PATH:/usr/openv/volmgr/bin
PROGNAME=`basename $0`
ADDR="[EMAIL PROTECTED]"

DDIR=/var/tmp
DBASE=${PROGNAME}_datafile
DFILE=$DDIR/$DBASE.`date +%m_%d_%Y`
OUTF=$DDIR/$PROGNAME.out

if [ ! -f $DFILE -o -n "$1" ]
then
  # New data collection file. Process previous datafile first
  if [ -n "$1" ]
  then
lastfile=$1
  else
lastfile=`ls -tr $DDIR/$DBASE* 2>/dev/null | tail -1`
  fi
  if [ -n "$lastfile" ]
  then
[ -f $OUTF ] && rm $OUTF
exec >$OUTF 2>&1
#Header
awk 'BEGIN{HR=-1;MN=0;printf("  ")} {if ($2==0) {if ($1!=HR) {HR=$1
   if (HR<10) {printf("0%1d",HR)} 
 else {printf("%2d",HR)}
} else {printf("-")} 
   }} END {printf("\n")}' $lastfile 
 
#Create Graph
for drive in `awk '{print $2}' $lastfile| sort -nu`
do
  awk 'BEGIN {HR=0;printf("%2s |",'$drive')} 
   {if ($2=='$drive') {if ($1!=HR) {HR=$1;printf("|%s",$3)} 
   else {printf("%s",$3)}}}
   END {printf("|\n")}' $lastfile 
don

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

2007-11-15 Thread Pillapalem, Smitha
Ok Thanks Mark -- Makes sense now -- I will give it a try
Smitha

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 5:44 PM
To: Pillapalem, Smitha; veritas-bu@mailman.eng.auburn.edu
Subject: RE: [Veritas-bu] plot drive usage/availability against time?


Normally it runs without one, and it creates its own input file.  When the 
clock turns over, it processes that self-created input file and starts a new 
one.

It also has the ability to process a supplied input file.  I used this feature 
to concatenate several days worth of input files together and then feed this 
"mega-input file" all at once into the graphing script and produce a multi-day 
graph.  That's the code you see there.

-Original Message-
From: Pillapalem, Smitha [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 14, 2007 2:59 PM
To: Donaldson, Mark - Broomfield, CO; veritas-bu@mailman.eng.auburn.edu
Subject: RE: [Veritas-bu] plot drive usage/availability against time?

Mark,
I am just copying the first few lines below - 

# Run via cron on a server that can see all drives. Rec'd every 15 min.

PATH=$PATH:/usr/openv/volmgr/bin
PROGNAME=`basename $0`
ADDR="[EMAIL PROTECTED]"

DDIR=/var/tmp
DBASE=${PROGNAME}_datafile
DFILE=$DDIR/$DBASE.`date +%m_%d_%Y`
OUTF=$DDIR/$PROGNAME.out

if [ ! -f $DFILE -o -n "$1" ]
then


In the above "if" statement- it is looking for $1 -- ( To my understanding it 
is looking for some parameter right )

Thanks for your time
Smitha




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 4:50 PM
To: Pillapalem, Smitha; veritas-bu@mailman.eng.auburn.edu
Subject: RE: [Veritas-bu] plot drive usage/availability against time?


Nope - it should pretty much look up everything.  Just change the email 
address.  I have a modified version of this that ignores my one hcart drive and 
only reports hcart2.  My hcart drive is for legacy tape reads only and I don't 
want it throwing off the drive availability number.  I just modify the awk 
statement that is fed by "vmoprcmd -xd ds".

-M 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pillapalem, 
Smitha
Sent: Wednesday, November 14, 2007 1:54 PM
To: Donaldson, Mark - Broomfield, CO; veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] plot drive usage/availability against time?

Mark,
Do you have to send any parameters to run this scripts
Smitha

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu@mailman.eng.auburn.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:
eit

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

2007-11-14 Thread Mark.Donaldson
Normally it runs without one, and it creates its own input file.  When the 
clock turns over, it processes that self-created input file and starts a new 
one.

It also has the ability to process a supplied input file.  I used this feature 
to concatenate several days worth of input files together and then feed this 
"mega-input file" all at once into the graphing script and produce a multi-day 
graph.  That's the code you see there.

-Original Message-
From: Pillapalem, Smitha [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 14, 2007 2:59 PM
To: Donaldson, Mark - Broomfield, CO; veritas-bu@mailman.eng.auburn.edu
Subject: RE: [Veritas-bu] plot drive usage/availability against time?

Mark,
I am just copying the first few lines below - 

# Run via cron on a server that can see all drives. Rec'd every 15 min.

PATH=$PATH:/usr/openv/volmgr/bin
PROGNAME=`basename $0`
ADDR="[EMAIL PROTECTED]"

DDIR=/var/tmp
DBASE=${PROGNAME}_datafile
DFILE=$DDIR/$DBASE.`date +%m_%d_%Y`
OUTF=$DDIR/$PROGNAME.out

if [ ! -f $DFILE -o -n "$1" ]
then


In the above "if" statement- it is looking for $1 -- ( To my understanding it 
is looking for some parameter right )

Thanks for your time
Smitha




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 4:50 PM
To: Pillapalem, Smitha; veritas-bu@mailman.eng.auburn.edu
Subject: RE: [Veritas-bu] plot drive usage/availability against time?


Nope - it should pretty much look up everything.  Just change the email 
address.  I have a modified version of this that ignores my one hcart drive and 
only reports hcart2.  My hcart drive is for legacy tape reads only and I don't 
want it throwing off the drive availability number.  I just modify the awk 
statement that is fed by "vmoprcmd -xd ds".

-M 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pillapalem, 
Smitha
Sent: Wednesday, November 14, 2007 1:54 PM
To: Donaldson, Mark - Broomfield, CO; veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] plot drive usage/availability against time?

Mark,
Do you have to send any parameters to run this scripts
Smitha

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu@mailman.eng.auburn.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 t

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

2007-11-14 Thread Mark.Donaldson
Nope - it should pretty much look up everything.  Just change the email 
address.  I have a modified version of this that ignores my one hcart drive and 
only reports hcart2.  My hcart drive is for legacy tape reads only and I don't 
want it throwing off the drive availability number.  I just modify the awk 
statement that is fed by "vmoprcmd -xd ds".

-M 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pillapalem, 
Smitha
Sent: Wednesday, November 14, 2007 1:54 PM
To: Donaldson, Mark - Broomfield, CO; veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] plot drive usage/availability against time?

Mark,
Do you have to send any parameters to run this scripts
Smitha

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu@mailman.eng.auburn.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@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2007-11-14 Thread Pillapalem, Smitha
Mark,
I am just copying the first few lines below - 

# Run via cron on a server that can see all drives. Rec'd every 15 min.

PATH=$PATH:/usr/openv/volmgr/bin
PROGNAME=`basename $0`
ADDR="[EMAIL PROTECTED]"

DDIR=/var/tmp
DBASE=${PROGNAME}_datafile
DFILE=$DDIR/$DBASE.`date +%m_%d_%Y`
OUTF=$DDIR/$PROGNAME.out

if [ ! -f $DFILE -o -n "$1" ]
then


In the above "if" statement- it is looking for $1 -- ( To my understanding it 
is looking for some parameter right )

Thanks for your time
Smitha




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 4:50 PM
To: Pillapalem, Smitha; veritas-bu@mailman.eng.auburn.edu
Subject: RE: [Veritas-bu] plot drive usage/availability against time?


Nope - it should pretty much look up everything.  Just change the email 
address.  I have a modified version of this that ignores my one hcart drive and 
only reports hcart2.  My hcart drive is for legacy tape reads only and I don't 
want it throwing off the drive availability number.  I just modify the awk 
statement that is fed by "vmoprcmd -xd ds".

-M 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pillapalem, 
Smitha
Sent: Wednesday, November 14, 2007 1:54 PM
To: Donaldson, Mark - Broomfield, CO; veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] plot drive usage/availability against time?

Mark,
Do you have to send any parameters to run this scripts
Smitha

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu@mailman.eng.auburn.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@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2007-11-14 Thread Pillapalem, Smitha
Mark,
Do you have to send any parameters to run this scripts
Smitha

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 1:20 PM
To: veritas-bu@mailman.eng.auburn.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@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2007-11-14 Thread Mark.Donaldson
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

#!/bin/ksh

# By: Mark Donaldson - Corporate Express. 
# Updated: Nov 2007

# Run via cron on a server that can see all drives. Rec'd every 15 min.

PATH=$PATH:/usr/openv/volmgr/bin
PROGNAME=`basename $0`
ADDR="[EMAIL PROTECTED]"

DDIR=/var/tmp
DBASE=${PROGNAME}_datafile
DFILE=$DDIR/$DBASE.`date +%m_%d_%Y`
OUTF=$DDIR/$PROGNAME.out

if [ ! -f $DFILE -o -n "$1" ]
then
  # New data collection file. Process previous datafile first
  if [ -n "$1" ]
  then
lastfile=$1
  else
lastfile=`ls -tr $DDIR/$DBASE* 2>/dev/null | tail -1`
  fi
  if [ -n "$lastfile" ]
  then
[ -f $OUTF ] && rm $OUTF
exec >$OUTF 2>&1
#Header
awk 'BEGIN{HR=-1;MN=0;printf("  ")} {if ($2==0) {if ($1!=HR) {HR=$1
   if (HR<10) {printf("0%1d",HR)} 
 else {printf("%2d",HR)}
} else {printf("-")} 
   }} END {printf("\n")}' $lastfile 
 
#Create Graph
for drive in `awk '{print $2}' $lastfile| sort -nu`
do
  awk 'BEGIN {HR=0;printf("%2s |",'$drive')} 
   {if ($2=='$drive') {if ($1!=HR) {HR=$1;printf("|%s",$3)} 
   else {printf("%s",$3)}}}
   END {printf("|\n")}' $lastfile 
done 

#Availability Calcs
GDA=`awk 'BEGIN {sample=0;up=0}
 { sample++ ; if ($3=="-") {up++}}
 END {printf ("%3.1f",up/sample*100)}' $lastfile`

echo "\n## Drive Availability: ${GDA}%" 
for drive in `awk '{print $2}' $lastfile| sort -nu`
do
  awk 'BEGIN {sample=0;up=0}
   {if ($2=='$drive') { sample++ ; if ($3=="-") {up++}}}
   END {printf("Drive %2s = %3d%%\t",'$drive',(up/sample)*100)
if(('$drive'%4)==3) {printf("\n")}}' $lastfile 
done  

echo "\n## Report Done" 
mailx -s "NB Rpt: Drive Graph: `basename $lastfile|cut -f2 -d.`" $ADDR 
<$OUTF

if [ -z "$1" ]
then
  #keep history of input & output files
  [ -f $OUTF.2 ] && mv $OUTF.2 $OUTF.3
  [ -f $OUTF.1 ] && mv $OUTF.1 $OUTF.2
  mv $OUTF  $OUTF.1
  compress $lastfile
  [ -f $lastfile.2.Z ] && mv $lastfile.2.Z $lastfile.3.Z
  [ -f $lastfile.1.Z ] && mv $lastfile.1.Z $lastfile.2.Z
  mv $lastfile.Z   $lastfile.1.Z
fi
  fi
fi
#add to current datafile
if [ -z "$1" ]
then
  HR=`date +%H`
  vmoprcmd -xd ds | awk '$1~/^[0-9]/ {if ($4~/DOWN/) {print '$HR',$1,"D"} else {
   if ($4~/PEND/) {print '$HR',$1,"P"

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

2007-11-14 Thread Justin Piszcz

Very cool.

On Wed, 14 Nov 2007, [EMAIL PROTECTED] wrote:


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@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2007-11-09 Thread Mark.Donaldson
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-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Wilts
Sent: Thursday, November 08, 2007 9:26 PM
To: veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] plot drive usage/availability against time?

>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
--
Ed Wilts, RHCE, BCFP, BCSD
Mounds View, MN, USA
mailto:[EMAIL PROTECTED]



___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2007-11-08 Thread Ed Wilts
>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
--
Ed Wilts, RHCE, BCFP, BCSD
Mounds View, MN, USA
mailto:[EMAIL PROTECTED]



___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2007-11-08 Thread PK
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.

Does NetBackup provide such information, or has anyone written something?


Thanks,
PK
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu