Set-SCLogicalSwitch
汇报逻辑交换机的属性。
语法
Set-SCLogicalSwitch
[-VirtualSwitchExtensions <VirtualSwitchExtension[]>]
[-Description <String>]
[-EnableSriov <Boolean>]
[-SwitchUplinkMode <SwitchUplinkMode>]
[-MinimumBandwidthMode <BandwidthMode>]
[-VMMServer <ServerConnection>]
[-LogicalSwitch] <LogicalSwitch>
[-Name <String>]
[-EnablePacketDirect <Boolean>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Set-SCLogicalSwitch
[-Description <String>]
[-EnableSriov <Boolean>]
[-SwitchUplinkMode <SwitchUplinkMode>]
[-MinimumBandwidthMode <BandwidthMode>]
[-VMMServer <ServerConnection>]
[-LogicalSwitch] <LogicalSwitch>
[-RemoveAllExtensions]
[-Name <String>]
[-EnablePacketDirect <Boolean>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
说明
Set-SCLogicalSwitch cmdlet 更新逻辑交换机的属性。
示例
示例 1:更改逻辑交换机的最小带宽模式
PS C:\> Get-SCLogicalSwitch -Name "LogicalSwitch01" | Set-SCLogicalSwitch -MinimumBandwidthMode "Weight"
此命令获取名为 LogicalSwitch01 的逻辑交换机对象,并使用管道运算符将对象传递给 Set-SCLogicalSwitch,该对象将逻辑交换机对象的最小带形切换模式更改为 Weight。
示例 2:从逻辑交换机中删除所有虚拟交换机扩展
PS C:\> Get-SCLogicalSwitch -Name "LogicalSwitch01" | Set-SCLogicalSwitch -RemoveAllExtensions
此命令获取名为 LogicalSwitch01 的逻辑交换机对象,并使用管道运算符将对象传递给 Set-SCLogicalSwitch,该对象从逻辑交换机对象中删除所有虚拟交换机扩展。
参数
-Description
为指定对象指定描述。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnablePacketDirect
指定 cmdlet 是否在交换机上启用数据包直通。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableSriov
指示是否启用了单根 I/O 虚拟化 (SR-IOV) 。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定跟踪和存储作业进度的变量。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogicalSwitch
指定逻辑交换机对象。
Type: | LogicalSwitch |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-MinimumBandwidthMode
指定逻辑交换机的最小带宽模式。 此参数的可接受值为:
- 默认
- 重量
- 绝对
- 无
Type: | BandwidthMode |
Accepted values: | Default, Weight, Absolute, None |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 Virtual Machine Manager (VMM) 对象的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定触发此操作的性能和资源优化 (PRO) 提示的 ID。 这允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveAllExtensions
指示从逻辑交换机中删除所有虚拟交换机扩展。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业以异步方式运行,以便控件立即返回到命令 shell。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SwitchUplinkMode
指定开关上行模式对象。
Type: | SwitchUplinkMode |
Accepted values: | NoTeam, Team, EmbeddedTeam |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualSwitchExtensions
指定虚拟交换机扩展对象的数组。
若要获取虚拟交换机扩展对象,请使用 Get-SCVirtualSwitchExtension cmdlet。
Type: | VirtualSwitchExtension[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
指定VMM 服务器对象。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |