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.

Table 24. esxcfg-vswitch Replacement <strong>Command</strong>s (Cont<strong>in</strong>ued)<br />

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

--l<strong>in</strong>k | -L<br />

<br />

<br />

esxtop<br />

<strong>Command</strong>-L<strong>in</strong>e Management <strong>in</strong> vSphere 5 <strong>for</strong> Service Console Users<br />

The esxtop command is available and supported <strong>in</strong> the ESXi Shell. Search the vSphere Documentation Center,<br />

or see the vSphere Resource Management documentation.<br />

esxupdate<br />

network vswitch standard upl<strong>in</strong>k add<br />

--upl<strong>in</strong>k --vswitch<br />

Add an upl<strong>in</strong>k adapter (physical NIC) to<br />

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

with this option attaches a new unused<br />

physical network adapter to a virtual<br />

switch.<br />

--list | -l network vswitch standard list List all virtual switches and their port<br />

groups.<br />

--mtu | -m<br />

<br />

--pg | -p<br />

<br />

--set-cdp | -B<br />

<br />

[down | listen |<br />

advertise | both]<br />

--unl<strong>in</strong>k | -U<br />

<br />

<br />

--vlan | -v --pg<br />

<br />

network vswitch standard set<br />

--mtu=<br />

network vswitch standard portgroup set<br />

--vlan-id=<br />

network vswitch standard set<br />

--cpd-status=<br />

network vswitch standard upl<strong>in</strong>k remove<br />

--upl<strong>in</strong>k= --vswitch=<br />

network vswitch standard portgroup set<br />

--portgroup-name=<br />

--vlan-id=<br />

-X --set-maxactive network vswitch standard portgroup<br />

policy failover set<br />

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

Set the MTU (maximum transmission<br />

unit) of the virtual switch. This option<br />

affects all physical NICs assigned to the<br />

virtual switch.<br />

Provide the name of the port group <strong>for</strong><br />

the --vlan option. Specify ALL to set<br />

VLAN IDs on all port groups of a virtual<br />

switch.<br />

Set the CDP status <strong>for</strong> a given virtual<br />

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

To set, specify down, listen, advertise,<br />

or both.<br />

Remove an upl<strong>in</strong>k adapter from a virtual<br />

switch. An upl<strong>in</strong>k adapter corresponds<br />

to a physical Ethernet adapter to which<br />

the virtual switch is connected. If you<br />

remove the last upl<strong>in</strong>k adapter, you lose<br />

physical network connectivity <strong>for</strong> that<br />

switch.<br />

Set the VLAN ID <strong>for</strong> a specific port group<br />

of a virtual switch. Sett<strong>in</strong>g the option to 0<br />

disables the VLAN <strong>for</strong> this port group. If<br />

you specify this option, you must also<br />

specify the --portgroup option.<br />

Explicitly specify the maximum number<br />

of active upl<strong>in</strong>ks.<br />

At any time, there is one port group NIC<br />

array, and a correspond<strong>in</strong>g set of active<br />

upl<strong>in</strong>ks. For example, assume the<br />

portgroup nic array is [vmnic1, vmnic0,<br />

vmnic3, vmnic5, vmnic6, vmnic7] and<br />

active-upl<strong>in</strong>ks is set to three upl<strong>in</strong>ks<br />

(vmnic1, vmnic0, vmnic3), and the rest<br />

are standby upl<strong>in</strong>ks. If you set the active<br />

upl<strong>in</strong>ks with new set [vmnic3, vmnic5],<br />

those upl<strong>in</strong>ks override the old set. The<br />

NIC array changes to [vmnic3, vmnic5,<br />

vmnic6, vmnic7] and max-active<br />

becomes 2.<br />

The esxupdate command allows you to manage ESX 4.0 and later systems. Use the commands <strong>in</strong> the esxcli<br />

software namespace to <strong>in</strong>stall, update, remove, or display <strong>in</strong>dividual VIBs (software packages). Use<br />

commands <strong>in</strong> the esxcli software sources namespace to query depot contents <strong>for</strong> VIBs and image profiles.<br />

An image profile def<strong>in</strong>es an ESXi image and consists of VIBs.<br />

VMware, Inc. 29

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

Saved successfully!

Ooh no, something went wrong!