Export (0) Print
Expand All

Copy-HpcJobTemplate

Copies a job template.

Syntax

Copy-HpcJobTemplate [-Scheduler <string>] -Name <string> -NewName <string> [<CommonParameters>]

Detailed Description

Creates a new job template by copying an existing job template.

Parameters

-Name <string>

Specifies the name of the job the template that you want to copy. The maximum length for the name is 50 characters.

 

Required?

true

Position?

named

Default Value

no default

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-NewName <string>

Specifies the name to use for the new job template. The maximum length for the name is 50 characters. The name can be any alphanumeric string that is less than the maximum length except "default", which is reserved for the default template. The name can includes spaces. To specify a name that includes spaces, enclose the name in double quotation marks (").

You cannot use the Copy-HpcJobTemplate cmdlet to overwrite an existing job template, so an error occurs if you specify the name of an existing job template for the NewName parameter.

 

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 job templates. 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

To view the names of existing job templates that you might want to copy, run the Get-HpcJobTemplate cmdlet without specifying a value for the Name parameter. Only administrators on the head node can create new job templates.

Example 1

C:\PS>Copy-HpcJobTemplate -Name OriginalTemplate -NewName NewTemplate

Creates a new job template called NewTemplate by copying the existing OriginalTemplate job template.

See Also

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

Community Additions

ADD
Show:
© 2014 Microsoft