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

Get-HpcOperationLog

Gets the log and substeps for the specified operation.

Syntax

Get-HpcOperationLog [-Scheduler <string>] [-Severity <LogLevel[]>] -Operation <HpcOperation> [<CommonParameters>]

Detailed Description

Gets the log and substeps for the specified operation.

Parameters

-Operation <HpcOperation>

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

 

Required?

true

Position?

named

Default Value

no default

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>

 

Required?

false

Position?

named

Default Value

%CCP_SCHEDULER%

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Severity <LogLevel[]>

Specifies a list of one or more 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. The valid severity values are Error, Warning, and Information.

 

Required?

false

Position?

named

Default Value

Error,Warning,Information

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

An HpcOperation object.

Return Type

One or more ChangeLogEntry objects.

Example 1

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

Gets the events in the event log for the oldest available operation for the HPC cluster.

Example 2

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

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

See Also

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.