Wednesday, October 26, 2016

Script ESX Power Management -ESXCLI PLINK

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””

No comments:

Post a Comment

Vmware NSX SSL creation 

Using OpenSSL for NSX Manager SSL import: Creates CSR and 4096 bit KEY Creating NSX 6.4.2 SSL    openssl req -out nsxcert.csr -newkey rsa:40...