edp2007
Contributor
Contributor

Esxupdate Problems

Jump to solution

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

0 Kudos
1 Solution

Accepted Solutions
wgardiner
Hot Shot
Hot Shot

Are you using sudo, or are you actually running as root?

Preferably use the "su -" command to elevate to root.

View solution in original post

0 Kudos
15 Replies
wgardiner
Hot Shot
Hot Shot

The command is located in /usr/sbin, try changing to that dir and executing the command.

edp2007
Contributor
Contributor

bash: esxupdate: command not found

0 Kudos
wgardiner
Hot Shot
Hot Shot

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...

0 Kudos
edp2007
Contributor
Contributor

It's definately there...

0 Kudos
wgardiner
Hot Shot
Hot Shot

Are you using sudo, or are you actually running as root?

Preferably use the "su -" command to elevate to root.

View solution in original post

0 Kudos
edp2007
Contributor
Contributor

Yep, that's how I elevate, I almost never actually login as root.

0 Kudos
edp2007
Contributor
Contributor

I can view the Man pages for esxupdate though, not that it helps me much:)

0 Kudos
wgardiner
Hot Shot
Hot Shot

Yeh thats different though Smiley Happy 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..

0 Kudos
edp2007
Contributor
Contributor

-r-xrr 1 root root 16288 Jul 26 2007 esxupdate

0 Kudos
wgardiner
Hot Shot
Hot Shot

Yeh thats the same perms as my esxupdate binaries have. I'm outta ideas mate, maybe just try copying the file from another server?

0 Kudos
edp2007
Contributor
Contributor

Thanks for the suggestions. This is a stand-alone server at this point.

0 Kudos
kjb007
Immortal
Immortal

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

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
Plunket
Contributor
Contributor

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.

0 Kudos
mike_laspina
Champion
Champion

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.

http://blog.laspina.ca/ vExpert 2009
edp2007
Contributor
Contributor

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.

0 Kudos