Esx
From DWIKI
Links
Storage sense codes
Example: H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x24 0x0
- H: host status
- D: device status
- P: plugin status
Sense data:
- Sense key
- Additional sense data
Tools
esxtop
Links
- Interpreting esxtop statistics
- Checking the queue depth of the storage adapter and the storage device
HOWTO
memory usage
vsish -e get /memory/comprehensive
memstats -r group-stats -g0 -l5 -s gid:name:parGid:nChild:min:max:minLimit:conResv:availResv:memSize -u mb 2> /dev/null | sed -n '/^-\+/,/.*\n/p' | awk 'NR == 2 || $2 ~ /(vim|vimuser|terminal|ssh)$/ {print $0}'
vsish -e get /sched/groups/767/memAllocationInMB
Set new limit
vsish -e set /sched/groups/767/memAllocationInMB max=1200
list installed vibs
esxcli software vib list
FAQ
start VM
List all vms
vim-cmd vmsvc/getallvms
vim-cmd vmsvc/power.getstate [vmid] vim-cmd vmsvc/power.off [vmid] vim-cmd vmsvc/power.on [vmid]
root account locked
pam_tally2 --user root --reset
show hardware info
esxcfg-info
Identify disks in Linux guest
lsscsi
Check if vmdk is in use
grep vmdk some.vmx
https://blah.cloud/infrastructure/safely-checkremove-orphaned-vmdk-files-from-esxi/
vmkfstools -D foo.vmdk
list modules
esxcli system module list
ESXi login locked
pam_tally2 --user root
and
pam_tally2 --user root --reset