ESXi 5 Scriptable Power Management Settings Commands

esxcfg-advcfg

# Get the current Active Policy
esxcfg-advcfg –get /Power/CpuPolicy

# Low Power
esxcfg-advcfg -s low /Power/CpuPolicy

# Balanced
esxcfg-advcfg -s dynamic /Power/CpuPolicy

# High Performance
esxcfg-advcfg -s static /Power/CpuPolicy
esxcli
# Get the current Active Policy
esxcli system settings advanced list -o “/Power/CpuPolicy”

# Low Power
esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “low”

# Balanced
esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “dynamic”

# High Performance
esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “Static”

from Linux
ssh root@ESXi-HOSTNAME-OR-IP “esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “low””

from Windows
plink root@ESXi-HOSTNAME-OR-IP -l root -pw PASSWORD “esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “low””