Not able to retrieve Hyper-V Cluster GUID
-
Friday, May 18, 2012 9:11 PM
Hi,
My goal is to catch a UniqueIdent for every part of my Hyper-V Cluster ( Cluster, Node, VM) ; so , I will be able to retrieve them in my records,
even if their names change for example.No problem to get the VM GUID with :
Get-WMIObject -Class Msvm_ComputerSystem -Namespace "root\virtualization"Let's talk about the node :
I'm trying to retrieve the GUID of a cluster node (info similar to VM GUID); so, I run the following command :
Get-WmiObject -Namespace "root\MSCluster" -class "MSCluster_Node" which gives me this result:__GENUS : 2
__CLASS : MSCluster_Node
__SUPERCLASS : CIM_UnitaryComputerSystem
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : MSCluster_Node.Name="H1"
__PROPERTY_COUNT : 30
__DERIVATION : {CIM_UnitaryComputerSystem, CIM_ComputerSystem, CIM_System, CIM_LogicalElement...}
__SERVER : H1
__NAMESPACE : root\MSCluster
__PATH : \\H1\root\MSCluster:MSCluster_Node.Name="H1"
BuildNumber : 7601
Caption :
Characteristics : 0
CreationClassName :
CSDVersion : Service Pack 1
Dedicated :
Description :
Flags : 0
IdentifyingDescriptions :
InitialLoadInfo :
InstallDate :
LastLoadInfo :
MajorVersion : 6
MinorVersion : 1
Name : H1
NameFormat :
NodeHighestVersion : 400817
NodeInstanceID : 00000000-0000-0000-0000-000000000001
NodeLowestVersion : 400817
OtherIdentifyingInfo :
PowerManagementCapabilities :
PowerManagementSupported :
PowerState :
PrimaryOwnerContact :
PrimaryOwnerName :
PrivateProperties : System.Management.ManagementBaseObject
ResetCapability :
Roles :
State : 0
Status :
__GENUS : 2
__CLASS : MSCluster_Node
__SUPERCLASS : CIM_UnitaryComputerSystem
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : MSCluster_Node.Name="H2"
__PROPERTY_COUNT : 30
__DERIVATION : {CIM_UnitaryComputerSystem, CIM_ComputerSystem, CIM_System, CIM_LogicalElement...}
__SERVER : H1
__NAMESPACE : root\MSCluster
__PATH : \\H1\root\MSCluster:MSCluster_Node.Name="H2"
BuildNumber : 7601
Caption :
Characteristics : 0
CreationClassName :
CSDVersion : Service Pack 1
Dedicated :
Description :
Flags : 0
IdentifyingDescriptions :
InitialLoadInfo :
InstallDate :
LastLoadInfo :
MajorVersion : 6
MinorVersion : 1
Name : H2
NameFormat :
NodeHighestVersion : 400817
NodeInstanceID : 00000000-0000-0000-0000-000000000002
NodeLowestVersion : 400817
OtherIdentifyingInfo :
PowerManagementCapabilities :
PowerManagementSupported :
PowerState :
PrimaryOwnerContact :
PrimaryOwnerName :
PrivateProperties : System.Management.ManagementBaseObject
ResetCapability :
Roles :
State : 0
Status :
I'm disappointed cos I hope to get for Name and NameFormat something else buult with an heuristic as described in MSCLUSTER_Node class description :
Name
Data type: string
Access type: Read-only
Defines the label by which the node is known.
Inherited from CIM_UnitaryComputerSystem.
NameFormat
Data type: string
Access type: Read-onlyIdentifies how the node Name property is generated, using a heuristic. This property identifies how the system name was generated by using the subclass heuristic. The heuristic is outlined in the CIM V2 Common Model specification and assumes that the documented rules are traversed to determine and assign a name. The NameFormat values list defines the precedence order for assigning the system name with several rules mapping to the same value.
Inherited from CIM_UnitaryComputerSystem.
......
Did I misunderstand something ?Is this node GUID located elsewhere in the WMI space ?
BTW, where may I find same GUID for the cluster itself ?
Thanks for help.
Regards,
J.P. Ribeauville
All Replies
-
Friday, May 18, 2012 10:47 PM
MSCluster_Cluster.Name
http://msdn.microsoft.com/en-us/library/windows/desktop/aa371422(v=vs.85).aspx
¯\_(ツ)_/¯
-
Saturday, May 19, 2012 8:43 PM
Hi,
Thx for info.
I"ll check that tomorrow and see what's contents of Name properties of the MSCluster_Cluster Class ( hope it's not simply the name ...).
Any hint for HyperV node GUID retrieving ?
Regards,
J.P.
-
Saturday, May 19, 2012 10:07 PM
Pay attention to the ExtraInfo fields.
¯\_(ツ)_/¯
-
Sunday, May 20, 2012 12:47 PM
Hi,
Thnaks for prompt help.
Let's focus on Cluster GUID stuff.
Here is the result of "Get-WmiObject -namespace "root\MSCluster" -class "MSCluster_Cluster" command:How may I access to these ExtraInfo fields ?
__GENUS : 2Regards,
J.P. Ribeauville
__CLASS : MSCluster_Cluster
__SUPERCLASS : CIM_Cluster
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : MSCluster_Cluster.Name="HV-CLUSTER"
__PROPERTY_COUNT : 64
__DERIVATION : {CIM_Cluster, CIM_ComputerSystem, CIM_System, CIM_LogicalElement...}
__SERVER : H1
__NAMESPACE : root\MSCluster
__PATH : \\H1\root\MSCluster:MSCluster_Cluster.Name="HV-CLUSTER"
AddEvictDelay : 60
AdminExtensions :
BackupInProgress : 0
Caption :
ClusSvcHangTimeout : 60
ClusSvcRegroupOpeningTimeout : 5
ClusSvcRegroupPruningTimeout : 5
ClusSvcRegroupStageTimeout : 7
ClusSvcRegroupTickInMilliseconds : 300
ClusterGroupWaitDelay : 30
ClusterLogLevel : 3
ClusterLogSize : 100
CreationClassName :
CrossSubnetDelay : 1000
CrossSubnetThreshold : 5
Dedicated :
DefaultNetworkRole : 2
Description :
DisableGroupPreferredOwnerRandomization :
EnableSharedVolumes : 1
FixQuorum : 0
GroupAdminExtensions :
HangRecoveryAction : 3
IdentifyingDescriptions :
IgnorePersistentStateOnStartup : 0
InstallDate :
LogResourceControls : 0
MaintenanceFile :
MaxNumberOfNodes : 16
Name : HV-CLUSTER
NameFormat :
NetworkAdminExtensions :
NetworkInterfaceAdminExtensions :
NetworkPriorities :
NodeAdminExtensions :
OtherIdentifyingInfo :
PlumbAllCrossSubnetRoutes : 0
PrimaryOwnerContact :
PrimaryOwnerName :
PrivateProperties : System.Management.ManagementBaseObject
QuorumArbitrationTimeMax : 20
QuorumArbitrationTimeMin :
QuorumLogFileSize :
QuorumPath : \\?\Volume{77cbb8b6-7c76-4b66-b781-15d9d4504444}\Cluster\
QuorumType : Node and Disk Majority
QuorumTypeValue : 3
RequestReplyTimeout : 60
ResourceAdminExtensions :
ResourceDllDeadlockPeriod :
ResourceTypeAdminExtensions :
Roles :
RootMemoryReserved : 512
SameSubnetDelay : 1000
SameSubnetThreshold : 5
Security :
Security_Descriptor : {1, 0, 4, 128...}
SecurityLevel : 1
SharedVolumeCompatibleFilters : {}
SharedVolumeIncompatibleFilters : {}
SharedVolumesRoot : C:\ClusterStorage
ShutdownTimeoutInMinutes : 24
Status :
WitnessDatabaseWriteTimeout : 300
WitnessRestartInterval : 15
-
Sunday, May 20, 2012 1:18 PM
Hi,
Are these ExtraInfos related to IdentifyingDescriptions and OtherIdentifyingInfo properties ?
Cos the OtherIdentifyingInfo property description :
...
Captures additional data, beyond system name information, that can be used to identify a cluster.
...
is exactly what I want to get.Either my WMI request is not appropriate to get it or these properties are empy ...
Regards,J.P.
-
Sunday, May 20, 2012 4:08 PM
There is no way to get the GUIDs directly from what I can see.
Look at:
QuorumPath: \\?\Volume{77cbb8b6-7c76-4b66-b781-15d9d4504444}\Cluster\
That should be the GUID for the cluster volume.
It would be easier to parse the Cluster command output for GUIDs althjough I do not think the GUIDs are easily usable.
¯\_(ツ)_/¯
- Proposed As Answer by Richard MuellerMVP, Moderator Sunday, May 27, 2012 1:31 AM
- Marked As Answer by Richard MuellerMVP, Moderator Tuesday, May 29, 2012 5:46 PM
-
Monday, May 21, 2012 8:13 PM
Hi,
I"ll check if I may take this QuorumPath as GUID .
Thanks.Regarding Hypervisor itself (I mean the node), I don't find anything that may be used as GUID
(neither in MSCluster class nor in MsvmComputer class) despite what tells documentation :.....
- Name
- Data type: string
- Access type: Read-only
The label by which the object is known. This property is inherited from CIM_System and it is set to "GUID".
...
It's true for VM but seems to be false for Hypervisor.
Thanks for help.
J.P.
-
Tuesday, May 29, 2012 5:46 PMModerator
As there has been no activity in this thread for a few days, we assume the issue is resolved. We will mark it as "answered" to assist others in similar situations. If you disagree, please reply with further information. You can unmark the answer if you wish. If a reply helped answer your question, please mark it as the answer.
Richard Mueller - MVP Directory Services
- Marked As Answer by ribeauville Thursday, May 31, 2012 7:50 PM

