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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Command</strong>-L<strong>in</strong>e Management <strong>in</strong> vSphere 5 <strong>for</strong> Service Console Users<br />
Many commands have options. Use an equal sign or a space between the option and the option value.<br />
esxcli storage nfs add --host= --share= --volume=<br />
esxcli storage nfs add --host --share --volume <br />
IMPORTANT For a complete list of ESXCLI commands, see the vSphere <strong>Command</strong>‐L<strong>in</strong>e Interface Reference. The<br />
vSphere <strong>Command</strong>‐L<strong>in</strong>e Interface Concepts and Examples document illustrates how to per<strong>for</strong>m common tasks with<br />
ESXCLI or vicfg- commands.<br />
Shell <strong>Command</strong>s<br />
In contrast to VMware ESX, VMware ESXi does not <strong>in</strong>clude a <strong>console</strong> OS with a large set of shell commands<br />
and other software. However, a small set of shell commands is available <strong>in</strong> the ESXi Shell.<br />
IMPORTANT The commands are not tested or supported by VMware. Use VMware commands such as<br />
ESXCLI, vicfg- commands, and so on, <strong>in</strong>stead.<br />
You can see a list of commands <strong>in</strong> /usr/b<strong>in</strong>. When you list the commands with ls -al, notice that several of<br />
the utilities are redirected to commands appropriate <strong>in</strong> the vSphere environment. The follow<strong>in</strong>g commands<br />
produce different results than typical shell commands.<br />
Several commands are redirected to vmkvsitools.<br />
IMPORTANT vmkvsitools is <strong>in</strong>tended <strong>for</strong> use with VMware Technical Support. Do not use<br />
vmkvsitools to manage your system.<br />
P<strong>in</strong>g commands are redirected to vmkp<strong>in</strong>g.<br />
Some additional commands are available <strong>in</strong> the ESXi Shell <strong>for</strong> certa<strong>in</strong> troubleshoot<strong>in</strong>g tasks. Use these<br />
commands when <strong>in</strong>structed by a VMware Knowledge Base article or VMware Technical Support staff.<br />
User <strong>management</strong> commands are deprecated.<br />
Go to /usr/b<strong>in</strong> and run ls -a to see a complete list.<br />
Replac<strong>in</strong>g Agents<br />
With ESX 4.x, <strong>management</strong> agents and hardware monitor<strong>in</strong>g and <strong>management</strong> agents run <strong>in</strong> the <strong>service</strong><br />
<strong>console</strong>. With ESXi 5, agents are implemented <strong>in</strong> other ways.<br />
Management agents. VMware partners create <strong>management</strong> agents by us<strong>in</strong>g one of the vSphere APIs.<br />
Hardware agents. Developers use CIM (Common In<strong>for</strong>mation Model) agents. CIM is a standards-based<br />
approach to monitor<strong>in</strong>g hardware resources. CIM output is readable by third-party <strong>management</strong> tools.<br />
The VMkernel can <strong>in</strong>clude both VMware CIM providers and Partner CIM providers. Use a vSphere Client<br />
logged <strong>in</strong> to a vCenter Server system to view hardware <strong>in</strong><strong>for</strong>mation <strong>in</strong>clud<strong>in</strong>g alarms. Use the vSphere<br />
Client extension framework or the vSphere CIM SDK <strong>for</strong> customization.<br />
Infrastructure <strong>service</strong> agents. Adm<strong>in</strong>istrators can use agents available <strong>in</strong> the ESXi Shell. Agents <strong>in</strong>clude<br />
hostd (host daemon), vpxa, NTP, syslog, SNMP, and so on. Use the vSphere SDK, vCLI commands, or<br />
ESXCLI commands to manage the agents.<br />
Table 2. Infrastructure Services <strong>for</strong> Production Environments<br />
Function ESX ESXi Management<br />
Time synchronization NTP agent <strong>in</strong> <strong>service</strong><br />
<strong>console</strong><br />
Centralized log collection Syslog agent <strong>in</strong> <strong>service</strong><br />
<strong>console</strong><br />
Built-<strong>in</strong> NTP <strong>service</strong> vicfg-ntp command<br />
Built-<strong>in</strong> Syslog <strong>service</strong> esxcli system syslog<br />
commands<br />
vSphere Client<br />
VMware, Inc. 10