ESXi 5 Scriptable Power Management Settings Commands
esxcfg-advcfg
# Get the current Active Policy
esxcfg-advcfg –get /Power/CpuPolicy
# Get the current Active Policy
esxcfg-advcfg –get /Power/CpuPolicy
# Low Power
esxcfg-advcfg -s low /Power/CpuPolicy
esxcfg-advcfg -s low /Power/CpuPolicy
# Balanced
esxcfg-advcfg -s dynamic /Power/CpuPolicy
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”
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”
esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “low”
# Balanced
esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “dynamic”
esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “dynamic”
# High Performance
esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “Static”
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””
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””
plink root@ESXi-HOSTNAME-OR-IP -l root -pw PASSWORD “esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “low””
No comments:
Post a Comment