Some useful commands for ESXi

We can use df -h command to get the file system usage.

When can we use it-Most of the time I had to use it to check the file system usage on vCenter appliance.

clip_image001

We can use find command to find files in the ESXi or vCenter file system

In my below example I have used it to find all the vmx files

Ex

find / -name *.vmx

clip_image002

We can use cat command to open a file and read the data

In my below example I have opened one of the main log file(vmkernel.log) using cat viewer

clip_image003

We can use grep command to search something inside the file

In my below example I used grep commands to find logged errors in the vmkernel.log

clip_image004

We can use ps command to fine running vm’s process

clip_image005

Advertisement