< Back
Set-ArubaSWSTPPort
Post
NAME Set-ArubaSWSTPPort
SYNOPSIS
Set spanning-tree configuration per port on ArubaOS Switch.
SYNTAX
Set-ArubaSWSTPPort -port <String> [-priority <Int32>] [-admin_edge] [-bpdu_protection] [-bpdu_filter]
[-root_guard] [-connection <PSObject>] [<CommonParameters>]
Set-ArubaSWSTPPort [-port_stp] <PSObject> [-priority <Int32>] [-admin_edge] [-bpdu_protection] [-bpdu_filter]
[-root_guard] [-connection <PSObject>] [<CommonParameters>]
DESCRIPTION
Set spanning-tree configuration per port.
PARAMETERS
-port <String>
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-port_stp <PSObject>
ValidateScript({ ValidateSTPPort $_ })]
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-priority <Int32>
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-admin_edge [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-bpdu_protection [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-bpdu_filter [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-root_guard [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-connection <PSObject>
Required? false
Position? named
Default value $DefaultArubaSWConnection
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:\\>$stp_port = Get-ArubaSWSTPPort -port 5
PS C:\\>$stp_port | Set-ArubaSWSTPPort -priority 4 -admin_edge:$false -bpdu_protection -bpdu_filter -root_guard
Configure the port 5 and set the priority 4, disable admin edge, and enable bpdu protection, bpdu filter and root
guard.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-ArubaSWSTPPort -port 4 -priority 6 -admin_edge -bpdu_protection:$false -bpdu_filter:$false
-root_guard:$false
Configure the port 4 and set the priority 6, enable admin edge, and disable bpdu protection, bpdu filter and root
guard.
RELATED LINKS
SYNOPSIS
Set spanning-tree configuration per port on ArubaOS Switch.
SYNTAX
Set-ArubaSWSTPPort -port <String> [-priority <Int32>] [-admin_edge] [-bpdu_protection] [-bpdu_filter]
[-root_guard] [-connection <PSObject>] [<CommonParameters>]
Set-ArubaSWSTPPort [-port_stp] <PSObject> [-priority <Int32>] [-admin_edge] [-bpdu_protection] [-bpdu_filter]
[-root_guard] [-connection <PSObject>] [<CommonParameters>]
DESCRIPTION
Set spanning-tree configuration per port.
PARAMETERS
-port <String>
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-port_stp <PSObject>
ValidateScript({ ValidateSTPPort $_ })]
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-priority <Int32>
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-admin_edge [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-bpdu_protection [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-bpdu_filter [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-root_guard [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-connection <PSObject>
Required? false
Position? named
Default value $DefaultArubaSWConnection
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:\\>$stp_port = Get-ArubaSWSTPPort -port 5
PS C:\\>$stp_port | Set-ArubaSWSTPPort -priority 4 -admin_edge:$false -bpdu_protection -bpdu_filter -root_guard
Configure the port 5 and set the priority 4, disable admin edge, and enable bpdu protection, bpdu filter and root
guard.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-ArubaSWSTPPort -port 4 -priority 6 -admin_edge -bpdu_protection:$false -bpdu_filter:$false
-root_guard:$false
Configure the port 4 and set the priority 6, enable admin edge, and disable bpdu protection, bpdu filter and root
guard.
RELATED LINKS