[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. 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> </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> </DIV>
<P><FONT=20
size=3D2><><><><><><><><>=
<><><><><><><><><>&=
lt;><><><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. =
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> # set =
environment for=20
Sun</FONT> <BR><FONT face=3DArial size=3D2> =
null=3D/dev/null</FONT>=20
<BR><FONT face=3DArial size=3D2> =
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> # set environment for =
Windows=20
NT/2000</FONT> <BR><FONT face=3DArial size=3D2> =
null=3DNUL</FONT>=20
<BR><FONT face=3DArial size=3D2> =20
VERITAS_HOME=3Dc:/progra~1/veritas</FONT> <BR><FONT face=3DArial=20
size=3D2>else</FONT> <BR><FONT face=3DArial size=3D2> =
print OS not=20
configured in basename $0</FONT> <BR><FONT face=3DArial =
size=3D2> =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>$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
<ssesar AT mitre DOT org></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> =
</FONT><BR><FONT=20
face=3Dsans-serif size=3D1> To: =
=20
Joseph Despres <jdespres AT csc DOT com></FONT> =
<BR><FONT=20
face=3Dsans-serif size=3D1> cc: =
=20
veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT=20
face=3Dsans-serif size=3D1> Subject: =
=20
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 <robot-type> -rn =
<robot-number> -rh=20
<robotic-host> -list <BR>| grep -iv no<BR><BR><BR><BR>Joseph =
Despres=20
wrote:<BR><BR>>Background........... 3 PowderHorn Silos, =
acsls 6.01,=20
netbackup 3.4_1<BR>><BR>>Question.................. At the =
command=20
line: How would I find out<BR>>howmany empty slots there are=20
available ?<BR>><BR>> =
=20
=
=20
At the command line: How would I<BR>>list what tapes =
are in the=20
silo's.....?<BR>><BR>>Thanks<BR>><BR>>Joe=20
=
Despres<BR>><BR>><BR>>__________________________________________=
_____<BR>>Veritas-bu=20
maillist -=20
=
Veritas-bu AT mailman.eng.auburn DOT
edu<BR>>http://mailman.eng.auburn.=
edu/mailman/listinfo/veritas-bu<BR>>=20
<BR>><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> Steven L.=20
Sesar<BR> Senior Operating Systems =
Programmer/Analyst<BR> UNIX=20
Application Services R10A<BR> The MITRE Corporation<BR> 202=20
Burlington Road - KS101<BR> Bedford, MA 01730<BR> tel: (781) =
271-7702<BR> fax: (781) 271-2600<BR> mobile: (617)=20
893-9635<BR> 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--
|
|
|