[Veritas-bu] Using CAP/Mailslot and Netbackup 3.4
2001-02-10 00:53:03
Subject: |
[Veritas-bu] Using CAP/Mailslot and Netbackup 3.4 |
From: |
Peter L. Buschman plb AT iotk DOT com |
Date: |
Fri, 09 Feb 2001 23:53:03 -0600 |
--=====================_34493749==_
Content-Type: text/plain; charset="us-ascii"; format=flowed
For those who are interested, here is an example of ejecting a tape with
tldtest.
As noted, the media database does need to be refreshed after doing this with
the following command:
vmupdate -rn 0 -rt tld
Since my script was called as part of a loop that ejected multiple tapes,
it doesn't
contain this line, which was executed at the end of the loop.
--PLB
At 08:56 AM 2/9/2001 -0600, David A. Chapa wrote:
>Took the words right out of my mouth.
>
>There are serveral ways to skin this cat...naturally all produce the same
>result. If you play around with tldtest you soon find that you will be able
>to move your tape to you mailcap, keep track of which slots in the mail cap
>are in use, etc.
>
>Just remember if you use this method you still need to LOGICALLY remove the
>media from the database.
>
>There are a few examples through the Advanced Scripting Mail list that have
>come up this week. I'm sure one of them would fill the need (with some
>modifications perhaps).
>
>David
>
>-----Original Message-----
>From: veritas-bu-admin AT Eng.Auburn DOT EDU
>[mailto:veritas-bu-admin AT Eng.Auburn DOT EDU]On Behalf Of Peter L. Buschman
>Sent: Friday, February 09, 2001 12:23 AM
>To: Brad Fisher P70142; veritas-bu AT Eng.Auburn DOT EDU
>Subject: Re: [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4
>
>
>
>I've written scripts using 'tldtest' to eject tapes into a multi-slot cap
>before.
>It isn't that difficult, but you need to write code that identifies the
>slot positions
>of the tapes beforehand, as well as maintaining a counter as slots in the
>cap
>are filled. This was my own homegrown version of bpvault.
>
>I did this with ksh and could probably dig up the code if you're interested.
>(This was a couple years ago...)
>
>--PLB
>
>At 03:26 PM 2/8/2001 -0700, Brad Fisher P70142 wrote:
> >This is great! So what's the trick? I don't doubt you, but
> >we can't seem to be able to. Also, on page 346 of the 3.4
> >Media manager's sysadmin guide it specifically says you
> >cannot ... then there is the statement by Veritas tech support
> >today saying the same thing. I just checked the 3.2 manual ...
> >page 111 says the same thing ... only one tape at a time on an
> >eject.
> >
> >Have you written some scripts using vmchange?
> >
> >"McCormick, Diane S" wrote:
> > >
> > > both....we also can eject 24 as we have two load ports.....
> > >
> > > -----Original Message-----
> > > From: Brad Fisher P70142 [mailto:p70142 AT email.mot DOT com]
> > > Sent: Thursday, February 08, 2001 4:16 PM
> > > To: McCormick, Diane S
> > > Subject: Re: [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4
> > >
> > > One at a time or twelve at a time?
> >
> >
> >--
> >Bradley W. Fisher
> >Motorola IISG/Desktop Solutions UNIX systems consultant
> >desk: 480.441.5786
> > fax: 480.441.2363
> >_______________________________________________
> >Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> >http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>_______________________________________________
>Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>_______________________________________________
>Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
--=====================_34493749==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="eject_tape"
#!/bin/ksh
##
## Eject a tape from the library by media id.
##
## --PLB 11/29/1999
##
set -a
PATH=/usr/bin:/usr/sbin:\
/opt/openv/netbackup/bin:\
/opt/openv/netbackup/bin/goodies:\
/opt/openv/netbackup/bin/admincmd:\
/opt/openv/volmgr/bin:\
/opt/openv/volmgr/bin/goodies
LIBRARY="StorageTek 9714"
MEDIA_ID=$1
if [ -z "$MEDIA_ID" ]
then
print "Usage: eject_tape <media id>"
exit
fi
vmquery -m $MEDIA_ID >/dev/null 2>&1
if [ $? -ne 0 ]
then
print "Media ID $MEDIA_ID is NOT in the $LIBRARY."
exit
fi
ROBOT_SLOT=$(vmquery -m $MEDIA_ID | grep 'robot slot' | awk '{print $3}')
print "Media ID $MEDIA_ID is in slot $ROBOT_SLOT of the $LIBRARY."
print "$MEDIA_ID eject in progress..."
(
print m s${ROBOT_SLOT} i
print q
) | tldtest -r /dev/sg/c3t2l0 -d1 /dev/rmt/0 -d2 /dev/rmt/1 \
-d3 /dev/rmt/2 -d4 /dev/rmt/3
# -d3 /dev/rmt/2 -d4 /dev/rmt/3 >/dev/null 2>&1
print "$MEDIA_ID ejected."
--=====================_34493749==_--
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, (continued)
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Speier , Guy J - CNF Speier . Guy
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Eric Punsalan epunsala
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Eric Punsalan epunsala
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Peter L . Buschman plb
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Dennis Dwyer dfdwyer
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, David A . Chapa david
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Raymond Jackson Jacksonr
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Dennis Dwyer dfdwyer
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Eric Punsalan epunsala
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Stephen Dvorak sdvorak
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4,
Peter L . Buschman plb <=
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Bob Bakh bbakh
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, W . Curtis Preston curtis
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, Dufresne , Chuck chuck . dufresne
- [Veritas-bu] Using CAP/Mailslot and Netbackup 3.4, fx [François-Xavier Peretmere] fx
|
|
|