-->

ESXi commands for troubleshooting

ESXi and VM  commands for troubleshooting. It is useful when want to check the logs.



Esxi host version details:-

# vmware -vl 

To Get history :-

# histroy

To Get Esxi host logs :-

# cd var/run/log/

# /vmfs/volumes/datastore1/scratch/log] less vmkernel.log

# /vmfs/volumes/datastore1/scratch/log] grep -i "doubt" vmkernel.log | wc

# /vmfs/volumes/datastore1/scratch/log] grep -i "Admission" vmkernel.log | wc

# /vmfs/volumes/datastore1/scratch/log] less vmkernel.log

# /vmfs/volumes/datastore1/scratch/log] less vobd.log

# /vmfs/volumes/datastore1/scratch/log] esxcli hardware ipmi sel list

# /vmfs/volumes/datastore1/scratch/log] grep -i "Admission" vmkernel.log

/var/log] less hostd.log

zcat vmkernel.*|grep -i nfnic |less

To get storage adapter list:-

# esxcli storage core adapter list

# esxcfg-scsidevs -a 

To get NIC's  list:-

# esxcli network nic list

# esxcli network nic get -n vmnic5

How to NIC's reset configuration speed:-

esxcfg-nics vmnic0 -a

To get Version details:-

# vmkload_mod -s qlnativefc | grep Version

# vmkload_mod -s nfnic |grep -i version

Specfic VM power state:-

# vim-cmd vmsvc/power.off 4

Specfic VM taks list:-

# vim-cmd vmsvc/get.tasklist 4

List VMs on the ESXi server with the World ID:-

# esxcli vm process list

Kill a VM :-

# esxcli vm process kill –t soft -w WorldID

VM logs:-

tail -f vmware.log

#  less vmware.log

# less vmware.log | grep -i guest

To view size of folder details:-

# df -h

# vdf -h





ESXi commands for troubleshooting ESXi commands for troubleshooting Reviewed by Virtulization on January 09, 2023 Rating: 5

No comments:

Home - PageNavi (show/hide)

hide
Powered by Blogger.