esxcli network ip interface ipv4 get
esxcli network firewall set --enabled false
/usr/lib/vmware/vsan/bin/iperf3.copy -s -B 192.168.100.1 -V
/usr/lib/vmware/vsan/bin/iperf3.copy -s -B 192.168.100.2 -V
/usr/lib/vmware/vsan/bin/iperf3 -c 192.168.100.1 -t 10 -V
/usr/lib/vmware/vsan/bin/iperf3 -c 192.168.100.2 -t 10 -V
vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string "/vmfs/volumes/nas-cesium-ds/.locker-zeus"
esxcli system settings advanced set -o /UserVars/SuppressCoredumpWarning -i 1
esxcli system syslog config set --logdir=/vmfs/volumes/nas-cesium-ds/.log-zeus --logdir-unique=true
esxcli software acceptance set --level CommunitySupported
esxcli software vib install -d /tmp/MRVL-Atlantic-Driver-Bundle_1.0.2.0-1OEM.670.0.0.8169922-offline-bundle-16081713.zip
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep -i ESXi-6.7 | grep standard | sort
esxcli software profile update -p ESXi-6.7.0-20190504001-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
diskutil eraseDisk MS-DOS "ESXI" MBR diskXXX
diskutil unmountDisk /dev/diskXXX
sudo fdisk -e /dev/diskXXX
f 1
write
quit
Ensuite renommer le ISOLINUX.CFG en SYSLINUX.CFG et éditer le en rajoutant -p 1 sur la ligne APPEND -c boot.cfg
(https://tinkertry.com/easy-update-to-latest-esxi)
Par exemple (avec le numéro de build et la version, voir https://kb.vmware.com/s/article/2143832 pour le build)
esxcli software profile update -p ESXi-7.0U2c-18426014-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
vim-cmd -> pour avoir la liste des commandes
vim-cmd vmsvc/getallvms -> pour récup toutes les vm registered sur l'ESXi
vim-cmd vmsvc/power.on 1 -> demarrer la vm avec l'ID 1
vim-cmd vmsvc/power.getstate 1 -> récupérer l'état de la VM 1
vscsiStats -l
vscsiStats -t -s -w 966699
vscsiStats -p all -c -w 966699 > /tmp/vmstats-<vmname>.csv
vscsiStats -x
esxcli vsan cluster get | grep 'Sub-Cluster Master UUID' | awk '{print $4}'
cmmds-tool find -t HOSTNAME |grep UUID (par exemple master node)
cmmds-tool find -t HOSTNAME | grep 5a79d6fe-667b-da0e-0f64-246e969b6920
esxcli vsan debug resync summary get
esxcli vsan debug resync list
Locked file (VSAN)
vim-cmd vmsvc/getallvms
vim-cmd vmsvc/snapshot.get (vmid)
vim-cmd vmsvc/snapshot.create [VmId] [snapshotName] [snapshotDescription] [includeMemory] [quiesced]
vim-cmd vmsvc/snapshot.removeall [Vmid]
vmfsfilelockinfo -p /vmfs/volumes/<UUID>/VM_name/VM_name-000001-delta.vmdk -v 192.168.x.x -u administrator@vsphere.local
This note is shared publicly by cedric