Add-HpcTest

Adds custom diagnostic tests to the set of diagnostic tests that administrators can run on the HPC cluster.

Syntax

Add-HpcTest
   [-File] <String>
   [-ClusterConnectionString <String[]>]
   [-Scheduler <String[]>]
   [<CommonParameters>]

Description

The Add-HpcTest cmdlet adds the custom diagnostic tests that the specified XML file defines to the set of diagnostic tests that administrators can run on the HPC cluster.

For information about creating custom diagnostic tests, see Diagnostics Extensibility in Windows HPC Server 2008 R2 Step-by-Step Guidehttp://go.microsoft.com/fwlink/?LinkId=177604 (http://go.microsoft.com/fwlink/?LinkId=177604).

Examples

Example 1: Add a diagnostic test

PS C:\>Add-HpcTest -File "C:\DiagnosticTest\CustomSuite1.xml"

This command adds the diagnostic tests defined in the XML file at C:\DiagnosticTest\CustomSuite1.xml to the set of diagnostic tests for the HPC cluster.

Required Parameters

-File

Specifies the name of the XML file that defines the diagnostic tests that you want to add to the cluster, including the relative or full path if the file is not in the current directory. The file name and path must be valid.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-ClusterConnectionString
Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Scheduler

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

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

HpcTest[]

Notes

  • You must be a cluster administrator to run this cmdlet successfully.
  • This cmdlet was introduced in HPC Pack 2008 R2. It is not supported in previous versions.