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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

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

--list<br />

-l<br />

--speed <br />

<br />

-s <br />

esxcfg-rescan<br />

The esxcfg-rescan command rescans the storage configuration. In vSphere 5, equivalent ESXCLI commands<br />

are available.<br />

In addition, ESXCLI supports several other rescan command. Run esxcli storage core adapter rescan<br />

--help.<br />

esxcfg-vmknic<br />

network nic list<br />

network nic get<br />

<br />

network nic set<br />

--speed=<br />

Table 21. esxcfg-rescan Replacement <strong>Command</strong>s<br />

List <strong>in</strong><strong>for</strong>mation about all the network adapters. Use network nic<br />

get to list <strong>in</strong><strong>for</strong>mation about one specific adapter, <strong>for</strong><br />

example esxcli network nic get -n vmnic0<br />

Set the speed at which a given network adapter should run. Valid<br />

values <strong>for</strong> speed are 10, 100, 1000, or 10000.<br />

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

-a|--add storage core adapter rescan<br />

--type=add<br />

-d|--delete storage core adapter rescan<br />

--type=delete --adapter <br />

Scan <strong>for</strong> added devices.<br />

Scan remov<strong>in</strong>g dead devices<br />

-A|--all storage core adapter rescan Scan all adapters. By default, the command<br />

scans all adapters. You can specify <strong>in</strong>dividual<br />

adapters by us<strong>in</strong>g the --adapter option.<br />

-u|--update storage core adapter rescan<br />

--type=update --adapter <br />

Scan exist<strong>in</strong>g paths and update their state.<br />

The esxcfg-vmknic command adds, deletes, and modifies VMkernel network <strong>in</strong>terfaces. In vSphere 5,<br />

equivalent ESXCLI commands are available.<br />

Table 22. esxcfg-vmknic Replacement <strong>Command</strong>s<br />

esxcfg- option ESXCLI <strong>Command</strong> Description<br />

--add --ip<br />

--netmask <br />

<br />

network ip <strong>in</strong>terface add Add a VMkernel NIC to the system.<br />

When the command completes<br />

successfully, the newly added VMkernel<br />

NIC is enabled.<br />

--delete network ip <strong>in</strong>terface remove Remove a VMkernel NIC.<br />

--disable -D network ip <strong>in</strong>terface set<br />

--<strong>in</strong>terface-name=<br />

--enabled=[true|false]<br />

--dvs-name <br />

-s<br />

--dvport_id<br />

<br />

Not supported.<br />

Not supported.<br />

The ESXCLI command enables or disables<br />

the specified VMkernel NIC.

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

Saved successfully!

Ooh no, something went wrong!