Hi,
Is it possible to get the details for registered vcenter / host info from the VM's .vmx file?
Thanks
Afaik, that would require accessing the vCenter database.
And the schema for the vCenter databse is not public.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Just Checking, when we register a VM to a vCenter, it is writing any info about the vCenter/Host to .VMX file (like UUID)
Yes, afaik the vc.uuid is changed.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
So by looking a vmx file, we can't say whether it registered with a vCenter?
No, when you unregister a VM, the vc.uuid entry is not cleared or removed.
Only when it will be registered to a vCenter will the vc.uuid value be updated.
The only thing you can conclude from the vc.uuid is that the VM is or was registered to a vCenter.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference