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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Command</strong>-L<strong>in</strong>e Management <strong>in</strong> vSphere 5 <strong>for</strong> Service Console Users<br />
On ESXi 5, ifconfig <strong>in</strong><strong>for</strong>mation is the <strong>in</strong><strong>for</strong>mation <strong>for</strong> the VMkernel NIC that attaches to the Management<br />
Network port group. You can retrieve that <strong>in</strong><strong>for</strong>mation by us<strong>in</strong>g ESXCLI commands.<br />
esxcli network ip <strong>in</strong>terface list<br />
esxcli network ip <strong>in</strong>terface ipv4 get -n vmk<br />
esxcli network ip <strong>in</strong>terface ipv6 get -n vmk<br />
esxcli network ip <strong>in</strong>terface ipv6 address list<br />
You can retrieve <strong>in</strong><strong>for</strong>mation about DNS with the esxcli network ip dns command <strong>in</strong> the follow<strong>in</strong>g two<br />
namespaces:<br />
esxcli network ip dns search<br />
esxcli network ip dns server<br />
For <strong>in</strong><strong>for</strong>mation correspond<strong>in</strong>g to the L<strong>in</strong>ux netstat command, use the follow<strong>in</strong>g ESXCLI command.<br />
esxcli network ip connection list<br />
Add<strong>in</strong>g Third-Party Extensions to Hosts<br />
The process of add<strong>in</strong>g patches is simplified <strong>in</strong> ESXi 5. All patches and third-party extensions can be made<br />
available as VIB packages. When a VMware partner releases a third-party extension as a VIB package, the<br />
partner can make the package available as a ZIP depot (off<strong>l<strong>in</strong>e</strong> depot).<br />
1 Download the ZIP depot to your ESXi system but do not unpack it.<br />
2 Run esxcli software vib to add the package to your system.<br />
3 Reboot your ESXi system<br />
Reboot is always recommended. Some patches do not require reboot.<br />
The VIB system refreshes the host daemon after you reboot your system. If the VIB requires an exception to<br />
the firewall rules, reboot<strong>in</strong>g also updates the firewall ruleset.<br />
You can <strong>in</strong>stead use a firewall configuration file to specify port rules <strong>for</strong> host <strong>service</strong>s you want to enable <strong>for</strong><br />
the extension.<br />
vSphere Security documentation discusses how to add, apply, and refresh a firewall rule set and lists the esxcli<br />
network firewall commands. The ESXi 5 ruleset.xml <strong>for</strong>mat is the same as <strong>in</strong> ESX/ESXi 4.x, but has two<br />
additional tags, enabled and required. The firewall on ESXi <strong>5.0</strong> and on ESXi 5.1 still supports the old <strong>for</strong>mat.<br />
vSphere Upgrade documentation discusses us<strong>in</strong>g esxcli software sources and esxcli software vib to<br />
explore and <strong>in</strong>stall patches and extensions.<br />
In some situations, you might use vSphere Update Manager <strong>in</strong>stead of the esxcli command to <strong>in</strong>stall<br />
third-party extensions. The extension vendor provides <strong>in</strong><strong>for</strong>mation on the <strong>in</strong>stall or upgrade process.<br />
Reference to Replacements <strong>for</strong> Service Console <strong>Command</strong>s<br />
Table 4 lists common ESX/ESXi 4.x <strong>service</strong> <strong>console</strong> commands and correspond<strong>in</strong>g ESXi 5 shell commands.<br />
IMPORTANT This document does not present a complete list of ESXCLI commands. The focus is on replac<strong>in</strong>g<br />
exist<strong>in</strong>g <strong>service</strong> <strong>console</strong> commands. See the vSphere <strong>Command</strong>‐L<strong>in</strong>e Interface Reference <strong>for</strong> a complete list of<br />
commands.<br />
The l<strong>in</strong>ks <strong>in</strong> the <strong>Command</strong> column of the table po<strong>in</strong>t to more detailed <strong>in</strong><strong>for</strong>mation <strong>for</strong> each command, with<br />
correspond<strong>in</strong>g ESXCLI commands <strong>for</strong> each option where available. Click the l<strong>in</strong>k <strong>in</strong> the More In<strong>for</strong>mation<br />
column <strong>for</strong> a table with detailed <strong>in</strong><strong>for</strong>mation about that command.<br />
VMware, Inc. 14