Set-ClusterLog

Set-ClusterLog

Set the size and level of detail for the cluster log.

Syntax

Set-ClusterLog [-InputObject <psobject>] [-Cluster <string>] [-Level <int>] [-Size <int>] [<CommonParameters>]
  • InputObject

  • Cluster

  • Level

  • Size

Detailed Description

The default level, 3, includes errors, warnings, and additional information.

Parameters

Cluster

Specifies the name of the cluster to run this cmdlet on. If you type "-Cluster ." or omit the parameter, the cmdlet runs on the local cluster.

Default Value: **

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

InputObject

Specifies the cluster to generate cluster logs from.

Default Value: **

Data Type: psobject

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

true (ByValue)

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Level

Specifies the log level to set for the cluster. The acceptable log levels are 0 to 5.

Default Value: **

Data Type: int

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Size

Specifies the log size to set for the cluster. The acceptable log size: 8-1024 MB.

Default Value: **

Data Type: int

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

Input Type

Microsoft.FailoverClusters.PowerShell.Cluster

Return Type

Microsoft.FailoverClusters.PowerShell.Cluster

Examples

-------------------------- EXAMPLE 1 --------------------------

Command Prompt: C:\PS>

 
Set-ClusterLog -Level 1 
 
Name 
---- 
cluster1

Description

-----------

This command sets the cluster log to level 1 of detail.

 

-------------------------- EXAMPLE 2 --------------------------

Command Prompt: C:\PS>

 
Set-ClusterLog -Size 1024 
 
Name 
---- 
cluster1

Description

-----------

This command sets the cluster log size to 1024MB.

See Also

Reference

Get-ClusterLog

Other Resources

Online version: