When I try to use the Esxupdate command (query specifically) I get "Command Not Found". Even while using elevated priviledges (su) I cannot successfully use the command. Any suggestions?
Thanks in advance,
edp
Are you using sudo, or are you actually running as root?
Preferably use the "su -" command to elevate to root.
The command is located in /usr/sbin, try changing to that dir and executing the command.
bash: esxupdate: command not found
If you type "ls /usr/sbin/esxupdate" do you get a reply saying "No such file or directory" or does it come back with "/usr/sbin/esxupdate"..
This will let you know if file is actually there or not...
It's definately there...
Are you using sudo, or are you actually running as root?
Preferably use the "su -" command to elevate to root.
Yep, that's how I elevate, I almost never actually login as root.
I can view the Man pages for esxupdate though, not that it helps me much:)
Yeh thats different though Can you run all other commands ok? I'm guessing maybe theres a chance you've corrupted your esxupdate binary...not sure how but thats all i can think of. Are the permissions ok on it? WRX for root etc? If that checks out ok, and thats the only command thats not working for you I'd consider copying the esxupdate binary from one of your other esx servers accross..
-r-xrr 1 root root 16288 Jul 26 2007 esxupdate
Yeh thats the same perms as my esxupdate binaries have. I'm outta ideas mate, maybe just try copying the file from another server?
Thanks for the suggestions. This is a stand-alone server at this point.
As wgardiner pointed out, make sure you type 'su -', the '-' is important. After, esxupdate should work, type 'which esxupdate' to make sure the su updated your path info.
-KjB
if you login remotely (ssh) and run esxupdate or some other command you must use "su -", you can't run those commands under other users.
if you try login locally as root, you should be able to run esxupdate. if not then it should be other error with esxupdate.
Hi,
Since the sudo command su with the - simply copies the environment settings you would still be able to run with it using the following.
python /usr/sbin/esxupdate
If that does not work the issue will be with either python or the esxupdate script.
I had been just typing "su" and then the password. When I use su - root, and type in the password, then run the command it works fine.
Thanks for all they help guys.