i'm now using this one to list the RDM's
this lists the RDM devices "ClusterName","LunName","LunUuid","Lunsize","VolumeName" but but what i really need is the mapping id of the lun given from the shared storage device (NetApp) which i can see in the hba devices paths in vsphere. and after that i want to add the RDM disk with the particular Lun ID to a Vm.
This is very important for me so i appreciate any help on this.
this really will help me,
the script in the link gives me a lunID of the RDM disk which is already mapped to a Vm, i'm trying to manipulate it to a shape where i can list all the RDM LunID's of the luns connected to vsphere whether it's connected to a Vm or not. and i'm not succesfull as of now:((
i'm still trying to learn vspherecli and powershell same time.
i can still ask for assistance if you don't mind:)