Veritas-bu

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

2003-04-04 16:00:13
Subject: [Veritas-bu] Empty Slots.............
From: scott.kendall AT abbott DOT com (scott.kendall AT abbott DOT com)
Date: Fri, 4 Apr 2003 15:00:13 -0600
This is a multipart message in MIME format.
--=_alternative 00735F3786256CFE_=
Content-Type: text/plain; charset="us-ascii"

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
 
===================================




--=_alternative 00735F3786256CFE_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="Arial">does vmcheckxxx work with acs robots?</font>
<br>
<br><font size=2 face="Arial">with tld robots it is definitely the best way to 
find out free slots. &nbsp;here's how i create the variable i use in a ksh 
script for unix and windows for injects...</font>
<br>
<br><font size=2 
face="Arial">--------------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="Arial">if [[ ${_INIT_UTS_SYSNAME:-NULL} == SunOS ]]; 
then</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; # set environment for Sun</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; null=/dev/null</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; VERITAS_HOME=/usr/openv</font>
<br><font size=2 face="Arial">elif [[ ${OS:-NULL} == Windows_NT ]]; then</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; # set environment for Windows 
NT/2000</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; null=NUL</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; 
VERITAS_HOME=c:/progra~1/veritas</font>
<br><font size=2 face="Arial">else</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; print OS not configured in basename 
$0</font>
<br><font size=2 face="Arial">&nbsp; &nbsp; exit</font>
<br><font size=2 face="Arial">fi</font>
<br>
<br><font size=2 
face="Arial">vmcheckxxx=$VERITAS_HOME/volmgr/bin/vmcheckxxx</font>
<br>
<br><font size=2 face="Arial">available_slots=$($vmcheckxxx -rn $robot_number 
-rh $robot_control_host -rt $robot_type -h $voldb_host -retries $retries 
-retry_delay $retry_delay 2&gt;$null | awk '{if ($2 == &quot;No&quot;) print 
$1}' | wc -l)</font>
<br>
<br><font size=2 
face="Arial">--------------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="Arial">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).</font>
<br>
<br>
<br><font size=2 face="Arial">- Scott</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Steven L. Sesar&quot; &lt;ssesar AT 
mitre DOT org&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: veritas-bu-admin AT 
mailman.eng.auburn DOT edu</font>
<p><font size=1 face="sans-serif">04/04/2003 01:56 PM</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; 
&nbsp; &nbsp; &nbsp;Joseph Despres &lt;jdespres AT csc DOT com&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; 
&nbsp; &nbsp; &nbsp;veritas-bu AT mailman.eng.auburn DOT edu</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; 
&nbsp; &nbsp; &nbsp;Re: [Veritas-bu] Empty Slots.............</font></table>
<br>
<br>
<br><font size=2 face="Courier New">Here's another:<br>
<br>
Tapes in silo:<br>
<br>
vmcheckxxx -rt &lt;robot-type&gt; -rn &lt;robot-number&gt; -rh 
&lt;robotic-host&gt; -list <br>
| grep -iv no<br>
<br>
<br>
<br>
Joseph Despres wrote:<br>
<br>
&gt;Background........... &nbsp;3 PowderHorn Silos, acsls 6.01, netbackup 
3.4_1<br>
&gt;<br>
&gt;Question.................. &nbsp;At the command line: &nbsp;How would I 
find out<br>
&gt;howmany empty slots there are available ?<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;At the command 
line: &nbsp;How would I<br>
&gt;list what tapes are in the silo's.....?<br>
&gt;<br>
&gt;Thanks<br>
&gt;<br>
&gt;Joe Despres<br>
&gt;<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;Veritas-bu maillist &nbsp;- &nbsp;Veritas-bu AT mailman.eng.auburn DOT 
edu<br>
&gt;http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu<br>
&gt; &nbsp;<br>
&gt;<br>
<br>
<br>
-- <br>
===================================<br>
<br>
 &nbsp;Steven L. Sesar<br>
 &nbsp;Senior Operating Systems Programmer/Analyst<br>
 &nbsp;UNIX Application Services R10A<br>
 &nbsp;The MITRE Corporation<br>
 &nbsp;202 Burlington Road - KS101<br>
 &nbsp;Bedford, MA 01730<br>
 &nbsp;tel: (781) 271-7702<br>
 &nbsp;fax: (781) 271-2600<br>
 &nbsp;mobile: (617) 893-9635<br>
 &nbsp;email: ssesar AT mitre DOT org<br>
 <br>
===================================<br>
<br>
</font>
<br>
<br>
--=_alternative 00735F3786256CFE_=--

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