Edit

Share via


Debug-SlbDatapath

Collects logs from an SLB MUX and DIP host.

Syntax

Default (Default)

Debug-SlbDatapath
    [[-OperationId] <String>]
    [-SourceIP] <String>
    [-TargetVIP] <String>
    [-PortNumber] <UInt16>
    [-Muxes] <Hashtable[]>
    [-Dips] <Hashtable[]>
    [[-TraceFolderPath] <String>]
    [<CommonParameters>]

Description

The Debug-SlbDatapath cmdlet collects logs from the Software Load Balancing (SLB) Multiplexer (MUX) and dynamic IP address (DIP) host traversed by packets in the specified flow.

Examples

Example 1: Get MUX and DIP host logs

PS C:\> for ($mux in $VipHostMapping.MuxList) {
    $secpasswd = ConvertTo-SecureString <plaintext password> -AsPlainText -Force
    $creds = New-Object System.Management.Automation.PSCredential (<username>, $secpasswd)
    $mux.Credentials = $creds
}
PS C:\> for ($dip in $VipHostMapping.DIPHosts) {
    $secpasswd = ConvertTo-SecureString <plaintext password> -AsPlainText -Force
    $creds = New-Object System.Management.Automation.PSCredential (<username>, $secpasswd)
    $dip.HostInfo.Credentials = $creds
}
PS C:\> $out = Debug-SlbDatapath -OperationId "1" -SourceIP "10.123.176.108" -TargetVIP "10.123.177.110" -PortNumber 445 -Muxes $VipHostMapping.MuxList -Dips $VipHostMapping.DIPHosts

The first command creates a PSCredential object containing MUX credentials, and then stores it in the $mux.Credentials variable.

The second command creates a PSCredential object containing DIP host credentials, and then stores it in the $dip.HostInfo.Credentials variable.

The third command runs test traffic targeting the specified VIP endpoint from the specified source IP address. You can use the command $out | Format-Custom to display the paths of the MUX and DIP logs that were collected.

Parameters

-Dips

Specifies the DIPs that implement the virtual IP address (VIP) endpoint under test.

Parameter properties

Type:

Hashtable[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:5
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Muxes

Specifies the MUXes that load balance the DIPs.

Parameter properties

Type:

Hashtable[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:4
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OperationId

Specifies an operation ID.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PortNumber

Specifies the port number of the VIP endpoint this operation tests.

Parameter properties

Type:UInt16
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:3
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SourceIP

Specifies the IP of the source node.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TargetVIP

Specifies the IP of the VIP this operation tests.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TraceFolderPath

Specifies the path of the trace log folder.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:6
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

Object