ADSM-L

Re: mtlib command

2002-05-21 15:54:43
Subject: Re: mtlib command
From: Shawn Bierman <BiermanS AT METHODISTHEALTH DOT ORG>
Date: Tue, 21 May 2002 14:52:38 -0500
For serial numbers I use:

#!/bin/sh
for i in `lsdev -Cc tape | grep rmt | awk '{print $1}'`
do
  serial=`lscfg -l $i -v | grep "Serial Number" | awk -F. '{print $16}'`
  echo "$i ====>  $serial"
done


Which looks like:

# > ./tape_serials
rmt0 ====>  000000013329
rmt1 ====>  000000013424
rmt2 ====>  000000025601
rmt3 ====>  000000028376
rmt4 ====>  0000000B4384
rmt5 ====>  0000000B4386
rmt6 ====>  0000000B1553
rmt7 ====>  0000000B1549
rmt8 ====>  000000038950
rmt9 ====>  000000038956

-shawn
>>> GEOFFREY.L.GILL AT SAIC DOT COM 5/20/02 9:45:57 AM >>>
>>> GEOFFREY.L.GILL AT SAIC DOT COM 5/20/02 9:45:57 AM >>>
Good day all,

Somewhere I had documented an mtlib command that could be used to query
information about the drives attached to the system. With the changeover of
TSM servers it's hard to figure out what drive is what. I have identified a
few by looking in the side door of the 3494 when a tape got mounted.
Unfortunately I'll never be able to do this with the rest and have misplaced
my mtlib commands.

Can anyone send me the command gives info about the drive itself, as in
serial number, so I can match rmt(whatever) to it. All I can find is mtlib
-l /dev/lmcp0 -qD -f/dev/rmt6, and this one doesn't do it for me. I've got a
a
bad drive and need to locate it this way.

Thanks,
Geoff Gill
TSM Administrator
NT Systems Support Engineer
SAIC
E-Mail:    <mailto:gillg AT saic DOT com> gillg AT saic DOT com 
Phone:  (858) 826-4062
Pager:   (877) 905-7154
<Prev in Thread] Current Thread [Next in Thread>