18.08.2013 Views

Command-line management in vsphere 5.0 for service console users

Command-line management in vsphere 5.0 for service console users

Command-line management in vsphere 5.0 for service console users

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

esxcfg-vswitch<br />

The esxcfg-vswitch command manages virtual switches. In vSphere 5, equivalent ESXCLI commands are<br />

available.<br />

Table 24. esxcfg-vswitch Replacement <strong>Command</strong>s<br />

esxcfg-vswitch Option ESXCLI <strong>Command</strong> Description<br />

--add | -a<br />

<br />

--add-pg | -A<br />

<br />

<br />

--add-dvp-upl<strong>in</strong>k |<br />

-P<br />

--add-pg-upl<strong>in</strong>k |<br />

-M<br />

--check | -c<br />

<br />

--check-pg | -C<br />

<br />

<br />

--delete | -d<br />

<br />

--del-pg | -D<br />

<br />

<br />

--del-dvp-upl<strong>in</strong>k |<br />

-Q <br />

--dvp <br />

<br />

--del-pg-upl<strong>in</strong>k |<br />

-N <br />

<br />

<br />

network vswitch standard add Add a new virtual switch.<br />

network vswitch standard portgroup add<br />

portgroup-name=<br />

vswitch-name=<br />

Add a port group to the specified virtual<br />

switch.<br />

Not supported. Add an upl<strong>in</strong>k adapter to a distributed<br />

virtual port (DVP).<br />

esxcli network vswitch standard<br />

portgroup policy failover set<br />

--active-upl<strong>in</strong>ks=vmnic1,vmnic6,vm<strong>in</strong>ic7<br />

Update the list of active upl<strong>in</strong>ks <strong>for</strong> the<br />

port group. This command fails silently<br />

if the upl<strong>in</strong>k adapter does not exist.<br />

network vswitch standard list Check whether a virtual switch exists.<br />

Pr<strong>in</strong>t 1 if the switch exists and pr<strong>in</strong>t 0<br />

otherwise. Use the virtual switch name,<br />

e.g. vSwitch0 or vSwitch1, to specify the<br />

virtual switch.<br />

network vswitch standard portgroup list Check whether the specified port group<br />

exists or not.<br />

network vswitch standard remove<br />

--vswitch-name=<br />

network vswitch standard portgroup<br />

remove --vswitch-name=<br />

--portgroup-name=<br />

ESXCLI does not support distributed switches.<br />

Use the vSphere Client to configure distributed<br />

switches.<br />

network vswitch standard portgroup<br />

policy failover set<br />

--active-upl<strong>in</strong>ks=vmnic1,vmnic6,vm<strong>in</strong>ic7<br />

--dvp | -V ESXCLI does not support distributed switches.<br />

Use the vSphere Client to configure distributed<br />

switches.<br />

--get-cdp | -b<br />

<br />

network vswitch standard list <strong>in</strong>cludes<br />

CDP <strong>in</strong><strong>for</strong>mation.<br />

Remove a virtual switch. Runn<strong>in</strong>g the<br />

command with this option fails if any<br />

ports on the virtual switch are <strong>in</strong> use by<br />

VMkernel networks or virtual mach<strong>in</strong>es.<br />

Remove a port group from the virtual<br />

switch. Runn<strong>in</strong>g the command with this<br />

option fails if the port group is <strong>in</strong> use, <strong>for</strong><br />

example, by a virtual mach<strong>in</strong>e or a<br />

VMkernel network.<br />

Update the list of active upl<strong>in</strong>ks <strong>for</strong> the<br />

port group.<br />

Pr<strong>in</strong>t the current CDP (Cisco Discovery<br />

Protocol) sett<strong>in</strong>g <strong>for</strong> this virtual switch<br />

(valid <strong>for</strong> vSphere 4.0 and later).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!