The dpmvc-virtualswitch command lets you manage virtual switches.
The command has the following formats:
dpmvc-virtualswitch {-vs_add | -vs_update} -vc_server vcservername -esx_host_name esxhostname -switch_name switchname -nic_names nicname1 [,nicname2, ...]
dpmvc-virtualswitch -vs_remove -vc_server vcservername -esx_host_name esxhostname -switch_name switchname
dpmvc-virtualswitch -add_portgroup -vc_server vcservername -esx_host_name esxhostname -switch_name switchname -portgroup_name portgroupname [-vlan vlanID]
dpmvc-virtualswitch -update_portgroup -vc_server vcservername -esx_host_name esxhostname -switch_name switchname -portgroup_name portgroupname [-portgroup_newname portgroupnewname] [-vlan vlanID]
dpmvc-virtualswitch -remove_portgroup -vc_server vcservername -esx_host_name esxhostname -portgroup_name portgroupname [-vlan vlanID]
dpmvc-virtualswitch -rename_portgroup -vc_server vcservername -esx_host_name esxhostname -switch_name switchname -portgroup_name portgroupname -portgroup_newname portgroupnewname
Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.
Specifies the name of the ESX server that hosts a VM.
Specifies the switch name to perform the operation on.
Specifies a list of physical NICs seperated by a comma. If you specify multiple NICs, use double quotes to escape the argument, for example: "sc1,nfs1,mnic1,mnic2".
Specifies the port group name.
Specifies the new port group name.
(Optional) Specifies an Integer value (vlan ID) used for the virtual portgroup operations.
Example
This example creates a new virtual switch.
dpmvc-virtualswitch -vs_add -vc_server vc5master -esx_host_name esx5 -switch_name switch1 -nic_names "sc1,nfs1,mnic1,mnic2"
Copyright © 2013 CA. All rights reserved. |
|