Set-HpcLogUploaderConfig

Sets the configuration of the LogUploaderAgent.

Syntax

Set-HpcLogUploaderConfig
   [-Enabled <Boolean>]
   [-ConnectionString <String>]
   [-ObserveLogs <String[]>]
   [-PaaSEtwTraceVerbose <Boolean>]
   [-ClusterConnectionString <String[]>]
   [-Scheduler <String[]>]
   [<CommonParameters>]

Description

The Set-HpcLogUploaderConfig cmdlet sets the configuration of the LogUploaderAgent.

Examples

Example 1: Enable LogUploaderAgent and upload HpcScheduler and HpcManagementCluster log

PS C:\>Set-HpcLogUploaderConfig -ConnectionString "MyConnectionString" -ObserveLogs "HpcScheduler, HpcManagementCluster" -Enabled $True

This command enables LogUploaderAgent for the connection string named MyConnectionString and uploads the observer longs for HpcScheduler and HpcManagmentCluster.

Example 2: Set LogUploaderAgent to upload all HPC Pack logs

PS C:\>Set-HpcLogUploaderConfig -ObserveLogs "All"

This command sets LogUploaderAgent to upload all HPC Pack logs.

Example 3: Disable LogUploaderAgent

PS C:\>Set-HpcLogUploaderConfig -Enabled $False

This command disables LogUploaderAgent.

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

-ConnectionString

Specifies the connection string used to connect to the HPC Pack Troubleshooting Service.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Enabled

Indicates whether the LogUploaderAgent is enabled in the HPC cluster.

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ObserveLogs

Specifies which log series the LogUploaderAgent observes and uploads. If the first log name is set as all, the agent attempts to observe all available HPC Pack logs.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PaaSEtwTraceVerbose

Indicates whether the LogUploaderAgent should set the Event Trace for Windows (ETW) trace level in PaaS nodes (worker role instances) to verbose.

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Scheduler

Specifies an array of host names or IP addresses of the head node for the cluster to which you add the node. 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

Inputs

None

Outputs

None