Debug-SlbDatapath

Collects logs from an SLB MUX and DIP host.

Syntax

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.

Type:Hashtable[]
Position:5
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Muxes

Specifies the MUXes that load balance the DIPs.

Type:Hashtable[]
Position:4
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-OperationId

Specifies an operation ID.

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

-PortNumber

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

Type:UInt16
Position:3
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SourceIP

Specifies the IP of the source node.

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

-TargetVIP

Specifies the IP of the VIP this operation tests.

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

-TraceFolderPath

Specifies the path of the trace log folder.

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

Inputs

None

Outputs

Object