ADSM-L

Re: [ADSM-L] script to get library & drive Serial Nos from OS level

2015-08-07 07:48:29
Subject: Re: [ADSM-L] script to get library & drive Serial Nos from OS level
From: Sven Seefeld <sven.seefeld AT RRZ.UNI-HAMBURG DOT DE>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Fri, 7 Aug 2015 13:46:37 +0200
Hi,

[...]
On AIX you can use the rendev cmd to rename a rmt devices.
well, that depends.
You can rename all devices managed by aTape (lsdev -Cc tape). If you're using a SCSI library that relies on using the TSM drivers and mt devices (lsdev -Cc admstape) instead, you cannot rename them.
We usually run two ugly command lines to list all serial numbers and device 
names:
for device in $(lsdev -Cc adsmtape |awk '{print $1};') ; do lscfg -vl $device |egrep '(Serial|mt)'; done for device in $(lsdev -Cc tape |awk '{print $1};') ; do lscfg -vl $device |egrep '(Serial|rmt|smc)'; done
Mostly, the mt devices won't report a serial number, so the matching between
the WWN in the location code and the serial number is left as an exercise for
the admin ;)

Best regards,


   Sven