Hi RRR,  By powershell do you mean UEMCLI? The command you are looking for might be: uemcli -no /stor/prov/luns/lun show -detail  Check the line that reads "Host LUN IDs" and the line above that.  You can filter also for what you need only. Example: uemcli -no /stor/prov/luns/lun show -filter "ID,Name,LUN access hosts,Host LUN IDs"  Sample output:       ID               = sv_xx       Name             = Test_LUN       LUN access hosts = Host_13, Host_14, Host_9, Host_10       Host LUN IDs     = 7, 7, 7, 7  So from here you get what hosts can see a LUN, along with the Host LUN ID they are mapped with.  If you need to see it the other way around (from the host side, not LUN), then try the host command: uemcli -no /remote/host show -detail  The filter option can also be used here.  All these outputs are based on Unity OE 4.4.1, so if you are running dated versions, you may not have some options.  Hope this helps.  Andre @ Dell EMC  If this answered your question, please remember to mark this thread as resolved/answered, so it can help other users.
I'm trying to retrieve a list of LUNs attached to hosts on my Unitys and I need to know the host LUN ids, but I'm getting a lot of information (name, wwn, size), but no host LUN id. Does anyone know how to retrieve this from a Unity system using Powershell?
How do I retrieve host LUN ids using Powershell?