Hi
I'm in search for a complete vm inventory since a long time..last day i got end with some script (Given by Kunal)..Thanks Kunal it work perfectly ![]()
![]()


But it can't fulfill my complete requirement.I need few more details.. can any one help me out.
Used Script: Attached ps file.
In the output I need canonical name for each datastore, Lun ID and LunWWN.For Example If Harddisk 1 is in abc datastore (need nna of that Lun, Lun ID and LunWWN) and If harddisk 2 is in xyz datastore (need nna of that Lun, Lun ID and LunWWN) and Cluster name where that vm exist.
&
In out put it is not writing VMDK should i need any correction in script.
My output :
VMName | IP Address | Domain Name | Real-OS | vCPU | vCPU Cores | RAM(GB) | Total-HDD(GB) | HDDs(GB) | Datastore | Partition/Size | Hardware Version | PowerState | Setting-OS | EsxiHost | vCenter Server | Folder | MacAddress | VMX | VMDK | VMTools Status | VMTools Version | VMTools Version Status | VMTools Running Status | SnapShots | DataCenter | vNic | PortGroup | RDMs |
HYDIVENWEBUAT | 10.50.56.91 | test.com | Microsoft Windows Server 2008 R2 (64-bit) | 2 | 2 | 2 | 92 | 40 + 50 | HYD_CX4-480_406_LUN14_600GB_LANDESK | C:\=20GB/40GB, D:\=50GB/50GB | v7 | PoweredOn | Microsoft Windows Server 2008 R2 (64-bit) | 10.50.44.38 | 10.50.37.38 | vm | 00:50:56:8e:5f:81 | [HYD_CX4-480_406_LUN14_600GB_LANDESK] HYDIVENWEBUAT/HYDIVENWEBUAT.vmx | toolsOld | 8295 | guestToolsNeedUpgrade | guestToolsRunning | HYD DC | 1=Vmxnet3 | 10.50.56.1-254_V344 | /// | ||
HYDIPRJETP3T1 | 10.50.56.102 | test.com | Microsoft Windows Server 2008 R2 (64-bit) | 2 | 2 | 8 | 549 | 40 + 50 + 50 + 250 + 150 | HYD_IBMV7K_13_78N2KDT_LUN_6_1200GB | D:\=50GB/50GB, E:\=50GB/50GB, G:\=236GB/250GB, I:\=75GB/75GB, C:\=14GB/40GB, J:\=75GB/75GB | v9 | PoweredOn | Microsoft Windows Server 2008 R2 (64-bit) | 10.50.67.13 | 10.50.37.38 | vm | 00:50:56:8e:61:f8 | [HYD_IBMV7K_13_78N2KDT_LUN_6_1200GB] HYDIPRJETP3T1/HYDIPRJETP3T1.vmx | toolsOk | 9221 | guestToolsCurrent | guestToolsRunning | HYD DC | 1=Vmxnet3 | 10.50.56.1-254_V344 | /// |