Hello,

On Linux, there is more than a way get it, here's two (for IBM devices managed 
by lin_tape driver), using udevadm (RHEL6) :

for IBMTAPE in /dev/IBM*[0-9]; do echo $(basename ${IBMTAPE}) $(< /sys$(udevadm 
info --query=path --name=${IBMTAPE})/serial_num); done

for IBMTAPE in /dev/IBM*[0-9]; do echo $(basename ${IBMTAPE}) $(udevadm info 
--attribute-walk --name=${IBMTAPE} | grep serial_num); done

-- 
Best regards / Cordialement / مع تحياتي
Erwann SIMON

----- Mail original -----
De: "Srikanth Kola23" <[email protected]>
À: [email protected]
Envoyé: Jeudi 6 Août 2015 21:51:14
Objet: [ADSM-L] 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

Reply via email to