Veritas-bu

[Veritas-bu] automated ejection of full tapes

2004-02-03 13:22:07
Subject: [Veritas-bu] automated ejection of full tapes
From: david.chapa AT adic DOT com (David Chapa)
Date: Tue, 3 Feb 2004 11:22:07 -0700
This is a multi-part message in MIME format.

------_=_NextPart_001_01C3EA82.A1A8D300
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

You can run the available_media script and do the following
=20
=20
/usr/openv/netbackup/bin/goodies/available_media | grep FULL | grep TLD
| while read id mtype rtype robnum slot rest
do
vmchange -res -m $id -mt $mtype -rt NONE -rc1 0 -rc2 0 -e -sec 1
done
=20
That will eject them to you mailcap, but if you are ejecting >10 then it
will fail at the 11th.  You'll have to build in some logic to prevent
that from happening.
David A. Chapa * Technical Advisor, Technical Marketing * ADIC *
720.249.5836 * david.chapa AT adic DOT com
Pathlight VX - Integrated Disk-to-Tape Backup - http://www.adic.com
<http://www.adic.com>=20
-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of
koconnor AT midsouth.rr DOT com
Sent: Tuesday, February 03, 2004 5:54 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] automated ejection of full tapes
=20
=20
Does anyone have a script that will take the info from, say the
bpmedialist output, create a list, and eject the FULL tapes from a TLD
library to the mail slots?  I have checked the archives and found a few
examples that were similar, but a bit more elaborate than what I need.
I think from the research=20
I have done, that you can use the vmquery command with the -ev option
for the eject?  I would appreciate any suggestions/help.  BTW, I am
running Netbackup 4.5 on Solaris 2.6 with a StorEdge L11000 that has 10
mail slots.  Drives are DLT 7000.  Thanks again.

------_=_NextPart_001_01C3EA82.A1A8D300
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:[email protected]">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"PersonName"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:553679495 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=3Dwhite lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>You can run the <span =
class=3DSpellE>available_media</span>
script and do the following<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>/<span =
class=3DSpellE>usr/openv/netbackup/bin/goodies/available_media</span>
| <span class=3DSpellE>grep</span> FULL | <span =
class=3DSpellE>grep</span> TLD |
while read id <span class=3DSpellE>mtype</span> <span =
class=3DSpellE>rtype</span> <span
class=3DSpellE>robnum</span> slot rest<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>do</span></font><=
/span><font
size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'>vmchange</span></font></span></span><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'> -<span
class=3DSpellE>res</span> -m $id -<span class=3DSpellE>mt</span> $<span
class=3DSpellE>mtype</span> -<span class=3DSpellE>rt</span> NONE -rc1 0 =
-rc2 0 &#8211;e
&#8211;sec 1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>done</span></font=
></span><font
size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>That will eject them to you <span
class=3DSpellE>mailcap</span>, but if you are ejecting &gt;10 then it =
will fail
at the 11<sup>th</sup>.<span style=3D'mso-spacerun:yes'>&nbsp; =
</span>You&#8217;ll
have to build in some logic to prevent that from =
happening.<o:p></o:p></span></font></p>

<div>

<p><b><font size=3D1 color=3Dnavy face=3D"Times New Roman"><span =
style=3D'font-size:
7.5pt;color:navy;font-weight:bold;mso-no-proof:yes'>David A. Chapa =
</span></font></b><font
size=3D1 color=3Dnavy face=3DSymbol><span =
style=3D'font-size:7.5pt;font-family:Symbol;
color:navy;mso-no-proof:yes'>&frac12;</span></font><font size=3D1 =
color=3Dnavy><span
style=3D'font-size:7.5pt;color:navy;mso-no-proof:yes'> Technical =
Advisor,
Technical Marketing </span></font><font size=3D1 color=3Dnavy =
face=3DSymbol><span
style=3D'font-size:7.5pt;font-family:Symbol;color:navy;mso-no-proof:yes'>=
&frac12;</span></font><font
size=3D1 color=3D"#999999"><span =
style=3D'font-size:7.5pt;color:#999999;mso-no-proof:
yes'> </span></font><b><font size=3D1 color=3Dred><span =
style=3D'font-size:7.5pt;
color:red;font-weight:bold;mso-no-proof:yes'>ADIC</span></font></b><font
size=3D1 color=3D"#999999"><span =
style=3D'font-size:7.5pt;color:#999999;mso-no-proof:
yes'> </span></font><font size=3D1 color=3Dnavy face=3DSymbol><span =
style=3D'font-size:
7.5pt;font-family:Symbol;color:navy;mso-no-proof:yes'>&frac12;</span></fo=
nt><font
size=3D1 color=3Dnavy><span =
style=3D'font-size:7.5pt;color:navy;mso-no-proof:yes'>
720.249.5836 </span></font><font size=3D1 color=3Dnavy =
face=3DSymbol><span
style=3D'font-size:7.5pt;font-family:Symbol;color:navy;mso-no-proof:yes'>=
&frac12;
</span></font><font size=3D1 color=3Dnavy><span =
style=3D'font-size:7.5pt;color:navy;
mso-no-proof:yes'><a =
href=3D"mailto:david.chapa AT adic DOT com">david.chapa AT adic DOT 
com</a></span></fon=
t><font
color=3Dnavy><span =
style=3D'color:navy;mso-no-proof:yes'><o:p></o:p></span></font></p>

<p><font size=3D1 color=3Dnavy face=3D"Times New Roman"><span =
style=3D'font-size:7.5pt;
color:navy;mso-no-proof:yes'>Pathlight VX - Integrated Disk-to-Tape =
Backup - </span></font><font
color=3Dnavy><span style=3D'color:navy;mso-no-proof:yes'><a
href=3D"http://www.adic.com";><font size=3D1><span =
style=3D'font-size:7.5pt'>http://www.adic.com</span></font></a></span></f=
ont><o:p></o:p></p>

</div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> =
</span></font><st1:PersonName><font
 size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>veritas-bu-admin AT mailman DOT 
en=
g.auburn.edu</span></font></st1:PersonName><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'> =
[mailto:</span></font><st1:PersonName><font
 size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>veritas-bu-admin AT mailman DOT 
en=
g.auburn.edu</span></font></st1:PersonName><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>] <b><span
style=3D'font-weight:bold'>On Behalf Of =
</span></b>koconnor AT midsouth.rr DOT com<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Tuesday, February =
03, 2004
5:54 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
</span></font><st1:PersonName><font
 size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>veritas-bu AT mailman.eng DOT 
aubu=
rn.edu</span></font></st1:PersonName><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'><br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> =
[</span></font><st1:PersonName><font
 size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>Veritas</span></font></st1:=
PersonName><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>-bu]
automated ejection of full tapes</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Does anyone have a script =
that will
take the info from, say the bpmedialist output,&nbsp;create a list, and =
eject
the FULL tapes&nbsp;from a TLD library to the mail slots?&nbsp;&nbsp;I =
have
checked the archives and found a few examples that were similar, but a =
bit more
elaborate than what I need.&nbsp; I think from the research =
</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I have done, that you can =
use the
vmquery command&nbsp;with the -ev option for the eject?&nbsp; =
I&nbsp;would
appreciate any suggestions/help.&nbsp; BTW, I am running Netbackup 4.5 =
on
Solaris 2.6 with a StorEdge L11000&nbsp;that has&nbsp;10 mail =
slots.&nbsp;
Drives are DLT 7000.&nbsp; Thanks again.</span></font><o:p></o:p></p>

</div>

</div>

</body>

</html>
=00
------_=_NextPart_001_01C3EA82.A1A8D300--

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