Set-LXCASwitchPort

This cmdlet enables or disables ports on a managed RackSwitch or Flex System switch.

Note: You cannot pipe objects to this cmdlet.

Syntax

Set-LXCASwitchPort [-Connection LXCAConnection]
                    -Action String
                    -Port String[]
                    -Uuid String
                   [CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-Action String

Specifies whether to enable or disable the specified ports. This can be of the following values:

  • enable

  • disable

To determine the current state of the port, use the Get-LXCARackSwitch cmdlet.

-Port String[]
Specifies the name of one or more ports. To obtain the port names, use the Get-LXCARackSwitch cmdlet.
-Uuid String
Specifies the UUID a managed RackSwitch or Flex System switch that contains the ports to be changed.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

This cmdlet modifies the port state. No object is returned.

Examples

Related links