VMware Cloud Community
edp2007
Contributor
Contributor
Jump to solution

Esxupdate Problems

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

Reply
0 Kudos
1 Solution

Accepted Solutions
wgardiner
Hot Shot
Hot Shot
Jump to solution

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

Reply
0 Kudos
15 Replies
wgardiner
Hot Shot
Hot Shot
Jump to solution

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

edp2007
Contributor
Contributor
Jump to solution

bash: esxupdate: command not found

Reply
0 Kudos
wgardiner
Hot Shot
Hot Shot
Jump to solution

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

Reply
0 Kudos
edp2007
Contributor
Contributor
Jump to solution

It's definately there...

Reply
0 Kudos
wgardiner
Hot Shot
Hot Shot
Jump to solution

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

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

Reply
0 Kudos
edp2007
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos
edp2007
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos
wgardiner
Hot Shot
Hot Shot
Jump to solution

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

Reply
0 Kudos
edp2007
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos
wgardiner
Hot Shot
Hot Shot
Jump to solution

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

Reply
0 Kudos
edp2007
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos
kjb007
Immortal
Immortal
Jump to solution

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
Reply
0 Kudos
Plunket
Contributor
Contributor
Jump to solution

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.

Reply
0 Kudos
mike_laspina
Champion
Champion
Jump to solution

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
Jump to solution

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.

Reply
0 Kudos