Since you spoke about masking, I would assume this is DMX  The command is  # symmaskdb list devs -sid XXX -wwn  If VMAX, if you know the SG then  Symaccess –sid show -type storage  
Hi Expert ,  I need a command to be used to get the whole devices which are massked to a specific HBA ?  Thx alot
Solution Enabler