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