Hello,
Does anyone know if the objects of type NetworkAdapters and Clusters also have an UUID?
We can get the UUID for the objects below through PowerCLI but it doesn't look that they exist for the other two types of objects.
|
2. DataStore
|
3. Disk
|
4. Cluster
|
5. VMHost
|
6. NetworkAdapters
|
Best regards
There is an area of VMTN dedicated to PowerCLI, I've asked moderators to move your thread there - the {code} area is for SDK matters.
Thank you scott28tt.
I'm not sure if this is really a PowerCLI question.
All the properties you list are accessed via ExtensionData, and thus in the realm of the SDK imho.
In fact, the API Reference contains all that info.
On a side note, why would you need a UUID for a cluster or a network adapter (btw, do you mean a vNIC or a pNIC )?
The unique identifiers for objects in a vCenter are the MoRefs of these objects.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD,
Thank you for your answer.
We are looking for the UUIDs because we have various vCenters and the MoRefs are unique whitin each vCenter so we do have similar MoRefs when we merge all the data.
The idea is to use out of the box data if available without a manipulation/transformation of it.
The goal of all this is to consolidate our CMDB and a primary key is needed to sync the data.
Afik, there is no such unique identifier for a Cluster that stays unique across vCenters.
For the network adapter you didn't reply if that is for a vNIC or a pNIC.
In any case, you could consider the MAC address, which in theory should be unique, although I'm not sure if that holds true cross-vCenter for vNICs.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc,
Thank you for your answer and for your time.
Sorry about the NICs.
For now, we will only sync the vNic data.