vmkvsitools in ESXi

There is very little I can find about vmkvsitools on the internet. VMware document says “vmkvsitools is intended for use with VMware Technical Support. Do not use vmkvsitools to manage your system.”. But we normally don’t care as long as we know what we are doing, do we?

The following commands are available under vmkvsitools in ESXi 6.0 U1.

    vmkvsitools
    usage: vmkvsitools [options] [function] [arguments]
           or [function] [arguments]

    Options:
       --cache, -c    Perform the operation on a given VSI cache file

    Functions:
       lspci
       ps
       hwclock
       vmware
       irqinfo
       bootOption
       amldump
       pci-info
       pidof
       userspaceof
       vdu
       lsof
       vdf
       pkill
       pgrep
       uptime

You can run them using “vmkvsitools function”. For example-

vmkvsitools hwclock
04:26:29   07/17/2017   UTC 

You can also run them directly by typing just the command as they are symblinked from /bin.

    ls -l /bin |  grep vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 amldump -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 bootOption -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 hwclock -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 irqinfo -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 lsof -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 lspci -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 pgrep -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 pidof -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 pkill -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 ps -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 uptime -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 vdf -> /bin/vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 vdu -> /bin/vmkvsitools
    -r-xr-xr-x    1 root     root         75868 Sep 16  2015 vmkvsitools
    lrwxrwxrwx    1 root     root            16 Sep 16  2015 vmware -> /bin/vmkvsitools
Advertisements