VMware Cloud Community
oschistad
Enthusiast
Enthusiast

vimsh always returns "file not found"

This is just a niggling thing but does potentially make scripting slightly harder. It seems that the vimsh script tries to do something at startup which always throws a "File not found" error from somewhere - either from bash or the binary it wraps (ie /usr/lib/vmware/hostd/vsh). The reason I mention this at all is that one might want to parse the output from vimsh and "trap" any errors, and having an error always thrown makes that slightly less elegant than it could be Smiley Wink

Here's an example:

[root@someesx]# vimsh -e /hostsvc/storage/refresh
File not found.
[2009-04-29 09:01:36.187 'App' 3076472960 info] Current working directory: /usr/lib/vmware/hostd
[2009-04-29 09:01:36.188 'BaseLibs' 3076472960 info] HOSTINFO: Seeing Intel CPU, numCoresPerCPU 4 numThreadsPerCore 1.
[2009-04-29 09:01:36.189 'BaseLibs' 3076472960 info] HOSTINFO: hyperthreading disabled, setting number of threads per core to 1.
[2009-04-29 09:01:36.190 'BaseLibs' 3076472960 info] HOSTINFO: This machine has 2 physical CPUS, 8 total cores, and 8 logical CPUs.
[2009-04-29 09:01:36.191 'BaseLibs' 3076472960 info] System libcrypto.so.0.9.7 library is older than our library (90701F < 90709F)
[2009-04-29 09:01:36.192 'App' 3076472960 info] Vmacore::InitSSL: doVersionCheck = true, handshakeTimeoutUs = 120000000
[2009-04-29 09:01:36.214 'BaseLibs' 6142896 warning] [Vmdb_Unset] Unsetting unknown path: /vmomi/

Reply
0 Kudos
1 Reply
lamw
Community Manager
Community Manager

Hi,

The vimsh and wrapper vmware-vim-cmd are undocumented VMware command, though it provides lots of useful information including a way of enabling vMotion w/o the VIC. There a quite a few bugs with it and the output and behavior is really unknown since it's something that is not supported by VMware or recommended for use. If you're looking for errors on your storage you may want to monitor your vmkernel/vmkwarning/messages logs for any unusual errors. You might also want to setup some hardware monitors if you're on say HP with HIM SIM to alert you if you have any issues with the hardware. vimsh should be used with a grain of salt, but I still enjoy all the functionality it does provide Smiley Happy

Fore more information definitely check out: http://engineering.ucsb.edu/~duonglt/vmware/#vmware_vimsh & http://www.vi-toolkit.com/wiki/index.php/Main_Page

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos