Re: [Networker] Finding a tape
2006-08-02 12:01:59
You can add the -t option like
mminfo -av -q "group=$grpName" -r "volume" -t "24 hours ago"
to filter the list of tapes written when it ran last. You can also get
the start time and end time within the savegroup completion output
itself. You have to grep for "Start Time" and "End Time" within the
$repFile
HTH
Rgds, Ram.
-----Original Message-----
From: Krishnan, Ramamurthy
Sent: 02 August 2006 16:52
To: 'Legato NetWorker discussion'; 'Brett Monroe'
Subject: RE: [Networker] Finding a tape
Within the script:
****** BEGIN SCRIPT PART ****************************** # Capture output
of savegrp completion cat > $repFile
# Get group name from the captured output # Note that this may have to
be changed if # NetWorker's output format changes on version # upgrades
grpName=`cat $repFile | grep -i savegroup | cut -d" " -f4`
tapeList=`mminfo -av -q "group=$grpName" -r "volume"`
### Continue with whatever you want to do with tapeList
***** END SCRIPT PART *******************************
If you run two groups that send data to the same pool, then you may not
get the "exclusivity" though the output will be correct
HTH
Rgds, Ram.
-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU]
On Behalf Of Brett Monroe
Sent: 02 August 2006 16:34
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] Finding a tape
Thanks for all the quick replies but I don't think I was being clear (in
fact I know I wasn't).
I have a script that is fired off by a savegroup compleation
notification and within it, I would like to deturmine the volumes used
by said savegroup (and only said savegroup).
Thanks again.
--Brett
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 wit 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
This email has been sent from KPMG LLP, a UK limited liability partnership, or
from one of the companies within its control (which include KPMG Audit Plc ,
KPMG United Kingdom Plc and KPMG UK Limited). The information in this email is
confidential and may be legally privileged. It is intended solely for the
addressee. Access to this email by anyone else is unauthorised. If you are
not the intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful. When addressed to our clients any opinions or advice contained in
this email are subject to the terms and conditions expressed in the governing
KPMG client engagement letter.
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
wit 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
|
|
|