We have tried the possibilities to get the details by using below scripts..
//To print Disks Name
var vmDisks=myvm.guest.disk;
for (var i=0 in vmDisks)
{
var name=myvm.guest.disk[i].diskPath;
var guestdisk = new VcVirtualDisk();
var guestdisks =myvm.guest.disk[i];
System.log(guestdisk.guestdisks[i].ControllerKey);
System.log(name +": capacity : "+ myvm.guest.disk[i].capacity/1024 /1024 /1024 + " GB and FreeSpace: " + myvm.guest.disk[i].freeSpace/1024 /1024 /1024 + "GB");
}
We are not able to find the right scripting object to pull the SCSi controller details from the guest OS (windows).
Note :- from Vmlevel we are able to pull the scsi details, but we would like to pull from guest os, if i select the vm it should give E drive is connected to hardisk 1 and its SCSI details and present in this datastore.