Automation

 View Only
  • 1.  Using esxcli command instead of PowerCLI for managing ESX Admins

    Posted Aug 26, 2024 04:56 PM

    Background - automated building of ESXi includes a ks.cfg file that sets up lot of things for us, but doesn't allow powercli. Things like local accts, networks, ntp, syslog, bind to AD, add local AD accts, etc.

    These all use either bash commands or esxcli commands.

    One thing I can't seem to do is set the ESX Admins group to a specific AD group.

    Per this kb, you can disable it, but that's not what I'm looking to do.

    https://knowledge.broadcom.com/external/article/369707/

    But per that kb, I would love to set "Config.HostAgent.plugins.hostsvc.esxAdminsGroup" to my specific AD group.
    Is there any way to do this while using bash or esxcli commands, and not using powercli?

    Thanks,

    Stu



  • 2.  RE: Using esxcli command instead of PowerCLI for managing ESX Admins

    Posted Aug 27, 2024 01:45 AM

    That's just an advanced setting, see here for how to update w/ esxcli:

    https://knowledge.broadcom.com/external/article/310338/configuring-advanced-options-for-esxiesx.html




  • 3.  RE: Using esxcli command instead of PowerCLI for managing ESX Admins

    Posted Aug 27, 2024 08:48 AM

    Awesome, I was unaware of this setting:
    esxcli system settings advanced

    Thanks for pointing it out!




  • 4.  RE: Using esxcli command instead of PowerCLI for managing ESX Admins

    Posted Aug 27, 2024 09:03 AM

    Well, except that doesn't show the actual settings for the ESXAdminsGroup.

    esxcli system settings advanced list | grep -i esx

    esxcli system settings kernel list | grep -i esx

    shows nothing about groups.




  • 5.  RE: Using esxcli command instead of PowerCLI for managing ESX Admins
    Best Answer

    Posted Aug 27, 2024 11:25 AM

    Shockingly, William Lam has the answer.

    vim-cmd hostsvc/advopt/update Config.HostAgent.plugins.hostsvc.esxAdminsGroup string "Ghetto ESXi Admins"

    https://williamlam.com/2012/09/automating-esxi-51-kickstart-tips-tricks.html