Networker

Re: [Networker] need help with reporting

2009-05-27 05:43:13
Subject: Re: [Networker] need help with reporting
From: "Macina, Conrad" <Conrad.Macina AT PFIZER DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 27 May 2009 05:37:08 -0400
What constitutes a tape being used? Any tape that has been written to or
only full tapes?

The easiest way to list the full tapes in the library (in all libraries
if you have more than one) is:

mminfo -r volume -q full,near

If you're running on Unix you can count very easily with:

mminfo -r volume -q full,near | wc -l

If you want all tapes that have been written whether they're full or
not, it becomes just a bit more complicated:

mminfo -r volume,%used -q near | grep -v " 0%" | wc -l

If you want just the volumes that have been written since yesterday, you
can add "-t yesterday" to the mminfo call:

mminfo -r volume -q full,near -t yesterday | wc -l
or
mminfo -r volume,%used -q near -t yesterday | grep -v " 0%" | wc -l

In my experience, mminfo is usually reliable, but it does sometimes get
out of synch with what's physically in the jukebox. This is particularly
true if you open the jukebox to insert and remove tapes rather than
depositing and withdrawing tapes through the CAP/IEP/mailslot using
NetWorker commands. To get mminfo (and the rest of NetWorker) back in
synch with reality, run an inventory:

nsrjb -I

This will be quick as long as NetWorker knows all the tapes in the
library. If there are new tapes that have never been labeled or tapes
from another server, NetWorker will load each one and try to read its
label. In that case, you may want to label the tapes before running the
inventory.

HTH,

Conrad Macina
Pfizer, Inc.





-----Original Message-----
From: Gold, Evan [mailto:egold AT FSA DOT COM] 
Sent: Tuesday, May 26, 2009 4:32 PM
Subject: need help with reporting

Hello Gurus,
I am trying to write a little script to report some stats on my legato
backups every day.
I run incremental backups sun-fri , and fulls on Saturday.

I want to run the script weekdays at 2pm to get the info for the past 24
hours.
I am stumped on how to get this accurate for my weekend backups since
some of them run more than 24 hours.

Here is the info I need:


-          GB backed up each day.

-          Number of tapes I used each day.

The number of tapes is where I am stuck. I was using mminfo but It seems
to give incorrect results for the weekend fulls.

Also I eject the tapes to go offsite daily at 3pm, so I wanted to make
sure the number of tapes that were sent offsite matched what was used by
legato.

I do not clone, instead I send all tapes offsite mon-Friday at 3pm.

Thank you.
Evan

___________________________________________________________
This e-mail message is for the sole use of the intended recipient(s) and

may contain proprietary, confidential and/or privileged information. Any

unauthorized review, use, disclosure or distribution is prohibited. If
you 
are not the intended recipient (or an employee or agent responsible to 
deliver it to the intended recipient), you may not copy or deliver this
message to anyone. In such case, you should destroy this message and
kindly notify the sender by reply e-mail. FSA 


To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the body of the email. Please write to
networker-request AT listserv.temple DOT edu if you have any problems with this
list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

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