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
vmware:tip:cli [2016/12/01 15:58] jsvmware:tip:cli [2021/02/12 14:54] (current) js
Line 38: Line 38:
  
 === Display all info for all vmnics === === Display all info for all vmnics ===
-<code>for i in $(esxcfg-nics -l | awk '{print $1}' | tail -n +2); do esxcli network nic get -n $i; done</code>+<code bash>for i in $(esxcfg-nics -l | awk '{print $1}' | tail -n +2); do esxcli network nic get -n $i; done</code> 
 + 
 +=== Show syslog host === 
 +<code bash>vim-cmd hostsvc/advopt/view Syslog.Remote.Hostname | grep -i "value =" | awk -F'"' '{print $2}'</code> 
 +=== Show syslog target port === 
 +<code bash>vim-cmd hostsvc/advopt/view Syslog.Remote.Port | grep "value =" | sed -e 's/^.*value = \([^ ,]*\).*$/\1/'</code> 
 + 
 +=== Show scratch location === 
 +<code bash>vim-cmd hostsvc/advopt/view Syslog.Local.DatastorePath | grep -i "value =" | awk -F'"' '{print $2}'</code> 
 + 
 +=== Get task list of VM === 
 +<code bash>vim-cmd vmsvc/get.tasklist <VMID></code> 
 + 
 +=== Get info for a specified task === 
 +<code bash>vim-cmd vimsvc/task_info <TaskNr></code> See the number in the "vim.Task .... " line 
 + 
 +=== Get memory information === 
 +<code bash>vsish -e get /memory/comprehensive</code> 
 +<code>Comprehensive { 
 +   Physical memory estimate:12454784 KB 
 +   Given to VMKernel:12454784 KB 
 +   Reliable memory:0 KB 
 +   Discarded by VMKernel:1580 KB 
 +   Mmap critical space:0 KB 
 +   Mmap buddy overhead:3084 KB 
 +   Kernel code region:18432 KB 
 +   Kernel data and heap:14336 KB 
 +   Other kernel:1421360 KB 
 +   Non-kernel:120036 KB 
 +   Reserved memory at low addresses:59900 KB 
 +   Free:10875956 KB 
 +}</code>