none
Enable on the Wire compression for all DPM protection groups on a server with powershell RRS feed

  • Question

  • We need to enable on the wire compression for all protection groups on a server. Is it possible to do this is powershell?

     

    Thanks

    Steve

    Tuesday, August 2, 2011 5:14 AM

Answers

  • Set-PerformanceOptimization

     

    SYNOPSIS

    Enables setting or removing of on-wire compression of data.

     

    SYNTAX

    Set-PerformanceOptimization [-ProtectionGroup] <ProtectionGroup> -DisableCompression [-PassThru <SwitchParameter>] [<CommonParameters>]

     

    Set-PerformanceOptimization [-ProtectionGroup] <ProtectionGroup> -EnableCompression [-PassThru <SwitchParameter>] [<CommonParameters>]

     

    DETAILED DESCRIPTION

    The Set-PerformanceOptimization cmdlet enables setting or removing on-wire compression on a protection group.

     

    PARAMETERS

    -ProtectionGroup <ProtectionGroup>

    Name of a protection group.

     

    -DisableCompression

    Indicates that on-wire compression of data must be disabled.

     

    -EnableCompression

    Indicates that throttling must be enabled.

     

    -PassThru <SwitchParameter>

    The -PassThru parameter can be used with many commands in DPM to return a related object in cases where there is no default output. Using the PassThru parameter allows such cmdlets to be part of a pipeline.

     

    <CommonParameters>

    This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, type, "get-help about_commonparameters".

     

    EXAMPLE 1

     

    $pg = Get-ProtectionGroup -DPMServerName TestingServer

    $mpg = Get-ModifiableProtectionGroup -ProtectionGroup $pg

    Set-PerformanceOptimization -ProtectionGroup $mpg -EnableCompression

     

    This command enables on-wire compression of data for all data sources being protected in the given PG

     

    REMARKS

    For more information, type: "get-help Set-PerformanceOptimization -detailed".

    For technical information, type: "get-help Set-PerformanceOptimization -full".


    Travis
    Thursday, August 4, 2011 7:00 AM