Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Add-HpcGroup

Adds a specified list of one or more nodes to one or more specified node groups.

Syntax

Add-HpcGroup [-Scheduler <string>] -Id <int[]> -Node <HpcNode[]> [<CommonParameters>]

Add-HpcGroup [-Scheduler <string>] -Id <int[]> -NodeName <string[]> [<CommonParameters>]

Add-HpcGroup [-Scheduler <string>] -Node <HpcNode[]> [-Name] <string[]> [<CommonParameters>]

Add-HpcGroup [-Scheduler <string>] -NodeName <string[]> [-Name] <string[]> [<CommonParameters>]

Detailed Description

Adds a specified list of one or more nodes to one or more specified node groups. You can specify the node groups by name or by identifier. You can specify the nodes either by name or by using HpcNode objects that you get with the Get-HpcNode cmdlet.

Parameters

-Id <int[]>

Specifies a list of one or more node group identifiers for the node groups to which you want to add the nodes. You cannot specify both the Id and Name parameters.

 

Required?

true

Position?

named

Default Value

no default

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name <string[]>

Specifies a list of one or more names for the node groups to which you want to add the nodes. You cannot specify both the Name and Id parameters. The maximum length for the name of a node group is 64 characters.

 

Required?

true

Position?

1

Default Value

no default

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Node <HpcNode[]>

Specifies a list of one or more HpcNode objects for the nodes that you want to add to the node groups. Use the Get-HpcNode cmdlet to get HpcNode objects for the nodes. You cannot specify both the Node and NodeName parameters.

 

Required?

true

Position?

named

Default Value

no default

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-NodeName <string[]>

Specifies a list of one or more names for the nodes that you want to add to the node groups. You cannot specify both the NodeName and Node parameters.

 

Required?

true

Position?

named

Default Value

no default

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Scheduler <string>

Specifies the host name or IP address of the head node for the cluster that includes the node groups. 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

One or more HpcNode objects.

Return Type

None.

Notes

Use this cmdlet to add nodes to a node group after you create the node group by using the New-HpcGroup cmdlet.

Example 1

C:\PS>Add-HpcGroup -Name MyNodeGroup -NodeName ComputeNode1

Adds the node named ComputeNode1 to the node group named MyNodeGroup.

Example 2

C:\PS>Add-HpcGroup -Id 8 -NodeName ComputeNode2

Adds the node named ComputeNode2 to the node group with a node group identifier of 8.

Example 3

C:\PS>Get-HpcNode -Name ComputeNode3 | Add-HpcGroup -Name MyNodeGroup

Gets an HpcNode object for the node named ComputeNode3, then adds that node to the node group named MyNodeGroup.

Example 4

C:\PS>Add-HpcGroup -Name NodeGroup1,NodeGroup2 -NodeName ComputeNode4,ComputeNode5

Adds the nodes named ComputeNode4 and ComputeNode5 to the node groups named NodeGroup1 and NodeGroup2.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.