This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vmware:tip:cli [2016/04/26 13:12] – js | vmware:tip:cli [2021/02/12 14:54] (current) – js | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== command lines on esxi ====== | + | ===== command lines on esxi ===== |
- | * Register a VM | + | === Register a VM === |
<code bash> | <code bash> | ||
- | + | === Unregister a VM === | |
- | * Unregister a VM | + | |
<code bash> | <code bash> | ||
- | + | === Delete a VM === | |
- | * Delete a VM | + | |
<code bash> | <code bash> | ||
+ | === Get a listing of VMs on a host === | ||
+ | <code bash> | ||
+ | === Determine if a VM has a snapshot === | ||
+ | <code bash> | ||
+ | === Take a snapshot of a VM === | ||
+ | <code bash> | ||
+ | === Remove a snapshot of a VM === | ||
+ | <code bash> | ||
+ | === Get the current power state of a VM === | ||
+ | <code bash> | ||
+ | === Get the uptime for a VM === | ||
+ | <code bash> | ||
+ | === Power on a VM === | ||
+ | <code bash> | ||
+ | === Shutdown a VM === | ||
+ | <code bash> | ||
+ | === Shutdown a VM === | ||
+ | <code bash> | ||
+ | === Power off a VM === | ||
+ | <code bash> | ||
+ | <code bash> | ||
+ | === Reboot a VM === | ||
+ | <code bash> | ||
+ | === Reset a VM === | ||
+ | <code bash> | ||
+ | === Upgrade VMware Tools in a VM === | ||
+ | <code bash> | ||
+ | === Display the IP address of a VM === | ||
+ | <code bash> | ||
- | Get a listing of VMs on a host esxcli vm process list | + | === Display all info for all vmnics === |
- | vim-cmd vmsvc/ | + | <code bash>for i in $(esxcfg-nics -l | awk ' |
- | + | ||
- | Determine if a VM has a snapshot vim-cmd vmsvc/ | + | |
- | + | ||
- | Take a snapshot of a VM vim-cmd vmsvc/ | + | |
- | + | ||
- | Remove a snapshot of a VM vim-cmd vmsvc/ | + | |
- | + | ||
- | Get the current power state of a VM vim-cmd vmsvc/ | + | |
- | + | ||
- | Get the uptime for a VM vim-cmd vmsvc/get.summary vmid |grep uptimeSeconds | + | |
- | + | ||
- | Power on a VM vim-cmd vmsvc/ | + | |
- | + | ||
- | Shutdown a VM vim-cmd vmsvc/power.shutdown vmid | + | |
- | Power off a VM esxcli vm process kill –w world_id | + | === Show syslog host === |
- | vim-cmd | + | <code bash>vim-cmd |
+ | === Show syslog target port === | ||
+ | <code bash> | ||
- | Reboot a VM vim-cmd | + | === Show scratch location === |
+ | <code bash>vim-cmd | ||
- | Reset a VM vim-cmd vmsvc/power.reset vmid | + | === Get task list of VM === |
+ | <code bash>vim-cmd vmsvc/get.tasklist < | ||
- | Upgrade VMware Tools in a VM vim-cmd | + | === Get info for a specified task === |
+ | <code bash>vim-cmd | ||
- | Display the IP address of a VM vim-cmd vmsvc/get.guest vmid |grep -m 1 " | + | === Get memory information === |
+ | <code bash> | ||
+ | < | ||
+ | | ||
+ | Given to VMKernel: | ||
+ | | ||
+ | | ||
+ | Mmap critical space:0 KB | ||
+ | Mmap buddy overhead: | ||
+ | | ||
+ | | ||
+ | Other kernel: | ||
+ | Non-kernel: | ||
+ | | ||
+ | | ||
+ | }</ | ||