< Back

Copy-UxTransformationTables

Sat Jan 18, 2020 7:52 pm

NAME Copy-UxTransformationTables



SYNOPSIS

This Cmdlet will take a list of transformation tables from one SBC and Copy them to another





SYNTAX

Copy-UxTransformationTables [-SourceSession] <PSObject> [-DestinationSession] <PSObject> [[-TableID] <Int32>]

[[-Enabled]] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Copying data from one SBC to another is tedious work, this cmdlet will take a list of transformation tables and

will build them

on the destination SBC. To ensure we prevent unitntended results the rules will be disabled unless the -enabled

switch is used.



The cmdlet will enumerate through the entries unless you use the -confirm:$false parameter



Unless specified all entries will be marked as disabled when moved to other SBC. We will also update the

description on the destination

SBC with a small tag which shows what the order they were in on the source AND the enabled status at time of

copying.





PARAMETERS

-SourceSession <PSObject>

This is the source session where you want to copy the rules from



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DestinationSession <PSObject>

This is the destination session See help how to create a session variable



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-TableID <Int32>

If using multiple servers you will need to pass the uxSession Object created by connect-uxGateway

Else it will look for the last created session using the command above



Required? false

Position? 3

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Enabled [<SwitchParameter>]

If using multiple servers you will need to pass the uxSession Object created by connect-uxGateway

Else it will look for the last created session using the command above



Required? false

Position? 4

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



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



PS C:\\>$SourceCreds = Get-Credential



PS:> $DestinationCreds = Get-Credential



PS:> $SourceGateWay = Connect-uxGateway -uxhostname 192.168.1.51 -credentials $SourceCreds



PS:> $DestinationGateway = Connect-uxGateway -uxhostname 192.168.1.52 -credentials $DestinationCreds



PS:> Copy-UxTransformationTables -SourceSession $SourceGateWay -DestinationSession $DestinationGateway





This example is a basic copy all entries.











RELATED LINKS