User Tools

Site Tools


other:vmware_cheatsheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
vmware_cheatsheet [2012/04/11 10:16] dodgerother:vmware_cheatsheet [2019/06/20 10:04] – ↷ Links adapted because of a move operation dodger
Line 1: Line 1:
 +====== [DOC] ESX cli usage ======
 +
 +
 ====== Descripcion ====== ====== Descripcion ======
 Uso del cli de ESX. Uso del cli de ESX.
  
 ====== VMs ====== ====== VMs ======
 +===== Estado =====
 +==== De todas ====
 +<code>vim-cmd vmsvc/getallvms
 +</code>
 +==== De las que están en ejecución ====
 +<code>esxcli vm process list
 +</code>
 +
 ===== Arrancar ===== ===== Arrancar =====
-<code>+Hay que obtener el //<vmid>// con el comando de estado: 
 +<code>vim-cmd vmsvc/power.on vmid
 </code> </code>
 ===== Parar ===== ===== Parar =====
-<code>+Hay que obtener el //<vmid>// con el comando de estado: 
 +<code>vim-cmd vmsvc/power.off <vmid>
 </code> </code>
 +
 +===== Reboot =====
 +<code>vim-cmd vmsvc/power.reboot <vmid>
 +</code>
 +
 ===== kill ===== ===== kill =====
 Matar una vm por la fuerza, el "World ID" se obtiene mediante el [[vmware_cheatsheet#De las que están en ejecución|status]]. Matar una vm por la fuerza, el "World ID" se obtiene mediante el [[vmware_cheatsheet#De las que están en ejecución|status]].
 <code> <code>
- esxcli vm process kill -w <World ID>+esxcli vm process kill -w <World ID>
 </code> </code>
  
-===== Estado ===== 
-==== De todas ==== 
  
-==== De las que están en ejecución ==== 
-<code>esxcli vm process list 
-</code> 
  
 ===== Clonar ===== ===== Clonar =====
Line 60: Line 73:
 </code> </code>
  
 +===== Maintenance =====
 +==== on ====
 +<code>
 +vim-cmd hostsvc/maintenance_mode_enter
 +</code>
 +==== off ====
 +<code>vim-cmd hostsvc/maintenance_mode_exit
 +</code>
  
 ====== Filesystem ====== ====== Filesystem ======
Line 73: Line 94:
 ====== Others ====== ====== Others ======
  
 +<code>
 +vim-cmd vmsvc/destroy vmid
 +Deletes the vmdk and vmx files from disk
 +
 +
 +
 +vim-cmd solo/registervm /vmfs/vol/datastore/dir/vm.vmx
 +Registers vm in hypervisor inventory
 +
 +vim-cmd vmsvc/unregister vmid
 +Unregisters vm with hypervisor
 +
 +vim-cmd vmsvc/tools.install vmid
 +Starts vmware tools installation for VM
 +
 +vim-cmd hostsvc/net/info
 +Provides information about hypervisor networking
 +
 +chkconfig -l
 +Shows daemons running on hypervisor. Can also be used for configuration.
 +
 +esxtop
 +Same as linux top for vmware
 +
 +vmkerrcode -l
 +List of vmkernel errors
 +
 +esxcfg-info
 +Lists a LOT of information about the esx host
 +
 +esxcfg-nics -l
 +Lists information about NIC's. Can also be used for configuration.
 +
 +esxcfg-vswitch -l
 +Lists information about virtual switching. Can also be used for configuration.
 +
 +dcui
 +Provides console screen to ssh session
 +
 +vsish
 +Vmware interactive shell
 +
 +decodeSel /var/log/ipmi_sel.raw
 +Read System Event Log of server 
 +</code>
  
  
  
 ====== Documentos oficiales ====== ====== Documentos oficiales ======
-  * {{:vsphere-esxi-vcenter-server-50-command-line-interface-solutions-and-examples-guide.pdf|}} +  * {{other:vmware_cheatsheet:vsphere-esxi-vcenter-server-50-command-line-interface-solutions-and-examples-guide.pdf|}} 
-  * {{:vsphere-esxi-vcenter-server-501-command-line-interface-getting-started-guide.pdf|}}+  * {{other:vmware_cheatsheet:vsphere-esxi-vcenter-server-501-command-line-interface-getting-started-guide.pdf|}}
other/vmware_cheatsheet.txt · Last modified: 2024/01/09 16:02 by dodger