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 revisionBoth sides next revision
vmware_cheatsheet [2012/04/11 10:16] dodgervmware_cheatsheet [2012/04/11 10:24] dodger
Line 3: Line 3:
  
 ====== 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 70:
 </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 91:
 ====== 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>
  
  
other/vmware_cheatsheet.txt · Last modified: 2024/01/09 16:02 by dodger