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 >>> [EMAIL PROTECTED] 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 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