Get-HpcOperationLog
Gets the log and substeps for the specified operation.
Syntax
Get-HpcOperationLog
[-Operation] <HpcOperation>
[-Severity <LogLevel[]>]
[-ClusterConnectionString <String[]>]
[-Scheduler <String[]>]
[<CommonParameters>]
Description
The Get-HpcOperationLog cmdlet gets the log and substeps for the specified operation.
Examples
Example 1: Get events for the oldest available operation
PS C:\>(Get-HpcOperation)[0] | Get-HpcOperationLog
This command gets the events in the event log for the oldest available operation for the HPC cluster.
Example 2: Get events for multiple severity levels
PS C:\>Get-HpcOperation -State Reverted | Select-Object -Last 1 | Get-HpcOperationLog -Severity Error,Warning
This command gets the events with a severity level of Error or Warning from the event log for the last operation that was reverted.
Parameters
-ClusterConnectionString
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.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Operation
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.
Type: | HpcOperation |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Scheduler
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\>
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Severity
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
Type: | LogLevel[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
HpcOperation
Outputs
ChangeLogEntry[]
Notes
- You must be a cluster administrator to run this cmdlet successfully.