Get-HpcOperationLog

Get-HpcOperationLog

Gets the log and substeps for the specified operation.

Syntax

Parameter Set: Default
Get-HpcOperationLog [-Operation] <HpcOperation> [-ClusterConnectionString <String[]> ] [-Scheduler <String[]> ] [-Severity <LogLevel[]> ] [ <CommonParameters>]




Detailed Description

The Get-HpcOperationLog cmdlet gets the log and substeps for the specified operation.

Parameters

-ClusterConnectionString<String[]>

Specifies an array of cluster connection strings for the cluster to which you want to add the device drivers. The value format is host1,host2,host3. If you do not specify the ClusterConnectionString parameter, this cmdlet uses the connection string on the head node that the CCP_CONNECTIONSTRING environment variable specifies. To set this environment variable, run the following cmdlet: Set-Content Env: CCP_CONNECTIONSTRING <head_node_name>.

This parameter was introduced in HPC Pack 2016.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Operation<HpcOperation>

Specifies an HpcOperation object for the operation for which you want to get the log. Use the Get-HpcOperation cmdlet to get an HpcOperation object for an operation.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-Scheduler<String[]>

Specifies the host name or IP address of the head node for the cluster on which the operation ran. 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

-Severity<LogLevel[]>

Specifies an array of severity levels of the events that you want to get. Use this parameter to retrieve error, warning, or informational messages from the log for the operation. Valid values are:

-- Error
-- Warning
-- Information


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

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

Inputs

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

  • HpcOperation

Outputs

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

  • ChangeLogEntry[]

Notes

  • You must be a cluster administrator to run this cmdlet successfully.

Examples

Example 1: Get events for the oldest available operation

This command gets the events in the event log for the oldest available operation for the HPC cluster.


PS C:\> (Get-HpcOperation)[0] | Get-HpcOperationLog

Example 2: Get events for multiple severity levels

This command gets the events with a severity level of Error or Warning from the event log for the last operation that was reverted.


PS C:\> Get-HpcOperation -State Reverted | Select-Object -Last 1 | Get-HpcOperationLog -Severity Error,Warning

Related topics

Community Additions

ADD
Show: