Get-HpcJobCredential

Get-HpcJobCredential

Gets the credentials for submitting jobs.

Syntax

Parameter Set: Default
Get-HpcJobCredential [-Scheduler <String> ] [ <CommonParameters>]

Detailed Description

Gets the certificate credentials for submitting jobs. Returns a list of HPC soft card certificates with their thumbprints and the dates for which they are valid. For most users, this list will have only one entry. If none exist, nothing is returned.

Parameters

-Scheduler<String>

Specifies the host name or IP address of the head node that contains the credentials. 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>

Aliases

none

Required?

false

Position?

named

Default Value

none

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

Inputs

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

Outputs

The output type is the type of the objects that the cmdlet emits.

Notes

  • This cmdlet was introduced in HPC Pack 2008 R2 with Service Pack 2 (SP2). It is not supported in previous versions.

Examples

Example 1

The following command retrieves a list of all certificates that are currently being used by the HPC Scheduler:

PS C:\>$list = Get-HpcJobCredential –Scheduler MYHEADNODE

New-HpcSoftCard

Set-HpcJobCredential