PowerCLI: Resolving improper memory limits on your virtual machines

From VI-Toolkit
Revision as of 19:36, 28 August 2009 by Wila (talk | contribs) (Added memory limit resolve problem script from Scott Herold)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

QueryMem.ps1

author: Scott Herold

Description

An interactive scripts that allows you to query VM's for possible memory limit configuration errors and helps you to resolve these problems.

Usage:

Query Resource Allocations:

QueryMem.ps1 -VMHost server1.domain.com -User administrator -Password passw0rd -Action query

Idenfity Potential Misconfigurations:

QueryMem.ps1 -VMHost server1.domain.com -User administrator -Password passw0rd -Action id

Modify Misconfigured VMs:

QueryMem.ps1 -VMHost server1.domain.com -User administrator -Password passw0rd -Action resolve `
                       -vm vm1, vm2, vm3

Location

http://www.vmguru.com/index.php/articles-mainmenu-62/scripting/98-resolving-improper-memory-limits-on-your-virtual-machines