Metric
Provides the Metric of the network in the cluster. The following table summarizes the attributes of the Metric property.
Attribute | Value |
---|---|
Data type |
DWORD |
Access |
Read/write |
Structure |
CLUSPROP_DWORD |
Minimum |
1 |
Maximum |
0x0FFFFFFF |
Default |
100 |
Remarks
The Metric property is used by the cluster service to select the network path; the network path with the lowest sum of metrics will be used. If the Metric property is set to a value then the AutoMetric property is set to 0.
Examples
The property value portion of a property list entry for Metric can be set with the following example code:
DWORD MetricData = 50;
CLUSPROP_DWORD MetricValue;
MetricValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_DWORD;
MetricValue.cbLength = sizeof(DWORD);
MetricValue.dw = MetricData;
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Datacenter |