Hi All:
I have 3 ESX 3.5 U2 running on Dell 2950's. When I ssh to any of them (connect as normal user, then 'su' to root) and attempt to run an esx command such as esxcfg-nics -l or vmkping, I get the message bash: esxcfg-nics: command not found. Even if I navigate to the directory /usr/sbin and can see the commands listed, I get the same error. If I am at the console or connect via IP KVM, the commands work perfectly.
I suspect that it is an issue with an incorrectly registered path, but I'm unsure. Has anyone else encountered this or know where the fix for it might be found?
Thank you in advance for any help.
have you tried running the command this way..
/usr/sbin/esxcfg-vswitch -l
OR
cd /usr/sbin/
./esxcfg-vswitch -l
(notice the "./" above to run it)
Andy, VMware Certified Professional (VCP),
If you found this information useful please award points using the buttons at the top of the page accordingly.
have you tried running the command this way..
/usr/sbin/esxcfg-vswitch -l
OR
cd /usr/sbin/
./esxcfg-vswitch -l
(notice the "./" above to run it)
Andy, VMware Certified Professional (VCP),
If you found this information useful please award points using the buttons at the top of the page accordingly.
Also run "export" which will print all your environment variables, specifcally PATH$ which may not have /usr/sbin in it.
Andy, VMware Certified Professional (VCP),
If you found this information useful please award points using the buttons at the top of the page accordingly.
I would agree in saying that your PATH is the issue.
Jase McCarty
Co-Author of VMware ESX Essentials in the Virtual Data Center
(ISBN:1420070274) from Auerbach
use "su -"
That was it, but what's really bizarre is that I tried that yesterday and it wasn't working. Now it is.
Thanks for the assist...