Veritas-bu

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

2003-11-18 11:07:02
Subject: [Veritas-bu] vmchange multi-eject - how to script
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Tue, 18 Nov 2003 09:07:02 -0700
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3ADEE.0111EEC0
Content-Type: text/plain;
        charset="iso-8859-1"

You have to fudge it a bit with an undocumented option.  You can then eject
tapes one at a time, unattended, and loop to do more than one.
 
        vmchange -rn <robnum> -res -m <tapenum> -mt <tapetype> -e -sec 1
 
I would also suggest following up with...
 
        vmchange -new_v <NewVolGrp> -m <tapenum>

HTH - Mark

-----Original Message-----
From: Paul Porcelli [mailto:Paul.Porcelli AT aggreko DOT biz]
Sent: Tuesday, November 18, 2003 5:52 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] vmchange multi-eject - how to script


Hi there,
I'd like to run a script via a cron job to eject some tapes from our
StorageTek L180.
 

The idea of the script is that an operator will be emailed/paged  that the
overnight 
backups are ready to be removed from the CAP.
 
The vmchange command to eject the tapes is:
vmchange -res -multi_eject -w -verbose -rn 0 -rt tld -rh gla1bs01 -ml $MLIST
 
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 !!!
 
Is there another way to automate this ?
 
Many thanks.
==
Paul Porcelli


 

Visit us at www.aggreko.com <http://www.aggreko.com> 

                

  _____  

         
Confidentiality Notice:  This communication and any accompanying attachments
contain confidential information intended for a specific individual and
purpose.  This communication is private and protected by law.  If you are
not the intended recipient, you are hereby respectfully notified that any
disclosures, copying, forwarding or distribution, or the taking of any
action based on the contents of this communication is strictly prohibited.

        

  _____  





------_=_NextPart_001_01C3ADEE.0111EEC0
Content-Type: text/html;
        charset="iso-8859-1"

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


<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=098140316-18112003><FONT face=Arial color=#0000ff size=2>You 
have to fudge it a bit with an undocumented option.&nbsp; You can then eject 
tapes one at a time, unattended, and loop to do more than 
one.</FONT></SPAN></DIV>
<DIV><SPAN class=098140316-18112003></SPAN><SPAN class=098140316-18112003><FONT 
face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=098140316-18112003><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vmchange -rn &lt;robnum&gt; 
-res -m&nbsp;&lt;tapenum&gt; -mt&nbsp;&lt;tapetype&gt; -e -sec 
1</FONT></SPAN></DIV>
<DIV><SPAN class=098140316-18112003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=098140316-18112003><FONT face=Arial color=#0000ff size=2>I 
would also suggest following up with...</FONT></SPAN></DIV>
<DIV><SPAN class=098140316-18112003><FONT face=Arial color=#0000ff 
size=2>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vmchange 
-new_v&nbsp;&lt;NewVolGrp&gt; -m &lt;tapenum&gt;<BR></DIV></FONT></SPAN>
<DIV><SPAN class=098140316-18112003><FONT face=Arial color=#0000ff size=2>HTH - 
Mark</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Paul Porcelli 
  [mailto:Paul.Porcelli AT aggreko DOT biz]<BR><B>Sent:</B> Tuesday, November 
18, 2003 
  5:52 AM<BR><B>To:</B> veritas-bu AT mailman.eng.auburn DOT 
edu<BR><B>Subject:</B> 
  [Veritas-bu] vmchange multi-eject - how to script<BR><BR></FONT></DIV>
  <DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>Hi there,</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>I'd like to run a script via a cron job to eject 
some 
  tapes from our</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>StorageTek L180.</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003></SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>The idea of the script is that an operator will be 
  emailed/paged &nbsp;that the&nbsp;overnight </SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>backups are ready to be removed from the 
  CAP.</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2><SPAN 
  class=015522416-13112003><SPAN 
  
class=765334612-18112003></SPAN></SPAN></FONT>&nbsp;</DIV></SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>The vmchange command to eject the tapes 
  is:</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>vmchange -res -multi_eject -w -verbose -rn 0 -rt tld 
  -rh gla1bs01 -ml $MLIST</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003></SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>This command asks you to empty the CAP and then 
press 
  return to continue.</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>Not sure how I can handle this in a 
  script.</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>If I pass a return as input to the command then the 
  tapes will be loaded back</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>into the L180 !!!</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003></SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>Is there&nbsp;another way to automate this 
  ?</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003></SPAN></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=015522416-13112003><SPAN 
  class=765334612-18112003>Many thanks.</SPAN></SPAN></FONT></DIV>
  <DIV><FONT face=Arial><FONT 
  size=2><STRONG>==</STRONG></FONT></FONT></DIV></DIV>
  <DIV>
  <DIV><STRONG><FONT face=Arial size=2>Paul Porcelli</FONT></STRONG></DIV>
  <DIV>
  <DIV>
  <DIV><FONT face=Arial size=2><STRONG></STRONG></FONT></DIV></DIV></DIV></DIV>
  <P>&nbsp;</P>
  <TABLE id=AutoNumber1 style="BORDER-COLLAPSE: collapse" borderColor=#111111 
  height=1 cellSpacing=1 width=765 border=0>
    <TBODY>
    <TR>
      <TD width=586 colSpan=2 height=18><FONT face=Arial size=2><B>Visit us at 
        <A 
      href="http://www.aggreko.com";>www.aggreko.com</A></B></FONT><BR><BR></TD>
      <TD width=27 height=18></TD></TR>
    <TR>
      <TD width=740 colSpan=3 height=16>
        <HR>
      </TD></TR>
    <TR>
      <TD width=14 height=44>&nbsp;</TD>
      <TD width=699 height=44><FONT face=Arial size=2>
        <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">Confidentiality 
        Notice:&nbsp; This communication and any accompanying attachments 
        contain confidential information intended for a specific individual and 
        purpose.&nbsp; This communication is private and protected by 
law.&nbsp; 
        If you are not the intended recipient, you are hereby respectfully 
        notified that any disclosures, copying, forwarding or distribution, or 
        the taking of any action based on the contents of this communication is 
        strictly prohibited.</FONT></P></TD>
      <TD width=27 height=44>&nbsp;</TD></TR>
    <TR>
      <TD width=740 colSpan=3 height=22>
        <HR>
      </TD></TR></TBODY></TABLE>
  <P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> 
</P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C3ADEE.0111EEC0--

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