Sorry LucD,
The above script is showing extra paths to the LUNs which is actually not there. Suppose a esx host has two hba(s) vmhab2 and vmhba3 and a LUN is presented to this HBA(s) with LUN ID 10 as mentioned below:
vmhba2:C0:T0:L10
vmhba3:C0:T1:L10
But the script is showing like this:
vmhba2:C0:T0:L10
vmhba2:C0:T1:L10
vmhba3:C0:T0:L10
vmhba3:C0:T1:L10
Please advice.