Thanks for the tip Len. I don't use show commands in scripts, because A) we're warned that they are unsupported and subject to change without notice, and B) they're a pain to parse. But that does indeed show the library status. As for the ANR8440 msg, that would only happen during TSM startup, woudn't it? When it tries to initialize the library?
Off-topic (a little) -- another thing I'd like to be able to see is what tapes (if any) are in the import/export slots. The 'show slots' command lists what slots exist, but not what tapes are in them. Some libraries provide a telnet interface that would probably work, but not the L700 (sigh). Robin Sharpe Berlex Labs Len Boyle <[EMAIL PROTECTED] M> To Sent by: "ADSM: ADSM-L@VM.MARIST.EDU Dist Stor cc Manager" <[EMAIL PROTECTED] Subject .EDU> Re: Detect whether L700 tape library unavailable 08/17/2006 12:38 PM Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED] .EDU> Hello Robin, There is an undocumented command show library that has the online status. See the archives for more info on undocumented commands. Here is the partial output from the show library command and the query path command. Autolib is an stk 9710 which was not connected. But at least with a connected library the show library command will show the library as offline if it can not talk to it. You do get the following message in the tsm log for an unconnected library 08/09/2006 09:09:05 ANR8440E Initialization failed for SCSI library AUTOLIB; will retry in 2 minute(s). len ------------------------------------------------------------------------------------------------- tsm: ADSMNT04>show library MMSV->libList: head=03059FB8, tail=0305A5E0 Library AUTOLIB (type SCSI): reference count = 0, online = 0, borrowed drives = 0, update count = 0 basicCfgBuilt = 1, libInfoBuild = 0, definingPathToLibrary = 0 addLibPath = 0, driveListBusy = 0 libvol_lock_id=0, libvolLock_count=0, SeqnBase=0 library extension at 03053960 autochanger list: dev=lb0.0.0.3, busy=0, online=0 Drive detail and second library output deleted. --------------------------------------------------------------------------------------------------- tsm: ADSMNT04>q path Source Name Source Type Destination Destination On-Line Name Type ----------- ----------- ----------- ----------- ------- ADSMNT04 SERVER AUTOLIB LIBRARY Yes ADSMNT04 SERVER TAPE1 DRIVE Yes ADSMNT04 SERVER TAPE2 DRIVE Yes ADSMNT04 SERVER BORG LIBRARY Yes ADSMNT04 SERVER TAPEB1 DRIVE Yes ADSMNT04 SERVER TAPEB2 DRIVE Yes ---------------------------------------------------------------------------------------------------- For others: Has anyone asked IBM to move the function of the show library command to a documented command. len -----Original Message----- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Robin Sharpe Sent: Thursday, August 17, 2006 11:03 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] Detect whether L700 tape library unavailable The path definition is the only TSM reference I could find that has a library status: ONLINE=YES or NO. Example: ANS8000I Server command: 'q path' Source Name: TSM_WAYNE_LM Source Type: SERVER Destination Name: WATL26 Destination Type: LIBRARY On-Line: Yes I'm not sure if TSM will set it off line if there is a problem. Another approach is to use the lbtest utility that comes with TSM, but I don't know if I'd want to be firing that up automatically.... it could interfere with TSM activities. BTW, we also have an L700. Ours is attached to an HP rp7410, running HP-UX 11i. We have 14 LTO2 drives, and 4 LTO3's on order. Robin Sharpe Berlex Labs "Martin, Roy J" <[EMAIL PROTECTED] OM> To Sent by: "ADSM: ADSM-L@VM.MARIST.EDU Dist Stor cc Manager" <[EMAIL PROTECTED] Subject .EDU> Detect whether L700 tape library unavailable 08/11/2006 11:46 AM Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED] .EDU> We have a TSM server (5.2.2) running on a Solaris box with a SCSI attached STK L700 tape library. TSM interfaces directly with the tape library. Does anyone have any relatively simple method to detect whether the tape library becomes unavailable? I was thinking of enabling some events, have them directed to a log file & have a monitoring tool watch for them, but it seems like it would be difficult to identify all of them. Is there some simply way to achieve this? Perhaps "query drive" or something on a regular basis would generate a particular error if the library was down. I suppose a script could just see if "q drive" returns valid response within some timeframe. Any thoughts or experience doing this? Roy J. Martin Global Client Engineering GM (BUR group) mailto:[EMAIL PROTECTED]