try this little ksh script:

tape_drives=$(lsdev -Cc tape | grep rmt | awk '{ print $1 }')
for i in $tape_drives
do
    printf $i":"
    lscfg -vl $i | grep "Serial Number"
done



-----Original Message-----
From: Alfred G Welch [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: Re: mtlib command


Geoff,
              The command I use to get the serial numbers for my drives:
lscfg -l rmt* -v



I

"Gill, Geoffrey L." <[EMAIL PROTECTED]>@VM.MARIST.EDU> on 05/20/2002
10:45:57 AM

Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]>

Sent by:    "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]>


To:    [EMAIL PROTECTED]
cc:
Subject:    mtlib command


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
bad drive and need to locate it this way.

Thanks,
Geoff Gill
TSM Administrator
NT Systems Support Engineer
SAIC
E-Mail:    <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
Phone:  (858) 826-4062
Pager:   (877) 905-7154

Reply via email to