Share via


Get-HpcMetric

Gets metrics that HPC Cluster Manager uses in the heat maps for the nodes and the monitoring charts.

Syntax

Default (Default)

Get-HpcMetric
    [[-Name] <String[]>]
    [-MetricTargets <MetricTarget[]>]
    [-Type <String[]>]
    [-ClusterConnectionString <String[]>]
    [-Scheduler <String[]>]
    [<CommonParameters>]

Description

The Get-HpcMetric cmdlet gets the specified set of metrics that HPC Cluster Manager uses in the heat maps for the nodes and the monitoring charts. You can specify the metrics that you want to get by any combination of the names of the metrics, the locations where the metrics are generated, and the categories for the metrics. If you do not specify any names, locations, or categories, the Get-HpcMetric cmdlet gets all of the metrics for the HPC cluster.

Examples

Example 1: Get all metrics for the cluster

PS C:\>Get-HpcMetric

This command gets all of the metrics for the HPC cluster.

Example 2: Get metrics by name

PS C:\>Get-HpcMetric -Name "HpcCpuUsage,HpcDiskSpace"

This command gets the metrics named HpcCpuUsage and HpcDiskSpace.

Example 3: Get metrics by location and category

PS C:\>Get-HpcMetric -MetricTarget HeadNode,Cluster -Type "Performance"

This command gets the metrics in the performance categories that are generated on the head node or for the entire HPC cluster.

Parameters

-ClusterConnectionString

Specifies an array of cluster connection strings for the cluster to which you want to add the device drivers. The value format is host1,host2,host3. If you do not specify the ClusterConnectionString parameter, this cmdlet uses the connection string on the head node that the CCP_CONNECTIONSTRING environment variable specifies. To set this environment variable, run the following cmdlet: Set-Content Env: CCP_CONNECTIONSTRING \<head_node_name\>.

This parameter was introduced in HPC Pack 2016.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MetricTargets

Specify an array of metric targets. The acceptable values for this parameter are:

  • Cluster
  • HeadNode
  • ComputeNode
  • BrokerNode
  • WorkStationNode
  • AzureNode
  • AzureBatchPool

Parameter properties

Type:

MetricTarget[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies an array of names for the metrics that you want to get.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-Scheduler

Specifies the host name or IP address of the head node for the cluster that includes the metrics. The value must be a valid computer name or IP address. If you do not specify the Scheduler parameter, this cmdlet uses the scheduler on the head node that the CCP_SCHEDULER environment variable specifies. To set this environment variable, run the following cmdlet:

Set-Content Env:CCP_SCHEDULER \<head_node_name\>

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Type

Specifies an array of categories that include the metrics that you want to get. Valid values are: Performance, Calculated.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

HpcMetric

Outputs

HpcMetric

Notes

  • The Get-HpcMetric cmdlet only gets information or HpcMetrics objects for the metrics, and not the values of the metrics. To get the values for the metrics, use the Get-HpcMetricValue cmdlet.
  • You must be a cluster administrator to run this cmdlet successfully.