Veritas-bu

[Veritas-bu] vmchange multi-eject - how to script

2003-11-18 07:52:01
Subject: [Veritas-bu] vmchange multi-eject - how to script
From: Paul.Porcelli AT aggreko DOT biz (Paul Porcelli)
Date: Tue, 18 Nov 2003 12:52:01 -0000
This is a multi-part message in MIME format.

------_=_NextPart_001_01C3ADD2.C2A91AD9
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi there,
I'd like to run a script via a cron job to eject some tapes from our
StorageTek L180.
=20
The idea of the script is that an operator will be emailed/paged  that =
the overnight=20
backups are ready to be removed from the CAP.
=20
The vmchange command to eject the tapes is:
vmchange -res -multi_eject -w -verbose -rn 0 -rt tld -rh gla1bs01 -ml =
$MLIST
=20
This command asks you to empty the CAP and then press return to =
continue.
Not sure how I can handle this in a script.
If I pass a return as input to the command then the tapes will be loaded =
back
into the L180 !!!
=20
Is there another way to automate this ?
=20
Many thanks.
=3D=3D
Paul Porcelli

------_=_NextPart_001_01C3ADD2.C2A91AD9
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR></HEAD>
<BODY>
<DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>Hi there,</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>I'd like to run a script via a cron job to =
eject some=20
tapes from our</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>StorageTek L180.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>The idea of the script is that an operator =
will be=20
emailed/paged &nbsp;that the&nbsp;overnight </SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>backups are ready to be removed from the=20
CAP.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003></SPAN></SPAN></FONT>&nbsp;</DIV></SPAN></SPAN=
></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>The vmchange command to eject the tapes=20
is:</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>vmchange -res -multi_eject -w -verbose -rn 0 =
-rt tld=20
-rh gla1bs01 -ml $MLIST</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>This command asks you to empty the CAP and =
then press=20
return to continue.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>Not sure how I can handle this in a=20
script.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>If I pass a return as input to the command =
then the=20
tapes will be loaded back</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>into the L180 !!!</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>Is there&nbsp;another way to automate this=20
?</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D015522416-13112003><SPAN=20
class=3D765334612-18112003>Many thanks.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial><FONT =
size=3D2><STRONG>=3D=3D</STRONG></FONT></FONT></DIV></DIV>
<DIV>
<DIV><STRONG><FONT face=3DArial size=3D2>Paul =
Porcelli</FONT></STRONG></DIV>
<DIV>
<DIV>
<DIV><FONT face=3DArial=20
size=3D2><STRONG></STRONG></FONT></DIV></DIV></DIV></DIV></BODY></HTML>
<p>&nbsp;</p>
<table border=3D"0" cellspacing=3D"1" style=3D"border-collapse: =
collapse" bordercolor=3D"#111111" width=3D"765" id=3D"AutoNumber1" =
height=3D"1">
  <tr>
    <td width=3D"586" height=3D"18" colspan=3D"2"><font face=3DArial =
size=3D2><b>Visit us at
    <A =
href=3D"http://www.aggreko.com";>www.aggreko.com</A></b></font><br><br></t=
d>
    <td width=3D"27" height=3D"18"></td>
  </tr>
  <tr>
    <td width=3D"740" height=3D"16" colspan=3D"3"><hr></td>
  </tr>
  <tr>
    <td width=3D"14" height=3D"44">&nbsp;</td>
    <td width=3D"699" height=3D"44"><font face=3DArial SIZE=3D"2">
    <p style=3D"margin-top: 0; margin-bottom: 0">Confidentiality=20
    Notice:&nbsp; This communication and any accompanying attachments=20
    contain confidential information intended for a specific individual=20
    and purpose.&nbsp; This communication is private and protected by=20
    law.&nbsp; If you are not the intended recipient, you are hereby=20
    respectfully notified that any disclosures, copying, forwarding or=20
    distribution, or the taking of any action based on the contents of=20
    this communication is strictly prohibited.</font></td>
    <td width=3D"27" height=3D"44">&nbsp;</td>
  </tr>
  <tr>
    <td width=3D"740" height=3D"22" colspan=3D"3"><hr></td>
  </tr>
</table>
<p style=3D"margin-top: 0; margin-bottom: 0">&nbsp;

------_=_NextPart_001_01C3ADD2.C2A91AD9--

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