Networker

Re: [Networker] Finding a tape

2006-08-02 12:26:25
Subject: Re: [Networker] Finding a tape
From: Itzik Meirson <imeirson AT BEZEQINT DOT NET>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 2 Aug 2006 19:15:37 +0300
Usually the group name is in the first line of the savegroup completion
data. If you already get the group name from there, you can get the group
start time from the second line.
Then you can use: mminfo -avs ServerName -q "group=GroupName" -t "StartTime"
-r volume
Itzik

-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] 
On
Behalf Of Krishnan, Ramamurthy
Sent: Wednesday, August 02, 2006 18:52 PM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
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

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

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