Professional Documents
Culture Documents
VMware VCAP-DCA Exam Command-Line Cheat Sheet v1.0
VMware VCAP-DCA Exam Command-Line Cheat Sheet v1.0
ls -l
cd /vmfs/volumes
pwd
nano /etc/ntp.conf
cat vmkernel.log
more vmkernel.log
tail -15 vmkernel.log
vihost
vicfg-snmp
vifs
vicfg-user
vicfg-cfgbackup
vihostupdate
vmkfstools
esxcli
vicfg-ipsec
vifp listservers
Vifp removeserver servername
vicfg-hostops --operation
enter
vicfg-hostops --operation exit
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
vmkfstools c 10GB <path to
VMDK>
vmkfstools X 10g <path to
VMDK>
vmkfstools P <path to VMDK>
vifs -D [iSCSI-1]
svmotion --interactive
vmware-cmd -l
vicfg-mpath -l
vicfg-mpath --list-compact
vicfg-mpath --list-plugins
esxcli <conn_options> nmp
device setpolicy --device
naa.xxx --psp VMW_PSP_RR
vicfg-vmknic -6 true
vicfg-vmknic list
vicfg-vmknic --add --ip
172.16.1.200 --netmask
255.255.255.0 -p "iSCSI-1" mtu 9000
vicfg-vswitch U <vmnic>
<vSwitch>
vicfg-vswitch L <vmnic>
<vSwitch>
vicfg-vswitch B vSwitch0
vicfg-vswitch -a vSwitch0
vicfg-vswitch --mtu 9000
vSwitch0
vicfg-vswitch -add-pg iSCSI-1
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>
esxcfg-volume M <previous
VMFS label | UUID
vm-support s d duration I
interval
esxtop R <path to dir>
vscsistats L
vscsistats S W id
vscsistats P all W id
vscsistats x
esxcli nmp satp list
esxcli nmp psp list
vicfg-scsidevs
vmfs (list ID naa.)
vicfg-rescan vmhba33
esxcli vms vm list
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-dns <conn_options --dns
<dns1,dns2>
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
-A -authentication
-P --phba
-T --target
-L --lun
-N --network
(Independent
hardware iSCSI
only)
-p --pnp
(Independent
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-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
vihostupdate.pl --server <IP
address of ESXi 4 host> -i -b
<name.zip>
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