[Veritas-bu] Empty Slots.............
2003-04-04 16:00:13
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. 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"> # set environment for Sun</font>
<br><font size=2 face="Arial"> null=/dev/null</font>
<br><font size=2 face="Arial"> VERITAS_HOME=/usr/openv</font>
<br><font size=2 face="Arial">elif [[ ${OS:-NULL} == Windows_NT ]]; then</font>
<br><font size=2 face="Arial"> # set environment for Windows
NT/2000</font>
<br><font size=2 face="Arial"> null=NUL</font>
<br><font size=2 face="Arial">
VERITAS_HOME=c:/progra~1/veritas</font>
<br><font size=2 face="Arial">else</font>
<br><font size=2 face="Arial"> print OS not configured in basename
$0</font>
<br><font size=2 face="Arial"> 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>$null | awk '{if ($2 == "No") 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>"Steven L. Sesar" <ssesar AT
mitre DOT org></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"> </font>
<br><font size=1 face="sans-serif"> To:
Joseph Despres <jdespres AT csc DOT com></font>
<br><font size=1 face="sans-serif"> cc:
veritas-bu AT mailman.eng.auburn DOT edu</font>
<br><font size=1 face="sans-serif"> Subject:
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 <robot-type> -rn <robot-number> -rh
<robotic-host> -list <br>
| grep -iv no<br>
<br>
<br>
<br>
Joseph Despres wrote:<br>
<br>
>Background........... 3 PowderHorn Silos, acsls 6.01, netbackup
3.4_1<br>
><br>
>Question.................. At the command line: How would I
find out<br>
>howmany empty slots there are available ?<br>
><br>
>
At the command
line: How would I<br>
>list what tapes are in the silo's.....?<br>
><br>
>Thanks<br>
><br>
>Joe Despres<br>
><br>
><br>
>_______________________________________________<br>
>Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT
edu<br>
>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu<br>
> <br>
><br>
<br>
<br>
-- <br>
===================================<br>
<br>
Steven L. Sesar<br>
Senior Operating Systems Programmer/Analyst<br>
UNIX Application Services R10A<br>
The MITRE Corporation<br>
202 Burlington Road - KS101<br>
Bedford, MA 01730<br>
tel: (781) 271-7702<br>
fax: (781) 271-2600<br>
mobile: (617) 893-9635<br>
email: ssesar AT mitre DOT org<br>
<br>
===================================<br>
<br>
</font>
<br>
<br>
--=_alternative 00735F3786256CFE_=--
|
|
|