Re: script to get library & drive Serial Nos from OS level

2015-08-07 Thread Rhodes, Richard L.
For AIX the info comes from a lscfg cmd.

lscfg -vl rmt2 
  rmt2 U5802.001.008C845-P1-C1-T2-W500507630F433527-L0  IBM 3592 
Tape Drive (FCP)

ManufacturerIBM
Machine Type and Model..03592E07
Serial Number...078DFE07
Device Specific.(FW)390E
Loadable Microcode LevelA1700D78

lscfg -vl smc0
  smc0 U5802.001.008C845-P1-C1-T2-W500507630F433501-L1  
IBM 3584 Library Medium Changer (FCP)

ManufacturerIBM
Machine Type and Model..03584L22
Serial Number...078A02900401
Device Specific.(FW)C460

On AIX you can use the rendev cmd to rename a rmt devices.  You can make all 
rmt's for a specific drive the same name across all AIX servers.  I don't do 
this now, but want to implement this in the near future.

Rick





-Original Message-
From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of 
Srikanth Kola23
Sent: Thursday, August 06, 2015 3:51 PM
To: ADSM-L@VM.MARIST.EDU
Subject: Reg: script to get library & drive Serial Nos from OS level

Hi Team,

I am in the need of collecting drive & library serial numbers for 50
servers from os level for lanfree setup

any scripts for me to fetch data

I have AIX , Linux boxes

library 3573 scsi ( linux & AIX )

Emc data domain(VTL) (linux)

Thanks & Regards,

Srikanth kola
Backup & Recovery
IBM India Pvt Ltd, Chennai
Mobile: +91 9885473450


-
The information contained in this message is intended only for the personal and 
confidential use of the recipient(s) named above. If the reader of this message 
is not the intended recipient or an agent responsible for delivering it to the 
intended recipient, you are hereby notified that you have received this 
document in error and that any review, dissemination, distribution, or copying 
of this message is strictly prohibited. If you have received this communication 
in error, please notify us immediately, and delete the original message.


Re: script to get library & drive Serial Nos from OS level

2015-08-07 Thread Sven Seefeld

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