This is a multipart message in MIME format.
--=_alternative 004C380B85256A14_=
Content-Type: text/plain; charset="us-ascii"
The request for the <RETURN> due to the fact that the 'vmchange' command
is only designed to eject a single tape, not multiple tapes. If you want
to eject a series of tapes, you need to put the 'vmchange' command in a
loop and, yes, you'll need to hit <RETURN> for each tape unless you
automate it.
FYI: 'vmchange' returns a status of '0' (zero) if it's able to
successfully eject the tape [that is, move it to the mail slot / cartridge
access port (CAP)]. It returns non-zero otherwise. And give that this a
Media Manager command and not a NetBackup command, the return codes are
not well documented so it's somewhat hard and confusing to tell exactly
what went wrong when something does go wrong.
-- Tony Guzzi
==============================================================================
Date: Fri, 16 Mar 2001 17:01:51 -0800
From: "Jeff Kennedy" <jlkennedy AT amcc DOT com>
To: Veritas-bu List <veritas-bu AT mailman.eng.auburn DOT edu>
Subject: Re: [Veritas-bu] Ejecting several tapes at once from CLI
So I've tried the tpeject script and I like it. I have one issue
regarding it though; it asks for a <return> after each volume is
ejected. Is this required for it to work? Does it simply eject all of
the tapes whether or not I enter a carriage return?
Thanks.
~JK
Steve White wrote:
>
> This one automatically updates NetBackup because it uses "vmchange". You
> would have to update the NetBackup information using "vmupdate" if you
have
> used something like "tldtest" to eject tapes, which some folks do.
>
> Steve
>
> > -----Original Message-----
> > From: veritas-bu-admin AT Eng.Auburn DOT EDU
> > [mailto:veritas-bu-admin AT Eng.Auburn DOT EDU]On Behalf Of Jeff Kennedy
> > Sent: Tuesday, March 13, 2001 6:41 PM
> > To: Veritas-bu List
> > Subject: Re: [Veritas-bu] Ejecting several tapes at once from CLI
> >
> >
> > Does this update NetBackup as well or just move the tapes requiring a
> > media update afterwards?
> >
> > ~JK
> >
> > Steve White wrote:
> > >
> > > Here's an E-mail (with a script attached) from a previous thread on
this
> > > list about the same thing...the script should work nicely for you.
> > >
> > > Steve
--=_alternative 004C380B85256A14_=
Content-Type: text/html; charset="us-ascii"
<br><font size=2 face="sans-serif">The request for the <RETURN> due to
the fact that the 'vmchange' command is only designed to eject a single tape,
not multiple tapes. If you want to eject a series of tapes, you need to
put the 'vmchange' command in a loop and, yes, you'll need to hit
<RETURN> for each tape unless you automate it.</font>
<br>
<br><font size=2 face="sans-serif">FYI: 'vmchange' returns a status of
'0' (zero) if it's able to successfully eject the tape [that is, move it to the
mail slot / cartridge access port (CAP)]. It returns non-zero otherwise.
And give that this a Media Manager command and not a NetBackup command, the
return codes are not well documented so it's somewhat hard and confusing to
tell exactly what went wrong when something does go wrong.</font>
<br><font size=2 face="sans-serif"><br>
-- Tony Guzzi</font>
<br>
<br><font size=2 face="Courier
New">==============================================================================<br>
Date: Fri, 16 Mar 2001 17:01:51 -0800<br>
From: "Jeff Kennedy" <jlkennedy AT amcc DOT com><br>
To: Veritas-bu List <veritas-bu AT mailman.eng.auburn DOT edu><br>
Subject: Re: [Veritas-bu] Ejecting several tapes at once from CLI<br>
<br>
So I've tried the tpeject script and I like it. I have one issue<br>
regarding it though; it asks for a <return> after each volume is<br>
ejected. Is this required for it to work? Does it simply eject all
of<br>
the tapes whether or not I enter a carriage return?<br>
<br>
Thanks.<br>
<br>
~JK<br>
<br>
Steve White wrote:<br>
> <br>
> This one automatically updates NetBackup because it uses
"vmchange". You<br>
> would have to update the NetBackup information using "vmupdate"
if you have<br>
> used something like "tldtest" to eject tapes, which some folks
do.<br>
> <br>
> Steve<br>
> <br>
> > -----Original Message-----<br>
> > From: veritas-bu-admin AT Eng.Auburn DOT EDU<br>
> > [mailto:veritas-bu-admin AT Eng.Auburn DOT EDU]On Behalf Of Jeff
Kennedy<br>
> > Sent: Tuesday, March 13, 2001 6:41 PM<br>
> > To: Veritas-bu List<br>
> > Subject: Re: [Veritas-bu] Ejecting several tapes at once from CLI<br>
> ><br>
> ><br>
> > Does this update NetBackup as well or just move the tapes requiring
a<br>
> > media update afterwards?<br>
> ><br>
> > ~JK<br>
> ><br>
> > Steve White wrote:<br>
> > ><br>
> > > Here's an E-mail (with a script attached) from a previous thread
on this<br>
> > > list about the same thing...the script should work nicely for
you.<br>
> > ><br>
> > > Steve</font>
<br>
<br>
--=_alternative 004C380B85256A14_=--
|