Professional Documents
Culture Documents
VMware VCAP-DCA Exam Command-Line Cheat Sheet v1.0 PDF
VMware VCAP-DCA Exam Command-Line Cheat Sheet v1.0 PDF
ls -l
cd /vmfs/volumes
pwd
cat vmkernel.log
more vmkernel.log
–vihost
vicfg-snmp
vifs
vicfg-user
vicfg-cfgbackup
vihostupdate
vmkfstools
esxcli
vicfg-ipsec
addserver
removeserver vifp listservers
rotatepassword
listservers
Vifp removeserver servername
vifptarget –-set esxi-02
vifptarget –-clear
vicfg-hostops --operation
enter
vicfg-hostops <conn_options> -
-operation reboot --force
vicfg-cfgbackup <conn_options>
-s /tmp/ESX_181842_backup.txt
vicfg-cfgbackup <conn_options>
-l /tmp/ESX_181842_backup.txt
vifs -D [iSCSI-1]
vmware-cmd -l
vicfg-mpath -l
vicfg-mpath --list-compact
vicfg-mpath --list-plugins
vicfg-vmknic -6 true
vicfg-vmknic –list
vicfg-vswitch –U <vmnic>
<vSwitch>
vicfg-vswitch –L <vmnic>
<vSwitch>
vicfg-vswitch –B vSwitch0
vicfg-vswitch -a vSwitch0
vicfg-vswitch -L vmnic5
vSwitch0
–add-dvp-uplink | –P
–del-dvp-uplink | –Q
<adapter_name> –dvp
<DVPort_id><dvswitchname>
–dvp | -V
vicfg-vswitch –Q <vmnic> - V
<dvport ID or vmnic>
<dvswitch>
vicfg-vswitch –P <vmnic> - V
<dvport ID or vmnic>
<dvswitch>
vicfg-volume –l
esxcfg-volume –M <previous
VMFS label | UUID
vicfg-module <conn_options> --
list
vicfg-module <conn_options> --
set-options 'intr_type_2
rx_ring_num=8' s2io
vicfg-module <conn_options> --
get-options s2io
esxtop –c <config_file>
vm-support –s –d duration –I
interval
vscsistats –L
vscsistats –S –W id
vscsistats –P all –W id
vscsistats –x
esxcli swiscsi nic add -n vmk1
-d vmhba33
esxcli swiscsi nic list
vicfg-rescan vmhba33
vmware-umds.exe --set-config –
enable host 1 –enable win 0 –
enable
vmware-umds.exe --download
vmware-umds.exe --set-config –
path c:\download
vmware-umds.exe –E –
exportstore path
vicfg-syslog -i
vicfg-syslog -s mysyslogserver
vicfg-syslog -p <port>
vilogger enable
vilogger disable
collectionperiod =
10
maxfilesize = 5MB
numrotations = 5
‐
vicfg-nics -l
vicfg-nics <conn_options> -a
vmnic2
vicfg-ntp --start
vicfg-ntp -a 192.168.250.2
vicfg-route -a
192.168.100.0/24 192.168.0.1
Esxcfg-swiscsi –e (enable
iSCSI)
-D --discovery
-S --static vicfg-iscsi --adapter –list
-A --
authentication
-P --phba
-T --target
-L --lun
-N --network
(Independent vicfg-iscsi <conn_options> --
hardware iSCSI static –add --ip <ip_addr |
only) domain_name>
-p --pnp --name <iscsi_name>
(Independent <adapter_name>
hardware iSCSI
only)
-I --iscsiname
-W --parameter
-E --swiscsi
-H --adapter
Suboption is one
of the following
operations:
-l --list
-a --add
-r --remove
vicfg-nas –l
vicfg-rescan vmhba1
vicfg-scsidevs -list
vicfg-scsidevs –vmfs
vicfg-scsidevs -hbas
esxcfg-firewall -o
514,udp,out,syslog
esxcfg-firewall –c
514,udp,out,syslog
esxcfg-firewall –q incoming o
esxcfg-firewall –q outgoing
esxcfg-firewall –-
allowOutgoing –-blockIncoming
esxcfg-firewall -–
allowIncoming –allowOutgoing
esxcfg-firewall -–
blockIncoming –blockOutgoing
vm-support
vihostupdate <conn_options> --
query
vicfg-user <conn_options> -e
group -o add -d group40 -D 55
das.vmCpuMinMHz = <value>
das.usedefaultisolationaddre
ss = false
das.failuredetectiontime =
60000
das.isolationaddress1 to
das.isolationaddress10 =
<value>
das.preferredPrimaries =
172.16.1.1,
172.16.1.2,172.16.1.3
Set-ExecutionPolicy
remotesigned
connect-viserver
vcenter01
disconnect-viserver
vcenter01
Get-vm
Get-vm “DC01”
Get-command
Get-VM | where-object
{$_.numcpu –gt 1}
Get-help *vmotion*
Get-help get-VM -
Examples
Get-powerCLIVersion