VMware Cloud Community
THP
Contributor
Contributor
Jump to solution

esxcfg 'command not found'

Hopefully a qucik query for the VI3 guru's.

We're finally getting ready to roll the product to replace our ailing 2.5 set up and having installed a play box with ESX 3.0.2 I dropped into putty to play with the command line stuff.

But apparently esxcfg does not exist on my set up and cannot be found via searching - is this something I need to install manually or do I have a faulty version of the product (it was dl'd from vmware and is fully and genuinely licensed)

Reply
0 Kudos
1 Solution

Accepted Solutions
sbeaver
Leadership
Leadership
Jump to solution

I need you to SU a little different. Try this way "su -" the "-" add

the paths to the account

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**

View solution in original post

Reply
0 Kudos
7 Replies
sbeaver
Leadership
Leadership
Jump to solution

Sounds like you have not elevated your rights to root or equal. You need to do this before the esxcfg- command are available

Steve Beaver

VMware Communities User Moderator

*Virtualization is a journey, not a project.*

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
mikepodoherty
Expert
Expert
Jump to solution

Esxcfg is actually a series of commands - e.g. esxcfg-mpath (manages multipathing) esxcfg-vswif for your IP interface, esxcfg-vswitch for your virtual switches.

The path to these commands is set up during install. Look in /usr/sbin for the whole list. There are several references that explain what each command does. Take a look at http://download3.vmware.com/vmworld/2006/tac9685.pdf for more information.

Reply
0 Kudos
THP
Contributor
Contributor
Jump to solution

Something like that I think - I have logged in and 'su''d to be root and after some more trials have found the command set under /usr/sbin but even as root I cnnot run the dratted things.

Do I need to further up my rights?

Reply
0 Kudos
sbeaver
Leadership
Leadership
Jump to solution

I need you to SU a little different. Try this way "su -" the "-" add

the paths to the account

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
RParker
Immortal
Immortal
Jump to solution

If you su - to root, you can type 'esxcfg-' and hit the tab key twice, will list the commands associated. This will make things easier to locate which command you want to use. Also notice the dash after esxcfg its part of the command.

THP
Contributor
Contributor
Jump to solution

Thanks guys the "-" did it - one for my little book of things to remember.

Reply
0 Kudos
petedr
Virtuoso
Virtuoso
Jump to solution

In linux when you do the switch user command 'su' by itself it just changes to that user and you pick up the user rights such as read/write/execute privileges on files. But when you su - ( it is short for -l (login) and it means that you are creating a login shell and as part of that it runs .bash_profile). This in effect switches the environment to that user which sets up things like the correct path, etc of the new user.

It is usually good practice to run su - when switching users.

www.thevirtualheadline.com www.liquidwarelabs.com
Reply
0 Kudos