Operating System - HP-UX
1832817 Members
2906 Online
110045 Solutions
New Discussion

Re: command to find eva controllers

 
mjos
Super Advisor

command to find eva controllers

what is the command to find the total no. of eva controllers on an hp-ux system.
My ioscan output give me around 48 controlers.
Is the below command right/

ioscan -fn |grep HSV*
6 REPLIES 6
Jeeshan
Honored Contributor

Re: command to find eva controllers

mjos
Super Advisor

Re: command to find eva controllers

thanks, i think that thread is for VMS.
My system is hp-ux 11.23
Eric SAUBIGNAC
Honored Contributor

Re: command to find eva controllers

Bonjour,

What do you mean exactly ? Do you want to list special disk files according to their path to EVA storage ?

You will have to build a script that reconcile output mainly from commands "ioscan" and "fcmsutil". Here is an output of what is possible to do this way :

root@sap00:/opt/cheops/scripts>./liste_eva_special_files

/dev/fcd0, FC card 0/2/1/0 connected to port no 010 on switch san2sw1

c4tXdY : 0/2/1/0.21.0.0.0 -> EVA-CHEOPS / Controller A - FP2, Lun 0 to 127
c13tXdY : 0/2/1/0.21.0.0.1 -> EVA-CHEOPS / Controller A - FP2, Lun 128 to 255
c6tXdY : 0/2/1/0.21.1.0.0 -> EVA-CHEOPS / Controller B - FP2, Lun 0 to 127
c14tXdY : 0/2/1/0.21.1.0.1 -> EVA-CHEOPS / Controller B - FP2, Lun 128 to 255

/dev/fcd1, FC card 0/5/1/0 connected to port no 010 on switch san1sw1

c8tXdY : 0/5/1/0.11.0.0.0 -> EVA-CHEOPS / Controller A - FP1, Lun 0 to 127
c15tXdY : 0/5/1/0.11.0.0.1 -> EVA-CHEOPS / Controller A - FP1, Lun 128 to 255
c10tXdY : 0/5/1/0.11.1.0.0 -> EVA-CHEOPS / Controller B - FP1, Lun 0 to 127
c16tXdY : 0/5/1/0.11.1.0.1 -> EVA-CHEOPS / Controller B - FP1, Lun 128 to 255

Eric
mjos
Super Advisor

Re: command to find eva controllers

Thanks Eric, I just want to find the total no of EVA controllers visible by each host from IOSCAN output

Is this command right?

# ioscan -fnC fc
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
fc 0 0/2/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd0
fc 1 0/5/2/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd1


Does that mean that this a two single port fc controllers
Eric SAUBIGNAC
Honored Contributor

Re: command to find eva controllers

No.

Class "fc" just shows local HBA connected to the SAN, not EVA controllers ... In your output, we can see you have two HBA in your HP-UX box.

To have an idea of EVA controllers visible to a given host through ioscan, it is better to use class "ctl" (ioscan -C ctl). But that is just an idea, as you will not be able to tell if given pathes correspond to the same controller or not : remember you have 2 or 4 FC host port connections per controller, depending on the kind of EVA.

If you just want to know how many EVA controllers are visible, IMHO it would be more effective to scan output of "fcmsutil /dev/fcd# get remote all" (fcd# are the drivers returned by "ioscan -C fc"). Look for "Symbolic Name" and "Target Port/Node World Wide Name", you will find valuable informations.

Eric
Paul Cross_1
Respected Contributor

Re: command to find eva controllers