Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EMC inq HDS equivalent

Status
Not open for further replies.

mrn

MIS
Apr 27, 2001
3,993
GB
Any know of a tool like inq for interegating HDS (Hitachi) SAN disks?

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Assuming you're using HDLM:
/usr/DynamicLinkManager/bin/dlnkmgr view -path


Here's an ugly little script that I use on a couple of my servers to get some of the useful LUN info. If you know where to look, you can find all the disk info you need.
Code:
#!/usr/bin/ksh
# The purpose of this script is to find out disk information
# without having to run custom EMC/Hitachi/MPIO commands.

# Generate a list of all disks on this system.
DISKS=`lspv | awk '{ print $1 }'`

for DISK in $DISKS
do
        INFO=`lscfg -vl $DISK | grep -e Manufacturer -e "Serial Number" \
                -e "Device Specific.(Z1)" | sed 's/\.//g' \
                | sed 's/Manufacturer/ /g' | sed 's/Serial Number/ /g' \
                | sed 's/Device Specific(Z1)/ /g'`
        MAN=`echo $INFO | awk '{ print $1 }'`
        SER=`echo $INFO | awk '{ print $2 }'`
        DEV=`echo $INFO | awk '{ print $4 }'`
        if [ "$INFO" = "" -a "`lscfg -vl $DISK | awk '{ print $3, $4 }'`" = "HDLM Driver" ] ; then
                MAN="HDLM"
                DEV=`/usr/DynamicLinkManager/bin/dlnkmgr view -path | grep $DISK | head -1 | awk '{ print  $6 }'`
        fi
        if [ "$MAN" = EMC ] ; then
                # I only need the third through fifth character of the SER
                # variable.
                SER=`echo $SER | cut -c 3-5`
                echo $DISK $MAN $SER
        elif [ "$MAN" = HITACHI ] ; then
                echo $DISK $MAN $DEV
        elif [ "$MAN" = IBM ] ; then
                echo $DISK $MAN Local
        elif [ "$MAN" = HDLM ] ; then
                echo $DISK $MAN $DEV
        else
                echo $DISK $MAN -Unknown
        fi
done
 
Not using HDLM at present. Thanks for the script its a good start.

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top