Veritas-bu

[Veritas-bu] Command Line Help

2002-07-25 12:09:44
Subject: [Veritas-bu] Command Line Help
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Thu, 25 Jul 2002 10:09:44 -0600
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_01C233F5.B0947A80
Content-Type: text/plain

Tapes in the library can be gotten either querying the library directly and
parsing or by asking NB's Volume Manager.

vmquery -a -w | awk 'NR>3 && $9!="-" {print $9 "\t" $1}' | sort 

(first number is slot, second is tape num)

Note, this will report tapes in the drives, too.  If they're in the library,
whether it's in the drive or not, this will let you know.

Tapes in the drives can be gotten with "vmoprcmd -d ds"

-Mark

-----Original Message-----
From: Ram Ramachandran [mailto:ram AT techmate DOT com]
Sent: Wednesday, July 24, 2002 9:24 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Command Line Help


Hi All,

Is there a NetBackup command line command/utility in Unix that I can use to
get a list of tapes in a library and drives? This is if I don't want to use
the GUI and want to write some scripts to automate certain tasks.

Thanks for your help.

Ram

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

------_=_NextPart_001_01C233F5.B0947A80
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Veritas-bu] Command Line Help</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Tapes in the library can be gotten either querying =
the library directly and parsing or by asking NB's Volume =
Manager.</FONT>
</P>

<P><FONT SIZE=3D2>vmquery -a -w | awk 'NR&gt;3 &amp;&amp; =
$9!=3D&quot;-&quot; {print $9 &quot;\t&quot; $1}' | sort </FONT>
</P>

<P><FONT SIZE=3D2>(first number is slot, second is tape num)</FONT>
</P>

<P><FONT SIZE=3D2>Note, this will report tapes in the drives, =
too.&nbsp; If they're in the library, whether it's in the drive or not, =
this will let you know.</FONT></P>

<P><FONT SIZE=3D2>Tapes in the drives can be gotten with &quot;vmoprcmd =
-d ds&quot;</FONT>
</P>

<P><FONT SIZE=3D2>-Mark</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Ram Ramachandran [<A =
HREF=3D"mailto:ram AT techmate DOT com">mailto:ram AT techmate DOT 
com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, July 24, 2002 9:24 PM</FONT>
<BR><FONT SIZE=3D2>To: veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2>Subject: [Veritas-bu] Command Line Help</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hi All,</FONT>
</P>

<P><FONT SIZE=3D2>Is there a NetBackup command line command/utility in =
Unix that I can use to</FONT>
<BR><FONT SIZE=3D2>get a list of tapes in a library and drives? This is =
if I don't want to use</FONT>
<BR><FONT SIZE=3D2>the GUI and want to write some scripts to automate =
certain tasks.</FONT>
</P>

<P><FONT SIZE=3D2>Thanks for your help.</FONT>
</P>

<P><FONT SIZE=3D2>Ram</FONT>
</P>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Veritas-bu maillist&nbsp; -&nbsp; =
Veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu"; =
TARGET=3D"_blank">http://mailman.eng.auburn.edu/mailman/listinfo/veritas=
-bu</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C233F5.B0947A80--

<Prev in Thread] Current Thread [Next in Thread>
  • [Veritas-bu] Command Line Help, Donaldson, Mark <=