Veritas-bu

[Veritas-bu] Empty Slots.............

2003-04-04 16:25:31
Subject: [Veritas-bu] Empty Slots.............
From: david AT datastaff DOT com (David A. Chapa)
Date: Fri, 4 Apr 2003 15:25:31 -0600
This is a multi-part message in MIME format.

------=_NextPart_000_010C_01C2FABE.6DF52DB0
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: 7bit

Don't think so.  that's why I think cmd_proc is what you have to use.

There are no slot numbers represented when the robot type is ACS.

<><><><><><><><><><><><><><><><><><><><>
David A. Chapa
DataStaff, Inc.
312-683-1144
http://www.BackupScripts.com
"where script happens"
Post your questions in our forums

Co-Author of
Implementing Backup and Recovery:
The Readiness Guide for the Enterprise
published by John Wiley and Sons
A Veritas Solution Series Publication
ISBN:0471227145
---------------------------------------

  -----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
scott.kendall AT abbott DOT com
  Sent: Friday, April 04, 2003 3:00 PM
  To: Steven L. Sesar
  Cc: Joseph Despres; veritas-bu AT mailman.eng.auburn DOT edu;
veritas-bu-admin AT mailman.eng.auburn DOT edu
  Subject: Re: [Veritas-bu] Empty Slots.............



  does vmcheckxxx work with acs robots?

  with tld robots it is definitely the best way to find out free slots.
here's how i create the variable i use in a ksh script for unix and windows
for injects...

  --------------------------------------------------------------------------
------

  if [[ ${_INIT_UTS_SYSNAME:-NULL} == SunOS ]]; then
      # set environment for Sun
      null=/dev/null
      VERITAS_HOME=/usr/openv
  elif [[ ${OS:-NULL} == Windows_NT ]]; then
      # set environment for Windows NT/2000
      null=NUL
      VERITAS_HOME=c:/progra~1/veritas
  else
      print OS not configured in basename $0
      exit
  fi

  vmcheckxxx=$VERITAS_HOME/volmgr/bin/vmcheckxxx

  available_slots=$($vmcheckxxx -rn $robot_number -rh
$robot_control_host -rt $robot_type -h $voldb_host -retries
$retries -retry_delay $retry_delay 2>$null | awk '{if ($2 == "No") print
$1}' | wc -l)

  --------------------------------------------------------------------------
------

  if you can't do this with an api robot, i'm sure there is a way within acs
to do a similar thing from cli (but i can't help you there).


  - Scott



       "Steven L. Sesar" <ssesar AT mitre DOT org>
        Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu
        04/04/2003 01:56 PM


                To:        Joseph Despres <jdespres AT csc DOT com>
                cc:        veritas-bu AT mailman.eng.auburn DOT edu
                Subject:        Re: [Veritas-bu] Empty Slots.............



  Here's another:

  Tapes in silo:

  vmcheckxxx -rt <robot-type> -rn <robot-number> -rh <robotic-host> -list
  | grep -iv no



  Joseph Despres wrote:

  >Background...........  3 PowderHorn Silos, acsls 6.01, netbackup 3.4_1
  >
  >Question..................  At the command line:  How would I find out
  >howmany empty slots there are available ?
  >
  >                                      At the command line:  How would I
  >list what tapes are in the silo's.....?
  >
  >Thanks
  >
  >Joe Despres
  >
  >
  >_______________________________________________
  >Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
  >http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
  >
  >


  --
  ===================================

   Steven L. Sesar
   Senior Operating Systems Programmer/Analyst
   UNIX Application Services R10A
   The MITRE Corporation
   202 Burlington Road - KS101
   Bedford, MA 01730
   tel: (781) 271-7702
   fax: (781) 271-2600
   mobile: (617) 893-9635
   email: ssesar AT mitre DOT org

  ===================================




------=_NextPart_000_010C_01C2FABE.6DF52DB0
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D073132421-04042003><FONT face=3DArial color=3D#0000ff =
size=3D2>Don't=20
think so. &nbsp;that's why I think cmd_proc is what you have to=20
use.</FONT></SPAN></DIV>
<DIV><SPAN class=3D073132421-04042003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D073132421-04042003><FONT face=3DArial color=3D#0000ff =
size=3D2>There=20
are no slot numbers represented when the robot type is =
ACS.</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<P><FONT=20
size=3D2>&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;=
&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&=
lt;&gt;&lt;&gt;&lt;&gt;<BR>David=20
A. Chapa<BR>DataStaff, Inc.<BR>312-683-1144<BR><A=20
href=3D"http://www.backupscripts.com/"=20
target=3D_blank>http://www.BackupScripts.com</A><BR>"where script =
happens"<BR>Post=20
your questions in our forums<BR><BR>Co-Author of<BR>Implementing Backup =
and=20
Recovery:<BR>The Readiness Guide for the Enterprise<BR>published by John =
Wiley=20
and Sons<BR>A Veritas Solution Series=20
Publication<BR>ISBN:0471227145<BR>---------------------------------------=
</FONT>=20
</P>
<BLOCKQUOTE>
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  veritas-bu-admin AT mailman.eng.auburn DOT edu=20
  [mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]<B>On Behalf Of=20
  </B>scott.kendall AT abbott DOT com<BR><B>Sent:</B> Friday, April 04, 2003 =
3:00=20
  PM<BR><B>To:</B> Steven L. Sesar<BR><B>Cc:</B> Joseph Despres;=20
  veritas-bu AT mailman.eng.auburn DOT edu;=20
  veritas-bu-admin AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> Re: =
[Veritas-bu]=20
  Empty Slots.............<BR><BR></FONT></DIV><BR><FONT face=3DArial =
size=3D2>does=20
  vmcheckxxx work with acs robots?</FONT> <BR><BR><FONT face=3DArial =
size=3D2>with=20
  tld robots it is definitely the best way to find out free slots. =
&nbsp;here's=20
  how i create the variable i use in a ksh script for unix and windows =
for=20
  injects...</FONT> <BR><BR><FONT face=3DArial=20
  =
size=3D2>----------------------------------------------------------------=
----------------</FONT>=20
  <BR><BR><FONT face=3DArial size=3D2>if [[ ${_INIT_UTS_SYSNAME:-NULL} =
=3D=3D SunOS ]];=20
  then</FONT> <BR><FONT face=3DArial size=3D2>&nbsp; &nbsp; # set =
environment for=20
  Sun</FONT> <BR><FONT face=3DArial size=3D2>&nbsp; &nbsp; =
null=3D/dev/null</FONT>=20
  <BR><FONT face=3DArial size=3D2>&nbsp; &nbsp; =
VERITAS_HOME=3D/usr/openv</FONT>=20
  <BR><FONT face=3DArial size=3D2>elif [[ ${OS:-NULL} =3D=3D Windows_NT =
]]; then</FONT>=20
  <BR><FONT face=3DArial size=3D2>&nbsp; &nbsp; # set environment for =
Windows=20
  NT/2000</FONT> <BR><FONT face=3DArial size=3D2>&nbsp; &nbsp; =
null=3DNUL</FONT>=20
  <BR><FONT face=3DArial size=3D2>&nbsp; &nbsp;=20
  VERITAS_HOME=3Dc:/progra~1/veritas</FONT> <BR><FONT face=3DArial=20
  size=3D2>else</FONT> <BR><FONT face=3DArial size=3D2>&nbsp; &nbsp; =
print OS not=20
  configured in basename $0</FONT> <BR><FONT face=3DArial =
size=3D2>&nbsp; &nbsp;=20
  exit</FONT> <BR><FONT face=3DArial size=3D2>fi</FONT> <BR><BR><FONT =
face=3DArial=20
  size=3D2>vmcheckxxx=3D$VERITAS_HOME/volmgr/bin/vmcheckxxx</FONT> =
<BR><BR><FONT=20
  face=3DArial size=3D2>available_slots=3D$($vmcheckxxx -rn =
$robot_number -rh=20
  $robot_control_host -rt $robot_type -h $voldb_host -retries $retries=20
  -retry_delay $retry_delay 2&gt;$null | awk '{if ($2 =3D=3D "No") print =
$1}' | wc=20
  -l)</FONT> <BR><BR><FONT face=3DArial=20
  =
size=3D2>----------------------------------------------------------------=
----------------</FONT>=20
  <BR><BR><FONT face=3DArial size=3D2>if you can't do this with an api =
robot, i'm=20
  sure there is a way within acs to do a similar thing from cli (but i =
can't=20
  help you there).</FONT> <BR><BR><BR><FONT face=3DArial size=3D2>- =
Scott</FONT>=20
  <BR><BR><BR><BR>
  <TABLE width=3D"100%">
    <TBODY>
    <TR vAlign=3Dtop>
      <TD>
      <TD><FONT face=3Dsans-serif size=3D1><B>"Steven L. Sesar"=20
        &lt;ssesar AT mitre DOT org&gt;</B></FONT> <BR><FONT 
face=3Dsans-serif=20
        size=3D1>Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu</FONT> 
=

        <P><FONT face=3Dsans-serif size=3D1>04/04/2003 01:56 PM</FONT> =
<BR></P>
      <TD><FONT face=3DArial size=3D1>&nbsp; &nbsp; &nbsp; &nbsp; =
</FONT><BR><FONT=20
        face=3Dsans-serif size=3D1>&nbsp; &nbsp; &nbsp; &nbsp; To: =
&nbsp; &nbsp;=20
        &nbsp; &nbsp;Joseph Despres &lt;jdespres AT csc DOT com&gt;</FONT> =
<BR><FONT=20
        face=3Dsans-serif size=3D1>&nbsp; &nbsp; &nbsp; &nbsp; cc: =
&nbsp; &nbsp;=20
        &nbsp; &nbsp;veritas-bu AT mailman.eng.auburn DOT edu</FONT> 
<BR><FONT=20
        face=3Dsans-serif size=3D1>&nbsp; &nbsp; &nbsp; &nbsp; Subject: =
&nbsp;=20
        &nbsp; &nbsp; &nbsp;Re: [Veritas-bu] Empty=20
    Slots.............</FONT></TR></TBODY></TABLE><BR><BR><BR><FONT=20
  face=3D"Courier New" size=3D2>Here's another:<BR><BR>Tapes in=20
  silo:<BR><BR>vmcheckxxx -rt &lt;robot-type&gt; -rn =
&lt;robot-number&gt; -rh=20
  &lt;robotic-host&gt; -list <BR>| grep -iv no<BR><BR><BR><BR>Joseph =
Despres=20
  wrote:<BR><BR>&gt;Background........... &nbsp;3 PowderHorn Silos, =
acsls 6.01,=20
  netbackup 3.4_1<BR>&gt;<BR>&gt;Question.................. &nbsp;At the =
command=20
  line: &nbsp;How would I find out<BR>&gt;howmany empty slots there are=20
  available ?<BR>&gt;<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;=20
  &nbsp;At the command line: &nbsp;How would I<BR>&gt;list what tapes =
are in the=20
  silo's.....?<BR>&gt;<BR>&gt;Thanks<BR>&gt;<BR>&gt;Joe=20
  =
Despres<BR>&gt;<BR>&gt;<BR>&gt;__________________________________________=
_____<BR>&gt;Veritas-bu=20
  maillist &nbsp;-=20
  =
&nbsp;Veritas-bu AT mailman.eng.auburn DOT 
edu<BR>&gt;http://mailman.eng.auburn.=
edu/mailman/listinfo/veritas-bu<BR>&gt;=20
  &nbsp;<BR>&gt;<BR><BR><BR>--=20
  =
<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR><BR>&nbsp;Steven L.=20
  Sesar<BR>&nbsp;Senior Operating Systems =
Programmer/Analyst<BR>&nbsp;UNIX=20
  Application Services R10A<BR>&nbsp;The MITRE Corporation<BR>&nbsp;202=20
  Burlington Road - KS101<BR>&nbsp;Bedford, MA 01730<BR>&nbsp;tel: (781) =

  271-7702<BR>&nbsp;fax: (781) 271-2600<BR>&nbsp;mobile: (617)=20
  893-9635<BR>&nbsp;email:=20
  =
ssesar AT mitre DOT 
org<BR><BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR><BR></FONT><BR>=
<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_010C_01C2FABE.6DF52DB0--


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