Veritas-bu

[Veritas-bu] RE: Command Line Help : follow up ?

2002-07-25 17:53:52
Subject: [Veritas-bu] RE: Command Line Help : follow up ?
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Thu, 25 Jul 2002 15:53:52 -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_01C23425.C4297200
Content-Type: text/plain;
        charset="iso-8859-1"

The vmquery status is only three values: 0=NB regular backups;1=NB Database
(Catalog) backups, & 3=Storage Migrator.

The bpmedialist values are more complex and are documented on page 493 of
the SAG.

-M

-----Original Message-----
From: Letnes, David G. [mailto:david.letnes AT unisys DOT com]
Sent: Thursday, July 25, 2002 3:18 PM
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: [Veritas-bu] RE: Command Line Help : follow up ?


A follow up to the question posed below is when you do the vmquery -a -w,
what does each column mean, does someone have a breakdown of each column?
Can you tell which tapes are available to be used and which ones are full by
running either the vmquery -a -w or by running bpmedialist -L/-l -mlist?  I
think the status field has something to do with it but I don't know what
these mean:
status = 0x0
status = 0x1
status = 0x11
status = 0x200
status = 0x8
status = 0x28
status = 0x108
status = 0x128
status = 0x208
status = 0x228

Thank You
David




From: "Donaldson, Mark" <Mark.Donaldson AT experianems DOT com>
To: "'Ram Ramachandran'" <ram AT techmate DOT com>,
veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Command Line Help
Date: Thu, 25 Jul 2002 10:09:44 -0600

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_01C23425.C4297200
Content-Type: text/html;
        charset="iso-8859-1"
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=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Veritas-bu] RE: Command Line Help : follow up ?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>The vmquery status is only three values: 0=3DNB =
regular backups;1=3DNB Database (Catalog) backups, &amp; 3=3DStorage =
Migrator.</FONT>
</P>

<P><FONT SIZE=3D2>The bpmedialist values are more complex and are =
documented on page 493 of the SAG.</FONT>
</P>

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

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Letnes, David G. [<A =
HREF=3D"mailto:david.letnes AT unisys DOT com">mailto:david.letnes AT unisys 
DOT com</=
A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Thursday, July 25, 2002 3:18 PM</FONT>
<BR><FONT SIZE=3D2>To: 'veritas-bu AT mailman.eng.auburn DOT edu'</FONT>
<BR><FONT SIZE=3D2>Subject: [Veritas-bu] RE: Command Line Help : follow =
up ?</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>A follow up to the question posed below is when you =
do the vmquery -a -w,</FONT>
<BR><FONT SIZE=3D2>what does each column mean, does someone have a =
breakdown of each column?</FONT>
<BR><FONT SIZE=3D2>Can you tell which tapes are available to be used =
and which ones are full by</FONT>
<BR><FONT SIZE=3D2>running either the vmquery -a -w or by running =
bpmedialist -L/-l -mlist?&nbsp; I</FONT>
<BR><FONT SIZE=3D2>think the status field has something to do with it =
but I don't know what</FONT>
<BR><FONT SIZE=3D2>these mean:</FONT>
<BR><FONT SIZE=3D2>status =3D 0x0</FONT>
<BR><FONT SIZE=3D2>status =3D 0x1</FONT>
<BR><FONT SIZE=3D2>status =3D 0x11</FONT>
<BR><FONT SIZE=3D2>status =3D 0x200</FONT>
<BR><FONT SIZE=3D2>status =3D 0x8</FONT>
<BR><FONT SIZE=3D2>status =3D 0x28</FONT>
<BR><FONT SIZE=3D2>status =3D 0x108</FONT>
<BR><FONT SIZE=3D2>status =3D 0x128</FONT>
<BR><FONT SIZE=3D2>status =3D 0x208</FONT>
<BR><FONT SIZE=3D2>status =3D 0x228</FONT>
</P>

<P><FONT SIZE=3D2>Thank You</FONT>
<BR><FONT SIZE=3D2>David</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=3D2>From: &quot;Donaldson, Mark&quot; =
&lt;Mark.Donaldson AT experianems DOT com&gt;</FONT>
<BR><FONT SIZE=3D2>To: &quot;'Ram Ramachandran'&quot; =
&lt;ram AT techmate DOT com&gt;,</FONT>
<BR><FONT SIZE=3D2>veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [Veritas-bu] Command Line Help</FONT>
<BR><FONT SIZE=3D2>Date: Thu, 25 Jul 2002 10:09:44 -0600</FONT>
</P>

<P><FONT SIZE=3D2>Tapes in the library can be gotten either querying =
the library directly and</FONT>
<BR><FONT SIZE=3D2>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,</FONT>
<BR><FONT SIZE=3D2>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>
<BR><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_01C23425.C4297200--

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