SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Summary of all ESXCLI commands: # esxcli <conn_options> esxcli command list • ESXCLI connection options when connecting through vCenter Server: --server <vcenter ip> --vihost <ESXi host ip> • ESXCLI connection options when connecting directly to ESXi host: --server <ESXi host ip>
Host Commands
Virtual Machine Commands Other Commands
Authentication
TBD
ESXi Resources and Quick Links
vMA Deployment Tips
vCLI Supported Platforms
ESXCLI Name Spaces
Storage CommandsNetwork Commands
ESXi Upgrade Path
VMware ESXi™
5.0 Reference
Performance and Troubleshooting
vSphere Client
PowerCLI
vMA/ESXCLI/
vCLI
SCSI Performance Statistics (ESXi Shell only)
# vscsiStats {options}
Show Open Ports (ESXi Shell only)
# nc –z <vcenter ip> <port range>
Capture Network Traffic (ESXi Shell only)
# tcpdump-uw –c 5 –n –I vmk0 host <vcenter ip> and port 123
Test Network Connectivity (ESXi Shell only)
# vmkping [–s 9000] <ip address>
Memory/CPU Utilization
# esxtop (ESXi Shell)
# resxtop (vCLI)
ESXi
VMkernel
Boot Options
Stateless
PXE
USB
SAN
User mode API (fuller POSIX subset)
Resource
Scheduling
Distributed
VM le system
CIM broker HA
hostd
NTP
DCUI
syslog
vpxa SNMP VMX
Virtual NIC
& Switch
Storage Stack
Device Drivers
Network Stack
VM
CIM
providers
VMM
Local Disk
ESXCFG/
VICFG
Command
PowerCLI Cmdlet ESXCLI 5.0
svmotion Move-VM –Datastore No equivalent
esxcfg-advcfg
vicfg-advcfg
Get-VMHostAdvancedConguration
Set-VMHostAdvancedConguration
esxcli system settings advanced
vicfg-cfgbackup Get-VMHostFirmware
Set-VMHostFirmware
No equivalent
vicfg-dns Get-VMHostNetwork
Set-VMHostNetwork
esxcli network ip dns server
esxcfg-dumppart
vicfg-dumppart
Get-EsxCLI esxcli system coredump
esxcfg-rewall Get-VMHostFirewallDefaultPolicy
Get-VMHostFirewallException
Set-VMHostFirewallDefaultPolicy
Set-VMHostFirewallException
esxcli network rewall
vicfg-hostops Get-VMHost
Set-VMHost
Restart-VMHost
No equivalent
esxcfg-ipsec
vicfg-ipsec
No equivalent No equivalent
esxcfg-swiscsi
esxcfg-hwiscsi
vicfg-iscsi
Get-iScsiHBATarget
New-iScsiHBATarget
Set-iScsiHBATarget
Remove-iScsiHBATarget
esxcli iscsi
esxcfg-module
vicfg-module
Get-EsxCLI esxcli system module
esxcfg-mpath
vicfg-mpath
Get-ScsiLun
Set-ScsiLun
esxcli storage core path
vicfg-mpath35 Get-ScsiLun
Set-ScsiLun
No equivalent
esxcfg-nas
vicfg-nas
Get-Datastore
New-Datastore
Set-Datastore
esxcli storage nfs
esxcfg-nics
vicfg-nics
Get-VMHostNetworkAdapter
Set-VMHostNetworkAdapter
esxcli network nic
vicfg-ntp Get-VMHostNTPServer
Set-VMHostNTPServer
No equivalent
esxcfg-rescan
vicfg-rescan
Get-VMHostStorage –RescanAllHBA esxcli storage core
esxcfg-route
vicfg-route
Set-VMHostNetwork No equivalent
esxcfg-scsidevs
vicfg-scsidevs
Get-ScsiLun
Set-ScsiLun
esxcli storage core
esxcli storage core lesystem
vicfg-snmp Get-VMHostSNMP
Set-VMHostSNMP
No equivalent
vicfg-syslog Get-VMHostSysLogServer
Set-VMHostSysLogServer
esxcli system syslog
vicfg-user Get-VMHostAccount
Set-VMHostAccount
New-VMHostAccount
Remove-VMHostAccount
No equivalent
esxcfg-vmknic
vicfg-vmknic
Get-VMHostNetworkAdapter
Set-VMHostNetworkAdapter
esxcli network interface
esxcfg-volume
vicfg-volume
Get-View needed to call APIs esxcli storage lesystem
esxcfg-vswitch
vicfg-vswitch
Get-VirtualSwitch
Set-VirtualSwitch
Get-VirtualPortGroup
Set-VirtualPortgroup
esxcli network vswitch
vifs.pl Copy-DatastoreItem
PSDrives
No equivalent
vihostupdate Install-VMHostPatch esxcli software
vihostupdate35 Install-VMHostPatch No equivalent
vmkfstools Get-HardDisk
Copy-HardDisk
Set-HardDisk
No equivalent
vmware-cmd Various cmdlets including:
Get-VM Set-VM Get-Snapshot
Set-Snapshot Get-VMGuestInfo
Start-VM Stop-VM
Restart-VM
No equivalent
esxtop
resxtop
Get-EsxTop No equivalent
esxupdate Get-VMHostPatch
Install-VMHostPatch
esxcli software vib
vmkfstools No equivalent No equivalent
vmkping No equivalent No equivalent
vmware-cmd Multiple VM cmdlets available No equivalent
vm-support Get-Log No equivalent
adapter
nic
cpu
bootdevice
clock
memory
pci
platform
adapter
networkportal
physicalnetworkportal
session
ibftboot
logicalnetworkportal
plugin
software
fence
rewall
ip
vswitch
nic
sources
acceptance
prole
vib
core
nmp
vmfs
lesystem
nfs
boot
coredump
module
process
secpolicy
settings
stats
syslog
visorfs
hostname
time
uuid
version
welcomemsg
process
esxcli5.0
fcoe hardware iscsi network software storage system vm
List Registered VMs (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> –l
Unregister a VM (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> -s
unregister /vmfs/volumes/<volume name>/<vm>/<vm>.vmx
<datacenter> <resource pool>
Register a VM (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> -s
register /vmfs/volumes/<volume name>/<vm>/<vm>.vmx
<datacenter> <resource pool>
Get Guest OS Platform (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx getproductinfo
platform
Get Platform Hosting VM (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx getproductinfo
product
Power on a VM (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx start [ soft | hard ]
Power off a VM (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx stop [ soft | hard ]
Reset a VM (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx reset [ soft | hard ]
Suspending a VM (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx suspend [ soft | hard ]
Resume a VM (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx resume
Show VM Uptime (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx getuptime
Show VMware Tools Status (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx gettoolslastactive
0 = not installed/not running
1 = normal
5 = intermittent heartbeat
10 = no heartbeat
Create VM Snapshot (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx createsnapshot
<name> <desc> 0 0
Check if VM Has a Snapshot (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx hassnapshot
0 = snapshot exists
1 = no snapshot
Revert to VM Snapshot (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx revertsnapshot
Remove VM Snapshot (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip>
/vmfs/volumes/<volume name>/<vm>/<vm>.vmx removesnapshot
Forcibly Stop a VM with ESXCLI
# esxcli <conn_options> vm process list
# esxcli <conn_options> vm process kill --type soft|hard|force
--world-id <id>
Setting up vMA FastPass
# vifp addserver <hostname> --username <user> --password
<password>
# viftptarget --set <hostname>
ESXCLI Command-Line Authentication
# esxcli --server=<vcenter ip> --vihost=<hostname> --user
<user> --password <password> <command>
ESXCLI Creating a Session File
# save_session --savesessionfile <file> --server <vcenter ip>
--username <user> --password <pass>
ESXCLI Using Windows Pass-Through Authentication
C:esxcli --server <vcenter ip> --passthroughauth
--passthroughauthpackage “Kerberos” --vihost <hostname> network
ip interface list
ESXCLI Using Environment Variables
# VI_USERNAME=root <username>
# VI_PASSWORD=vmware123 <password>
# VI_SERVER=<IP of vCenter Server or ESXi host>
vMA Docs: https://www.vmware.com/support/developer/vima/
vMA Downloads: http://www.vmware.com/downloads/login.do
vMA Community: http://communities.vmware.com/community/
vmtn/server/vsphere/automationtools/vima
vSphere SDK and Perl Documentation:
https://www.vmware.com/support/developer/viperltoolkit/
vSphere Knowledge Base:
http://kb.vmware.com/selfservice/microsites/microsite.do
vMA
Linux-based appliance that includes
the vCLI and vSphere SDK for Perl 
Linux
- RHEL 5.5 Server (32-bit and 64-bit)
- SLES 10 SP1 (32-bit and 64-bit)
- SLES 11 (32-bit and 64-bit)
- Ubuntu 10.04 (32-bit and 64-bit)
vSwitches
List Dened Standard Virtual Switches
# esxcli <conn_options> network vswitch standard list
Add/Remove a vSwitch
# esxcli <conn_options> network vswitch standard
[add|remove] --vswitch-name <name>
Set MTU for a vSwitch
# esxcli <conn_options> network vswitch standard set
--mtu=9000 --vswitch-name <name>
List Network Policy Settings
# esxcli <conn_options> network vswitch standard policy [
failover | security | shaping ] get
Port Groups
List Dened Port Groups
# esxcli <conn_options> network vswitch standard portgroup
list
Add a Port Group
# esxcli <conn_options> network vswitch standard portgroup
[add|remove] --portgroup-name <portgroup> --vswitch-name
<name>
Add Active Uplink to Port Group
# esxcli <conn_options> network vswitch standard portgroup
policy failover set –-active-uplinks=<uplink1, uplink2>
Set a Port Group vlan ID
# esxcli <conn_options> network vswitch standard portgroup
set --portgroup-name <portgroup> --vlan-id=<vlanid>
Add a Virtual Network Adaptor to Port Group
# esxcli <conn_options> network ip interface add
--portgroup-name <portgroup>
Congure the IP Address and netmask for a Port Group
# esxcli <conn_options> network ip interface ipv4 set
--interface-name=<vmk#> --ipv4=<ip address>
--netmask<netmask> --type=static
List All Uplink Adapters
# esxcli <conn_options> network nic list
List VMkernel Interfaces
# esxcli <conn_options> network ip interface list
Add VMkernel Interface
# esxcli <conn_options> network ip interface add
–-interface-name=<vmk#> --portgroup-name=<portgroup>
List VMkernel Interfaces
# esxcli <conn_options> network ip interface ipv4 set
–-ip=<ip address> --netmask=<subnetmask> --interface-
name=<vmk#>
Scan Storage Devices
# esxcli <conn_options> storage core adapter rescan
VMFS
Show all VMFS Volumes
# esxcli <conn_options> storage filesystem list
Attach a Datastore
# esxcli <conn_options> storage core device detached list
# esxcli <conn_options> storage core device set –d naa.XXX
–state=on
Mount a Datastore
# esxcli <conn_options> storage filesystem list
# esxcli <conn_options> storage filesystem volume mount
–volume-label=label
NAS
List NAS Filesystems
# esxcli <conn_options> storage nfs list
Add NAS Filesystem
# esxcli <conn_options> storage nfs add –-host=<FQHN>
--share=/path/to/share --volume-name=<share name>
Remove NAS Filesystem
# esxcli <conn_options> storage nfs remove --volume-
name=<share name>
iSCSI
Enable Software iSCSI
# esxcli <conn_options> iscsi software set –-enabled=true
List iSCSI Adapters
# esxcli <conn_options> iscsi adapter list
Add iSCSI Adapters
# esxcli <conn_options> iscsi networkportal add –n
<portal_name> -A <vmhba>
Show iSCSI Status
# esxcli <conn_options> iscsi software get
Set the iSCSI Name and Alias
# esxcli <conn_options> iscsi adapter set –-adapter=<iscsi
adapter> --name=<name>
# esxcli <conn_options> iscsi adapter set –-adapter=<iscsi
adapter> --alias=<alias>
Set iSCSI CHAP Authentication
# esxcli <conn_options> iscsi adapter auth chap set
–-direction=mutual –mchap_username=<name>
--mchap_password=<pwd> --level=required --secret=<string>
--adapter=<vmhba>
Discover iSCSI Storage Devices
# esxcli <conn_options> iscsi adapter discovery rediscover
Display host ESXi version
# esxcli <conn_options> system version get
Set the system time
# esxcli <conn_options> system time set --hour <16> --min <30> --sec <00>
Set the banner message
# esxcli <conn_options> system welcomemsg set --message
<message string>
Congure a remote log host
# esxcli <conn_options> system syslog config set
--loghost=<ip address>
# esxcli <conn_options> system syslog reload
Congure a remote dump host
# esxcli <conn_options> system coredump network set
--interface-name <vmk#> --server-ipv4 <ip address> --server-port
<portnumber> 6500
# esxcli <conn_options> system coredump network set --enable true
Join host to Active Directory
Join host to AD domain (vCLI only)
# vicfg-authconfig --server=<ip address> --username=<user>
--password=<password> --authscheme AD --joindomain <domainname>
--adusername=<user> --adpassword=<password>
Verify AD domain (vCLI only)
# vicfg-authconfig --server <ip address> --authscheme AD –c
Host Operations
Enter/Exit Maintenance Mode (vCLI only)
# vicfg-hostops <conn_options> --operation [enter | info | exit]
Shutdown/reboot a single host (vCLI only)
# vicfg-hostops <conn_options> --operation [ shutdown | reboot ]
Host Backup/Restore
Backup host conguration (vCLI only)
# vicfg-cfgbackup <conn_options> -s </path/filename>
Restore host conguration (vCLI only)
# vicfg-cfgbackup <conn_options> -l </path/filename>
Managing Modules
List all modules
# esxcli <conn_options> system module list [--enabled=true]
List all loaded modules
# esxcli <conn_options> system module list --loaded=true
Enable/Disable modules
# esxcli <conn_options> system module list
--enabled = [ true | false ]
Congure NTP
Add NTP Server (vCLI only)
# vicfg-ntp <conn_options> --add <ip address>
Remove NTP Server (vCLI only)
# vicfg-ntp <conn_options> --delete <ip address>
Start NTP Service (vCLI only)
# vicfg-ntp <conn_options> --start
List NTP Service (vCLI only)
# vicfg-ntp <conn_options> --start
Stop NTP Service (vCLI only)
# vicfg-ntp <conn_options> --stop
Users
List Users (vCLI only)
# vicfg-user <conn_options> -e user –o list
Add User (vCLI only)
# vicfg-user <conn_options> -e user –o add –l <user> -p <password>
Change User Password (vCLI only)
# vicfg-user <conn_options> -e user –o modify –l <user> -p <password>
Assign User Read Only Role (vCLI only)
# vicfg-user <conn_options> -e user –o modify –l <user> --role read-only
Remove User (vCLI only)
# vicfg-user <conn_options> -e user –o delete –l <user> -g <group>
Groups
List Groups (vCLI only)
# vicfg-user <conn_options> -e group –o list
Add Group (vCLI only)
# vicfg-user <conn_options> -e group –o add –d <groupname>
Add User to Group (vCLI only)
# vicfg-user <conn_options> -e group –o modify –d <groupname>
--adduser <user1>,<user2>,<user3>
Remove User from Group (vCLI only)
# vicfg-user <conn_options> -e group –o modify –d <groupname>
--removeuser <username>
Remove Group (vCLI only)
# vicfg-user <conn_options> -e group –o delete –d <groupname>
Congure ESXi Dump Collector
# esxcli <conn_options> system coredump network set
–-interface-name vmk0 --server-ipv4=<ip address> --port=<port name>
# esxcli <conn_options> system coredump network set –-enabled=true
# esxcli <conn_options> system coredump network get
Congure ESXi Syslog Collector
# esxcli <conn_options> system syslog config set –-loghost=<ip address>
# esxcli <conn_options> system syslog reload
Attaching Devices
Connect CDROM (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/
volumes/<volume name>/<vm>/<vm>.vmx connectdevice <CD Drive>
Disconnect CDROM (vCLI only)
# vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/
volumes/<volume name>/<vm>/<vm>.vmx disconnectdevice <CD Drive>
Manage Routes
Set Gateway (vCLI only)
# vicfg-route <conn_options> <gateway>
Add Route (vCLI only)
# vicfg-route <conn_options> -add <ip address> <netmask> <gateway>
List Routes (vCLI only)
# vicfg-route <conn_options>
Congure DNS
Set Fully Qualied Hostname
# esxcli <conn_options> system hostname set --fdn=<hostname>
Display DNS Servers
# esxcli <conn_options> network ip dns server list
Add/Remove DNS Server
# esxcli <conn_options> network ip dns server [add|remove]
--server=<ip address>
Display DNS Search Domain
# esxcli <conn_options> network ip dns search list
Add/Remove DNS Search Domain
# esxcli <conn_options> network ip dns server [add|remove]
--domain=<domain>
Enable DHCP
# esxcli <conn_options> network ip interface ipv4 set
--interface-name=<vmk#> --type=dhcp
Set Static IP
# esxcli <conn_options> network ip interface ipv4 set --
interface-name=<vmk#> --ipv4=<ip address>
--netmask=<subnetmask> --type=static
Download ESXi: http://downloads.vmware.com/d/
ESXi Documentation: http://www.vmware.com/support/pubs/
ESXi Frequently Asked Questions: http://www.vmware.com/
products/vsphere/esxi-and-esx/faqs.html#c177114
vSphere Install and Upgrade Community: http://communities.vmware.com/
community/vmtn/server/vsphere/upgradecenter
ESXi 5 Community: http://communities.vmware.com/community/
vmtn/server/vsphere/esxi5
ESXi 4 Community: http://communities.vmware.com/community/
vmtn/server/vsphere/esxi
ESXi Official Blog: http://blogs.vmware.com/esxi/
Twitter: @VMwarevSphere, @VMwareESXi
vSphere Automation Tools Community: http://communities.vmware.com/
community/vmtn/server/vsphere/automationtools?view=overview
Training: vSphere Transition to ESXi Essentials: http://mylearn.vmware.com/
mgrreg/courses.cfm?ui=www_edu&a=one&id_subject=23970
Training: What Is New in ESXi 5.0: http://mylearn.vmware.com/mgrreg/
courses.cfm?ui=www_edu&a=one&id_subject=24417
Running
vCenter 5.0
Host on 32-bit
or Incompatible
Hardware
Host Running
ESX/ESXi 4.x
Upgradable
Boot Disk
Replace Server
Upgrade to 4.x
New 5.0 Install
Host on 64-bit
Compatible
Hardware
Upgrade to 5.0
Using Update
Manager
Upgrade to 5.0
Using ESXi
Installer
Non-Upgradable
Boot Disk
Host Running
ESX/ESXi 3.5
Windows
- Windows Vista Enterprise SP1
(32-bit and 64-bit)
- Windows 2008 64-bit
- Windows 7 32-bit and 64-bit

Weitere ähnliche Inhalte

Was ist angesagt?

Nuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationNuxeo5 - Continuous Integration
Nuxeo5 - Continuous Integration
PASCAL Jean Marie
 
Hernan Ochoa - WCE Internals [RootedCON 2011]
Hernan Ochoa - WCE Internals [RootedCON 2011]Hernan Ochoa - WCE Internals [RootedCON 2011]
Hernan Ochoa - WCE Internals [RootedCON 2011]
RootedCON
 

Was ist angesagt? (20)

Automação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOpsAutomação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOps
 
Oracle virtual server-2-t0-3-upgrade
Oracle virtual server-2-t0-3-upgradeOracle virtual server-2-t0-3-upgrade
Oracle virtual server-2-t0-3-upgrade
 
Nuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationNuxeo5 - Continuous Integration
Nuxeo5 - Continuous Integration
 
실시간 서비스 플랫폼 개발 사례
실시간 서비스 플랫폼 개발 사례실시간 서비스 플랫폼 개발 사례
실시간 서비스 플랫폼 개발 사례
 
A Performance Characterization of Postgres on Different Storage Systems
A Performance Characterization of Postgres on Different Storage SystemsA Performance Characterization of Postgres on Different Storage Systems
A Performance Characterization of Postgres on Different Storage Systems
 
Oracle11g On Fedora14
Oracle11g On Fedora14Oracle11g On Fedora14
Oracle11g On Fedora14
 
IT Automation with Ansible
IT Automation with AnsibleIT Automation with Ansible
IT Automation with Ansible
 
Vagrant for real (codemotion rome 2016)
Vagrant for real (codemotion rome 2016)Vagrant for real (codemotion rome 2016)
Vagrant for real (codemotion rome 2016)
 
Dockerizing WordPress
Dockerizing WordPressDockerizing WordPress
Dockerizing WordPress
 
Learn basic ansible using docker
Learn basic ansible using dockerLearn basic ansible using docker
Learn basic ansible using docker
 
Ansible 實戰:top down 觀點
Ansible 實戰:top down 觀點Ansible 實戰:top down 觀點
Ansible 實戰:top down 觀點
 
Hernan Ochoa - WCE Internals [RootedCON 2011]
Hernan Ochoa - WCE Internals [RootedCON 2011]Hernan Ochoa - WCE Internals [RootedCON 2011]
Hernan Ochoa - WCE Internals [RootedCON 2011]
 
Installing and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command lineInstalling and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command line
 
PuppetConf 2013 vCloud Hybrid Service and Puppet
PuppetConf 2013 vCloud Hybrid Service and PuppetPuppetConf 2013 vCloud Hybrid Service and Puppet
PuppetConf 2013 vCloud Hybrid Service and Puppet
 
How to install and configure LEMP stack
How to install and configure LEMP stackHow to install and configure LEMP stack
How to install and configure LEMP stack
 
Project on squid proxy in rhel 6
Project on squid proxy in rhel 6Project on squid proxy in rhel 6
Project on squid proxy in rhel 6
 
Nginx2
Nginx2Nginx2
Nginx2
 
Oracle vm-installation
Oracle vm-installationOracle vm-installation
Oracle vm-installation
 
Small Python Tools for Software Release Engineering
Small Python Tools for Software Release EngineeringSmall Python Tools for Software Release Engineering
Small Python Tools for Software Release Engineering
 
Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...
Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...
Training Slides: Basics 106: Tungsten Dashboard Overview, Installation and Ar...
 

Ähnlich wie Poster vmware-management-with-vcli-5.0

Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization Tips
Youssef EL HADJ
 
vCenter and ESXi network port communications
vCenter and ESXi network port communicationsvCenter and ESXi network port communications
vCenter and ESXi network port communications
Animesh Dixit
 
V Mwarev Storage Intregration
V Mwarev Storage IntregrationV Mwarev Storage Intregration
V Mwarev Storage Intregration
mikhail.mikheev
 
VMWare VSphere4 Documentation Notes
VMWare VSphere4 Documentation NotesVMWare VSphere4 Documentation Notes
VMWare VSphere4 Documentation Notes
Grit Suwa
 
Rht upgrade v5-v2
Rht upgrade v5-v2Rht upgrade v5-v2
Rht upgrade v5-v2
mikeponderosa
 

Ähnlich wie Poster vmware-management-with-vcli-5.0 (20)

How we used ruby to build locaweb's cloud (http://presentations.pothix.com/ru...
How we used ruby to build locaweb's cloud (http://presentations.pothix.com/ru...How we used ruby to build locaweb's cloud (http://presentations.pothix.com/ru...
How we used ruby to build locaweb's cloud (http://presentations.pothix.com/ru...
 
KVM tools and enterprise usage
KVM tools and enterprise usageKVM tools and enterprise usage
KVM tools and enterprise usage
 
Automating Azure VMs with PowerShell
Automating Azure VMs with PowerShellAutomating Azure VMs with PowerShell
Automating Azure VMs with PowerShell
 
Where Does VMware Integration Occur?
Where Does VMware Integration Occur?Where Does VMware Integration Occur?
Where Does VMware Integration Occur?
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization Tips
 
vCenter and ESXi network port communications
vCenter and ESXi network port communicationsvCenter and ESXi network port communications
vCenter and ESXi network port communications
 
Oracle VM 3.4.1 Installation
Oracle VM 3.4.1 InstallationOracle VM 3.4.1 Installation
Oracle VM 3.4.1 Installation
 
VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013
VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013
VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013
 
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
OpenNebulaConf 2016 - Hypervisors and Containers Hands-on Workshop by Jaime M...
 
V Mwarev Storage Intregration
V Mwarev Storage IntregrationV Mwarev Storage Intregration
V Mwarev Storage Intregration
 
Building cloud stack at scale
Building cloud stack at scaleBuilding cloud stack at scale
Building cloud stack at scale
 
Storage Changes in VMware vSphere 4.1
Storage Changes in VMware vSphere 4.1Storage Changes in VMware vSphere 4.1
Storage Changes in VMware vSphere 4.1
 
VMware vSphere Version Comparison 4.0 to 6.5
VMware  vSphere Version Comparison 4.0 to 6.5VMware  vSphere Version Comparison 4.0 to 6.5
VMware vSphere Version Comparison 4.0 to 6.5
 
VMworld 2013: The Story Behind Designing and Building a Distributed Automatio...
VMworld 2013: The Story Behind Designing and Building a Distributed Automatio...VMworld 2013: The Story Behind Designing and Building a Distributed Automatio...
VMworld 2013: The Story Behind Designing and Building a Distributed Automatio...
 
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google CloudDrupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
 
Denver VMUG nov 2011
Denver VMUG nov 2011Denver VMUG nov 2011
Denver VMUG nov 2011
 
PowerShell User Group Hamburg - PowerCLI
PowerShell User Group Hamburg - PowerCLIPowerShell User Group Hamburg - PowerCLI
PowerShell User Group Hamburg - PowerCLI
 
VMWare VSphere4 Documentation Notes
VMWare VSphere4 Documentation NotesVMWare VSphere4 Documentation Notes
VMWare VSphere4 Documentation Notes
 
Rht upgrade v5-v2
Rht upgrade v5-v2Rht upgrade v5-v2
Rht upgrade v5-v2
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshooting
 

KĂźrzlich hochgeladen

Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
dharasingh5698
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

KĂźrzlich hochgeladen (20)

Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 

Poster vmware-management-with-vcli-5.0

  • 1. Summary of all ESXCLI commands: # esxcli <conn_options> esxcli command list • ESXCLI connection options when connecting through vCenter Server: --server <vcenter ip> --vihost <ESXi host ip> • ESXCLI connection options when connecting directly to ESXi host: --server <ESXi host ip> Host Commands Virtual Machine Commands Other Commands Authentication TBD ESXi Resources and Quick Links vMA Deployment Tips vCLI Supported Platforms ESXCLI Name Spaces Storage CommandsNetwork Commands ESXi Upgrade Path VMware ESXi™ 5.0 Reference Performance and Troubleshooting vSphere Client PowerCLI vMA/ESXCLI/ vCLI SCSI Performance Statistics (ESXi Shell only) # vscsiStats {options} Show Open Ports (ESXi Shell only) # nc –z <vcenter ip> <port range> Capture Network Traffic (ESXi Shell only) # tcpdump-uw –c 5 –n –I vmk0 host <vcenter ip> and port 123 Test Network Connectivity (ESXi Shell only) # vmkping [–s 9000] <ip address> Memory/CPU Utilization # esxtop (ESXi Shell) # resxtop (vCLI) ESXi VMkernel Boot Options Stateless PXE USB SAN User mode API (fuller POSIX subset) Resource Scheduling Distributed VM le system CIM broker HA hostd NTP DCUI syslog vpxa SNMP VMX Virtual NIC & Switch Storage Stack Device Drivers Network Stack VM CIM providers VMM Local Disk ESXCFG/ VICFG Command PowerCLI Cmdlet ESXCLI 5.0 svmotion Move-VM –Datastore No equivalent esxcfg-advcfg vicfg-advcfg Get-VMHostAdvancedConguration Set-VMHostAdvancedConguration esxcli system settings advanced vicfg-cfgbackup Get-VMHostFirmware Set-VMHostFirmware No equivalent vicfg-dns Get-VMHostNetwork Set-VMHostNetwork esxcli network ip dns server esxcfg-dumppart vicfg-dumppart Get-EsxCLI esxcli system coredump esxcfg-rewall Get-VMHostFirewallDefaultPolicy Get-VMHostFirewallException Set-VMHostFirewallDefaultPolicy Set-VMHostFirewallException esxcli network rewall vicfg-hostops Get-VMHost Set-VMHost Restart-VMHost No equivalent esxcfg-ipsec vicfg-ipsec No equivalent No equivalent esxcfg-swiscsi esxcfg-hwiscsi vicfg-iscsi Get-iScsiHBATarget New-iScsiHBATarget Set-iScsiHBATarget Remove-iScsiHBATarget esxcli iscsi esxcfg-module vicfg-module Get-EsxCLI esxcli system module esxcfg-mpath vicfg-mpath Get-ScsiLun Set-ScsiLun esxcli storage core path vicfg-mpath35 Get-ScsiLun Set-ScsiLun No equivalent esxcfg-nas vicfg-nas Get-Datastore New-Datastore Set-Datastore esxcli storage nfs esxcfg-nics vicfg-nics Get-VMHostNetworkAdapter Set-VMHostNetworkAdapter esxcli network nic vicfg-ntp Get-VMHostNTPServer Set-VMHostNTPServer No equivalent esxcfg-rescan vicfg-rescan Get-VMHostStorage –RescanAllHBA esxcli storage core esxcfg-route vicfg-route Set-VMHostNetwork No equivalent esxcfg-scsidevs vicfg-scsidevs Get-ScsiLun Set-ScsiLun esxcli storage core esxcli storage core lesystem vicfg-snmp Get-VMHostSNMP Set-VMHostSNMP No equivalent vicfg-syslog Get-VMHostSysLogServer Set-VMHostSysLogServer esxcli system syslog vicfg-user Get-VMHostAccount Set-VMHostAccount New-VMHostAccount Remove-VMHostAccount No equivalent esxcfg-vmknic vicfg-vmknic Get-VMHostNetworkAdapter Set-VMHostNetworkAdapter esxcli network interface esxcfg-volume vicfg-volume Get-View needed to call APIs esxcli storage lesystem esxcfg-vswitch vicfg-vswitch Get-VirtualSwitch Set-VirtualSwitch Get-VirtualPortGroup Set-VirtualPortgroup esxcli network vswitch vifs.pl Copy-DatastoreItem PSDrives No equivalent vihostupdate Install-VMHostPatch esxcli software vihostupdate35 Install-VMHostPatch No equivalent vmkfstools Get-HardDisk Copy-HardDisk Set-HardDisk No equivalent vmware-cmd Various cmdlets including: Get-VM Set-VM Get-Snapshot Set-Snapshot Get-VMGuestInfo Start-VM Stop-VM Restart-VM No equivalent esxtop resxtop Get-EsxTop No equivalent esxupdate Get-VMHostPatch Install-VMHostPatch esxcli software vib vmkfstools No equivalent No equivalent vmkping No equivalent No equivalent vmware-cmd Multiple VM cmdlets available No equivalent vm-support Get-Log No equivalent adapter nic cpu bootdevice clock memory pci platform adapter networkportal physicalnetworkportal session ibftboot logicalnetworkportal plugin software fence rewall ip vswitch nic sources acceptance prole vib core nmp vmfs lesystem nfs boot coredump module process secpolicy settings stats syslog visorfs hostname time uuid version welcomemsg process esxcli5.0 fcoe hardware iscsi network software storage system vm List Registered VMs (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> –l Unregister a VM (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> -s unregister /vmfs/volumes/<volume name>/<vm>/<vm>.vmx <datacenter> <resource pool> Register a VM (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> -s register /vmfs/volumes/<volume name>/<vm>/<vm>.vmx <datacenter> <resource pool> Get Guest OS Platform (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx getproductinfo platform Get Platform Hosting VM (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx getproductinfo product Power on a VM (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx start [ soft | hard ] Power off a VM (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx stop [ soft | hard ] Reset a VM (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx reset [ soft | hard ] Suspending a VM (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx suspend [ soft | hard ] Resume a VM (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx resume Show VM Uptime (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx getuptime Show VMware Tools Status (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx gettoolslastactive 0 = not installed/not running 1 = normal 5 = intermittent heartbeat 10 = no heartbeat Create VM Snapshot (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx createsnapshot <name> <desc> 0 0 Check if VM Has a Snapshot (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx hassnapshot 0 = snapshot exists 1 = no snapshot Revert to VM Snapshot (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx revertsnapshot Remove VM Snapshot (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/volumes/<volume name>/<vm>/<vm>.vmx removesnapshot Forcibly Stop a VM with ESXCLI # esxcli <conn_options> vm process list # esxcli <conn_options> vm process kill --type soft|hard|force --world-id <id> Setting up vMA FastPass # vifp addserver <hostname> --username <user> --password <password> # viftptarget --set <hostname> ESXCLI Command-Line Authentication # esxcli --server=<vcenter ip> --vihost=<hostname> --user <user> --password <password> <command> ESXCLI Creating a Session File # save_session --savesessionfile <file> --server <vcenter ip> --username <user> --password <pass> ESXCLI Using Windows Pass-Through Authentication C:esxcli --server <vcenter ip> --passthroughauth --passthroughauthpackage “Kerberos” --vihost <hostname> network ip interface list ESXCLI Using Environment Variables # VI_USERNAME=root <username> # VI_PASSWORD=vmware123 <password> # VI_SERVER=<IP of vCenter Server or ESXi host> vMA Docs: https://www.vmware.com/support/developer/vima/ vMA Downloads: http://www.vmware.com/downloads/login.do vMA Community: http://communities.vmware.com/community/ vmtn/server/vsphere/automationtools/vima vSphere SDK and Perl Documentation: https://www.vmware.com/support/developer/viperltoolkit/ vSphere Knowledge Base: http://kb.vmware.com/selfservice/microsites/microsite.do vMA Linux-based appliance that includes the vCLI and vSphere SDK for Perl  Linux - RHEL 5.5 Server (32-bit and 64-bit) - SLES 10 SP1 (32-bit and 64-bit) - SLES 11 (32-bit and 64-bit) - Ubuntu 10.04 (32-bit and 64-bit) vSwitches List Dened Standard Virtual Switches # esxcli <conn_options> network vswitch standard list Add/Remove a vSwitch # esxcli <conn_options> network vswitch standard [add|remove] --vswitch-name <name> Set MTU for a vSwitch # esxcli <conn_options> network vswitch standard set --mtu=9000 --vswitch-name <name> List Network Policy Settings # esxcli <conn_options> network vswitch standard policy [ failover | security | shaping ] get Port Groups List Dened Port Groups # esxcli <conn_options> network vswitch standard portgroup list Add a Port Group # esxcli <conn_options> network vswitch standard portgroup [add|remove] --portgroup-name <portgroup> --vswitch-name <name> Add Active Uplink to Port Group # esxcli <conn_options> network vswitch standard portgroup policy failover set –-active-uplinks=<uplink1, uplink2> Set a Port Group vlan ID # esxcli <conn_options> network vswitch standard portgroup set --portgroup-name <portgroup> --vlan-id=<vlanid> Add a Virtual Network Adaptor to Port Group # esxcli <conn_options> network ip interface add --portgroup-name <portgroup> Congure the IP Address and netmask for a Port Group # esxcli <conn_options> network ip interface ipv4 set --interface-name=<vmk#> --ipv4=<ip address> --netmask<netmask> --type=static List All Uplink Adapters # esxcli <conn_options> network nic list List VMkernel Interfaces # esxcli <conn_options> network ip interface list Add VMkernel Interface # esxcli <conn_options> network ip interface add –-interface-name=<vmk#> --portgroup-name=<portgroup> List VMkernel Interfaces # esxcli <conn_options> network ip interface ipv4 set –-ip=<ip address> --netmask=<subnetmask> --interface- name=<vmk#> Scan Storage Devices # esxcli <conn_options> storage core adapter rescan VMFS Show all VMFS Volumes # esxcli <conn_options> storage filesystem list Attach a Datastore # esxcli <conn_options> storage core device detached list # esxcli <conn_options> storage core device set –d naa.XXX –state=on Mount a Datastore # esxcli <conn_options> storage filesystem list # esxcli <conn_options> storage filesystem volume mount –volume-label=label NAS List NAS Filesystems # esxcli <conn_options> storage nfs list Add NAS Filesystem # esxcli <conn_options> storage nfs add –-host=<FQHN> --share=/path/to/share --volume-name=<share name> Remove NAS Filesystem # esxcli <conn_options> storage nfs remove --volume- name=<share name> iSCSI Enable Software iSCSI # esxcli <conn_options> iscsi software set –-enabled=true List iSCSI Adapters # esxcli <conn_options> iscsi adapter list Add iSCSI Adapters # esxcli <conn_options> iscsi networkportal add –n <portal_name> -A <vmhba> Show iSCSI Status # esxcli <conn_options> iscsi software get Set the iSCSI Name and Alias # esxcli <conn_options> iscsi adapter set –-adapter=<iscsi adapter> --name=<name> # esxcli <conn_options> iscsi adapter set –-adapter=<iscsi adapter> --alias=<alias> Set iSCSI CHAP Authentication # esxcli <conn_options> iscsi adapter auth chap set –-direction=mutual –mchap_username=<name> --mchap_password=<pwd> --level=required --secret=<string> --adapter=<vmhba> Discover iSCSI Storage Devices # esxcli <conn_options> iscsi adapter discovery rediscover Display host ESXi version # esxcli <conn_options> system version get Set the system time # esxcli <conn_options> system time set --hour <16> --min <30> --sec <00> Set the banner message # esxcli <conn_options> system welcomemsg set --message <message string> Congure a remote log host # esxcli <conn_options> system syslog config set --loghost=<ip address> # esxcli <conn_options> system syslog reload Congure a remote dump host # esxcli <conn_options> system coredump network set --interface-name <vmk#> --server-ipv4 <ip address> --server-port <portnumber> 6500 # esxcli <conn_options> system coredump network set --enable true Join host to Active Directory Join host to AD domain (vCLI only) # vicfg-authconfig --server=<ip address> --username=<user> --password=<password> --authscheme AD --joindomain <domainname> --adusername=<user> --adpassword=<password> Verify AD domain (vCLI only) # vicfg-authconfig --server <ip address> --authscheme AD –c Host Operations Enter/Exit Maintenance Mode (vCLI only) # vicfg-hostops <conn_options> --operation [enter | info | exit] Shutdown/reboot a single host (vCLI only) # vicfg-hostops <conn_options> --operation [ shutdown | reboot ] Host Backup/Restore Backup host conguration (vCLI only) # vicfg-cfgbackup <conn_options> -s </path/filename> Restore host conguration (vCLI only) # vicfg-cfgbackup <conn_options> -l </path/filename> Managing Modules List all modules # esxcli <conn_options> system module list [--enabled=true] List all loaded modules # esxcli <conn_options> system module list --loaded=true Enable/Disable modules # esxcli <conn_options> system module list --enabled = [ true | false ] Congure NTP Add NTP Server (vCLI only) # vicfg-ntp <conn_options> --add <ip address> Remove NTP Server (vCLI only) # vicfg-ntp <conn_options> --delete <ip address> Start NTP Service (vCLI only) # vicfg-ntp <conn_options> --start List NTP Service (vCLI only) # vicfg-ntp <conn_options> --start Stop NTP Service (vCLI only) # vicfg-ntp <conn_options> --stop Users List Users (vCLI only) # vicfg-user <conn_options> -e user –o list Add User (vCLI only) # vicfg-user <conn_options> -e user –o add –l <user> -p <password> Change User Password (vCLI only) # vicfg-user <conn_options> -e user –o modify –l <user> -p <password> Assign User Read Only Role (vCLI only) # vicfg-user <conn_options> -e user –o modify –l <user> --role read-only Remove User (vCLI only) # vicfg-user <conn_options> -e user –o delete –l <user> -g <group> Groups List Groups (vCLI only) # vicfg-user <conn_options> -e group –o list Add Group (vCLI only) # vicfg-user <conn_options> -e group –o add –d <groupname> Add User to Group (vCLI only) # vicfg-user <conn_options> -e group –o modify –d <groupname> --adduser <user1>,<user2>,<user3> Remove User from Group (vCLI only) # vicfg-user <conn_options> -e group –o modify –d <groupname> --removeuser <username> Remove Group (vCLI only) # vicfg-user <conn_options> -e group –o delete –d <groupname> Congure ESXi Dump Collector # esxcli <conn_options> system coredump network set –-interface-name vmk0 --server-ipv4=<ip address> --port=<port name> # esxcli <conn_options> system coredump network set –-enabled=true # esxcli <conn_options> system coredump network get Congure ESXi Syslog Collector # esxcli <conn_options> system syslog config set –-loghost=<ip address> # esxcli <conn_options> system syslog reload Attaching Devices Connect CDROM (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/ volumes/<volume name>/<vm>/<vm>.vmx connectdevice <CD Drive> Disconnect CDROM (vCLI only) # vmware-cmd --server <vcenter ip> --vihost <ESXi host ip> /vmfs/ volumes/<volume name>/<vm>/<vm>.vmx disconnectdevice <CD Drive> Manage Routes Set Gateway (vCLI only) # vicfg-route <conn_options> <gateway> Add Route (vCLI only) # vicfg-route <conn_options> -add <ip address> <netmask> <gateway> List Routes (vCLI only) # vicfg-route <conn_options> Congure DNS Set Fully Qualied Hostname # esxcli <conn_options> system hostname set --fdn=<hostname> Display DNS Servers # esxcli <conn_options> network ip dns server list Add/Remove DNS Server # esxcli <conn_options> network ip dns server [add|remove] --server=<ip address> Display DNS Search Domain # esxcli <conn_options> network ip dns search list Add/Remove DNS Search Domain # esxcli <conn_options> network ip dns server [add|remove] --domain=<domain> Enable DHCP # esxcli <conn_options> network ip interface ipv4 set --interface-name=<vmk#> --type=dhcp Set Static IP # esxcli <conn_options> network ip interface ipv4 set -- interface-name=<vmk#> --ipv4=<ip address> --netmask=<subnetmask> --type=static Download ESXi: http://downloads.vmware.com/d/ ESXi Documentation: http://www.vmware.com/support/pubs/ ESXi Frequently Asked Questions: http://www.vmware.com/ products/vsphere/esxi-and-esx/faqs.html#c177114 vSphere Install and Upgrade Community: http://communities.vmware.com/ community/vmtn/server/vsphere/upgradecenter ESXi 5 Community: http://communities.vmware.com/community/ vmtn/server/vsphere/esxi5 ESXi 4 Community: http://communities.vmware.com/community/ vmtn/server/vsphere/esxi ESXi Official Blog: http://blogs.vmware.com/esxi/ Twitter: @VMwarevSphere, @VMwareESXi vSphere Automation Tools Community: http://communities.vmware.com/ community/vmtn/server/vsphere/automationtools?view=overview Training: vSphere Transition to ESXi Essentials: http://mylearn.vmware.com/ mgrreg/courses.cfm?ui=www_edu&a=one&id_subject=23970 Training: What Is New in ESXi 5.0: http://mylearn.vmware.com/mgrreg/ courses.cfm?ui=www_edu&a=one&id_subject=24417 Running vCenter 5.0 Host on 32-bit or Incompatible Hardware Host Running ESX/ESXi 4.x Upgradable Boot Disk Replace Server Upgrade to 4.x New 5.0 Install Host on 64-bit Compatible Hardware Upgrade to 5.0 Using Update Manager Upgrade to 5.0 Using ESXi Installer Non-Upgradable Boot Disk Host Running ESX/ESXi 3.5 Windows - Windows Vista Enterprise SP1 (32-bit and 64-bit) - Windows 2008 64-bit - Windows 7 32-bit and 64-bit