cancel
Showing results for 
Search instead for 
Did you mean: 

Script to find LUN

 
SOLVED
Go to solution
amoralesr
Frequent Visitor

Script to find LUN

Hi.

 

I usually write utilities for shell, I leave a script to find disk (legacy and dsf).
The script receives the LUNID with which it is presented to the host.
The script worked with EVA and HITACHI arrays.

 

 

Regards .

 

https://github.com/antoniomoralesr/hpux/blob/master/queDisco

 

-----------------------------------------------------------------------------------

Antonio Morales

2 REPLIES 2
Torsten.
Acclaimed Contributor

Re: Script to find LUN

Nice, but I cannot test it because I don't have access to appropriate hardware.

 

Isn't it something what evainfo and xpinfo do?

 

Example:

 

# evainfo
usage: evainfo [-a|-d <device_file>] [-l] [-f fmt][-u KB|MB|GB][-w <wwn> [-W][-g] [{-P|-p}]
         -a : Display information for all EVA Luns presented to this host.
         -d : Display information for the specified EVA Lun.
         -l : Display information in long/full format.
         -v : Display EVAInfo tool version details.
         -f : Specify output format. The supported values for <fmt> are:
                tab (default)
                csv
         -u : Specify output format for Capacity {KB|MB|GB}, default is MB.
         -W : Collate output based on WWN of Luns.
         -w : Display information for the specified Lun WWN.
         -g : Use SCSI generic (sg) interface on Linux.
         -P : Display only persistent device special files.
         -p : Display persistent device special files along with legacy files.
         -h : Help


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
amoralesr
Frequent Visitor
Solution

Re: Script to find LUN

This script should work with any storage .

In Hitachi I tested this with a HUS130 .

Evainfo is designed only for eva and xpinfo for hitachi oem . Both should be installed.

This should work with any array.

 

Regards.