VMware Cloud Community
rayan68
Contributor
Contributor

Add user to Multi ESXs servers

I have a big esx farm (30 ESX host 3.5) and I am looking for easy way to add user one time , every time I have to login to each ESX server and useradd which is so painful , any idea ?

0 Kudos
5 Replies
jbogardus
Hot Shot
Hot Shot

Look at tools like the VI Remote CLI and VI Management Assistant to run scripts against multiple ESX hosts at once:

0 Kudos
AntonVZhbankov
Immortal
Immortal

Why can't you use centralized management with vCenter?


---

MCSA, MCTS, VCP, VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
0 Kudos
rayan68
Contributor
Contributor

The reason I want to add users because I want to give them access to ESX consol , and later they can switch to root , but for couple of ESX server is fine but for 35 or 40 is pain , I never use CLiRemote , anyone has script for that ?

0 Kudos
AntonVZhbankov
Immortal
Immortal

A lot of superusers... I think something is wrong in your infrastructure.

Why do they need root access and ESX console? Scripting can be done through PowerCLI and vCenter.


---

MCSA, MCTS, VCP, VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
0 Kudos
Wimo
Hot Shot
Hot Shot

Once you have one host the way you want it, you can ftp the passwd and sudoers file to the others. Of course, you will still have to restart sshd on each one, so it's still a bit of a pain.

Note that if you do that, the users will get a message each time they log in telling them the have no home directory. No real reason why they should need one. I'd suggest limiting what they can do through the sudoers file - if you simply let everyone sudo to root, nothing will be logged. Bad if you're in an environment where auditors are going to come snooping around.

0 Kudos