PowerCLI

 View Only
  • 1.  Setting advanced configuration (power management settings) on ESXi without reboot

    Posted Apr 17, 2015 02:44 PM

    Hello:

    I want to adjust power management settings (Configuration - Hardware - Power Management - Properties - Power Management Policy) and set it as "High Performance" on the host via PoweCLI.

    I found, that I can easily do it by using the following command:

    Set-VMHostAdvancedConfiguration -Name "Power.CPUPolicy" -Value "High Performance"

    However, even the command executed just fine and I can verify the change by running

    Get-VMHostAdvancedConfiguration -Name "Power.CPUPolicy"

    the screen still shows "old" policy and it will reflect the change on the screen only after reboot.

    Is it possible to adjust power management settings via script without reboot?

    Thank you!



  • 2.  RE: Setting advanced configuration (power management settings) on ESXi without reboot

    Posted Apr 17, 2015 05:59 PM

    Afaik, this does not require a reboot of the host.

    Did you already try with the Set-AdvancedSetting cmdlet ?

    Get-AdvancedSetting -Entity $esx -Name 'Power.CPUPolicy' |

    Set-AdvancedSetting -Value 'High Performance' -Confirm:$false



  • 3.  RE: Setting advanced configuration (power management settings) on ESXi without reboot

    Posted Apr 17, 2015 06:10 PM

    Luc,

    Still the same...

    However, if I connect through VIC directly to the host I can see the change right away.

    I'll probably need to disconnect/connect the host back (should be faster than reboot).

    Thank you very much for your help as always!!!