Export (0) Print
Expand All

Import-HpcMetric

Applies To: Windows HPC Server 2008

Imports metrics from the specified XML file to create new metrics or overwrite existing metrics that HPC Cluster Manager uses in the heat maps for the nodes and the monitoring charts.

Syntax

Import-HpcMetric [-Reset] [-Scheduler <string>] [-Path] <string> [<CommonParameters>]

Detailed Description

Imports metrics from the specified XML file to create new metrics or overwrite existing metrics that HPC Cluster Manager uses in the heat maps for the nodes and the monitoring charts.

Parameters

-Path <string>

Specifies the file name of the XML file that contains the information about the metrics that you want to import, including the full or relative path to the file if the file is not in the current directory.

 

Required?

true

Position?

1

Default Value

no default

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

true

-Reset

Indicates the Import-HpcMetric cmdlet should replace the entire set of existing metrics with the metrics in the XML file from which you want to import metrics. After you import metrics by using the Reset parameter, the HPC cluster will have exactly the same set of metrics that the XML file defines. If you do not use the Reset parameter, the Import-HpcMetric cmdlet adds the new metrics in the XML file to the metrics that already exist for the HPC cluster, and updates the definition of any existing metrics that the XML file also contains.

 

Required?

false

Position?

named

Default Value

not applicable

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Scheduler <string>

Specifies the host name or IP address of the head node for the cluster to which you want to import 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>

 

Required?

false

Position?

named

Default Value

%CCP_SCHEDULER%

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

 

Input Type

None.

Return Type

None.

Notes

For information about the schema for the metrics XML file, see the Operations section (http://go.microsoft.com/fwlink/?LinkId=120726) of the Windows HPC Server 2008 Technical Library.

Example 1

C:\PS>Import-HpcMetric -Path C:\MyMetrics\MyCustomMetrics.xml

Imports metrics from the XML file located at C:\MyMetrics\MyCustomMetrics.xml and adds those metrics to the existing set of metrics for the HPC cluster. If the MyCustomMetrics.xml file contains any metrics that already exist, the Import-HpcMetric cmdlet updates those metrics based on the setting in the XML file.

Example 2

C:\PS>Import-HpcMetric -Path C:\MyMetrics\MyCustomMetricsSet.xml -Reset

Imports metrics from the XML file located at C:\MyMetrics\MyCustomMetricsSet.xml and replaces the entire existing set of metrics for the HPC cluster with the new set of metrics that the XML file contains.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft