ADSM-L

Re: 3584 I/O port query

2005-07-14 11:43:06
Subject: Re: 3584 I/O port query
From: Mark Bertrand <Mark.Bertrand AT USUNWIRED DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 14 Jul 2005 10:43:07 -0500
No Matt, I agree with David's approach, never leave anything to humans that 
scripts can do better.

Here is what I posted back in December on the subject, with help from other 
members. I am working with Windows, but I'm sure you can modify it for AIX.

Feel free to write me directly if you have any questions.
Good Luck.

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

OK here is what I found in my adventures to automate the status of my 10
slot I/O of my 3584.

I am no expert, just wanted to share. Also, my environment is W2K, TSM
5.1.6.3.
I have read all the postings on this subject and here is what I found. First
Richard Cowen had posted the best document associated with this tool, here:
http://msgs.adsm.org/cgi-bin/get/adsm0202/767.html period. Richard credits
Joel Fuhrman of washington.edu.for the document.

In my experience I could not get return_lib_inventory to work. I tried
everything with no luck.
SYNTAX: return_lib_inventory dno=  sno=  eeno=  tno=
e.g. return_lib_inventory dno=2 sno=3 eeno=1 tno=1 Where dno = number of
drives sno = number of storage slots eeno = number of entry/exit ports tno =
number of transport elements

So I just used return_lib_inventory_all and used grep to pull out only the
I/O slot info, no big deal.

OK, so here is the meat of the script, I am sure any of you reading this can
write some cool stuff around this to meet your needs.

First to launch lbtest in batch mode use -dev for device name input, which I
found using the TSM MMC plugin on my Windows server under TSM Device Drive.
Reports, Device Information.
Also use the -f for the batch part of the script, this is what tells lbtest
what to do once it is launched. Don't worry about specifying an output file,
this will automatically use lbtest.out in the launched from directory. Also
great for troubleshooting syntax problems.

cd c:\Program Files\tivoli\tsm\Server
lbtest -dev lb0.1.0.1 -f lbtest.in

Here is the .in file lbtest.in:
command open $D
command return_elem_count
command return_lib_inventory_all
command close

Even though you specify the device, you still need to open it using the
command open. I used $D which is an acceptable variable. Don't forget to
close when complete. If the script fails then you will need to enter lbtest
in manual mode and close the device. Also, if you make any changes to your
.in file, you must completely exit the lbtest app before it will read the
changes.

That's it, put that in a batch file, use a couple of redirects > to an out
file a few greps, awks and if statements with a command line mail utility
and you can do some pretty cool stuff.

I will now have it check the I/O for tapes before checkout, also run a
little batch file on schedule to send me an email when full. This is great
for those of us admins who are our whole TSM shop.

Let me know directly if you need more detail, but I think this is just about
it. I know lbtest can do much more, but this met my needs, the link to the
document from Richard and Joel was a big help.

Thanks all for getting me pointed in the right direction.
Mark Bertrand
------------------------------------------------------------------------------------------




-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU]On Behalf Of
David Longo
Sent: Thursday, July 14, 2005 9:47 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: 3584 I/O port query


I have TSM server 5.2.3.0 and 3584 library with 10 slot I/O port.  Have Atape
driver 8.4.8.0, going to 9.3.5.0. next week and TSM server 5.2.5.0 (for new
LTO3 drives).  Server platform is AIX 5.2.

My problem is that my Operators do not always process tapes back in correctly
through DRM.  They will miss the "mode drmedia" command on a returning tape
then try to check it in.  Of course they don't see message on TSM Console.

A tape will be left in I/O port and next day when they check out 10 tapes,
one is left in library as there are only 9 slots in I/O.

There are a couple of other ways tapes can get left or forgotten.

I figure someone has a script to query the I/O port (probably with tapeutil)
and send page/email to OPS if the count is greater than 0.
I can do the page part, just need to know how to query in script
and determine there are tapes in I/O port.

Thanks,

David B. Longo
System Administrator
Health First, Inc.
3300 Fiske Blvd.
Rockledge, FL 32955-4305
PH      321.434.5536
Pager  321.634.8230
Fax:    321.434.5509
david.longo AT health-first DOT org


##############################################################
This message is for the named person's use only.  It may 
contain confidential, proprietary, or legally privileged 
information.  No confidentiality or privilege is waived or 
lost by any mistransmission.  If you receive this message 
in error, please immediately delete it and all copies of it 
from your system, destroy any hard copies of it, and notify 
the sender.  You must not, directly or indirectly, use, 
disclose, distribute, print, or copy any part of this message
if you are not the intended recipient.  Health First reserves
the right to monitor all e-mail communications through its
networks.  Any views or opinions expressed in this message
are solely those of the individual sender, except (1) where
the message states such views or opinions are on behalf of 
a particular entity;  and (2) the sender is authorized by 
the entity to give such views or opinions.
##############################################################

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