Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Module 2
By the end of this module, you should be able to meet the following
objectives:
Understand the purpose of the vCLI commands
Discuss options for running commands
Deploy and configure vSphere Management Assistant
Use vmware-cmd for virtual machine operations
To access vSphere ESXi Shell locally, you must have access to the
DCUI and administrator privileges.
By default, the local vSphere ESXi Shell is disabled:
Enable the local vSphere ESXi Shell from either the DCUI or VMware
vSphere® Web Client.
After you enable the vSphere ESXi Shell access, you can access the
local shell:
In the main DCUI screen, press Alt+F1 to open a virtual console
window to the host.
To return to the DCUI, press Alt+F2.
Local and domain users that have been assigned administrator
privileges on the host have root-equivalent permissions in the local
vSphere ESXi Shell.
You can access vSphere ESXi Shell remotely with a secure shell
client like SSH or PuTTY.
By default, the local vSphere ESXi Shell is disabled:
Enable the local vSphere ESXi Shell from either the DCUI or vSphere
Web Client.
Disable SSH access when you finish using it.
vCenter Server
vSphere Management
Assistant
vSphere SDK for Perl API (port 443)
vCenter Server protocol (port 902) ESXi host
.
VMware vSphere: Optimize and Scale 2-13
vSphere Management Assistant can be configured for Active Directory (AD). The
ESXi hosts and vCenter Server systems can be added without storing passwords
in the vSphere Management Assistant credential store.
Active
Directory
vCenter Server
.
VMware vSphere: Optimize and Scale 2-19
esxcfg-advcfg vicfg-advcfg
esxcfg-cfgbackup vicfg-cfgbackup
esxcfg-nics vicfg-nics
esxcfg-vswitch vicfg-vswitch
Examples:
vicfg-hostops –-server esxi01 –-username esxadmin
-–password vmware1! –-operation shutdown
vicfg-hostops –-server esxi01 –-username esxadmin
-–password vmware1! –-operation reboot --force
vicfg-hostops –-server vc_dev –-username esxadmin
–-operation shutdown –-cluster “Lab Cluster”
The command prompts for user names and passwords if you do not
specify them.
Examples:
vicfg-hostops --server vc01 --username vcadmin
--operation info --cluster “Lab Cluster”
vicfg-hostops --server esxi01 --username esxadmin
--operation enter --action poweroff
vicfg-hostops:
Does not coordinate with VMware vSphere® Distributed Resource Scheduler™
Suspends the virtual machines by default:
• Use the --action poweroff option to power off virtual machines.
esxcli namespace
esxcli fcoe namespace
esxcli hardware namespace
esxcli iscsi namespace
esxcli license namespace
esxcli network namespace
esxcli software namespace
esxcli storage namespace
esxcli system namespace
esxcli vm namespace
esxcli command list for a full listing
Use the esxcli command with the vm namespace to list all the
virtual machine processes.
esxcli conn_options vm process list
Questions?