powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Set-ResourcePool



NAME
Set-ResourcePool

SYNOPSIS
Changes the properties of the specified resource pool.

SYNTAX
Set-ResourcePool [-ResourcePool] [-Name ] [-CpuExpandableReservation []] [-CpuLim
itMhz ] [-CpuReservationMhz ] [-CpuSharesLevel ] [-MemExpandableReservation []]
[-MemLimitMB ] [-MemReservationMB ] [-MemSharesLevel ] [-NumCpuShares ] [-NumMem
Shares ] [-Server ] [-WhatIf] [-Confirm] []


DESCRIPTION
Changes the properties of the specified resource pool.


PARAMETERS
-ResourcePool
Specify the resource pool you want to configure.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Name
Specify a new name for the resource pool.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-CpuExpandableReservation []
Indicate that the CPU reservation can grow beyond the specified value if the parent resource pool has unreserve
d resources.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-CpuLimitMhz
Specify a CPU usage limit in MHz. If this parameter is set, utilization will not exceed this limit even if ther
e are available resources.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-CpuReservationMhz
Specify the guaranteed available CPU in MHz.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-CpuSharesLevel
Specify the CPU allocation level for this pool. This property is used in relative allocation between resource c
onsumers. The valid enumeration values are Custom, High, Low, and Normal.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-MemExpandableReservation []
Indicate that the memory reservation can grow beyond the specified value if the parent resource pool has unrese
rved resources.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-MemLimitMB
Specify a memory usage limit in MB. If this parameter is set, utilization will not exceed this limit even if th
ere are available resources.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-MemReservationMB
Specify the guaranteed available memory in MB.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-MemSharesLevel
Specify the memory allocation level for the resource pool. This property is used in relative allocation between
resource consumers. The valid enumeration values are Custom, High, Low, and Normal.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-NumCpuShares
Specify the CPU allocation level for the resource pool. This property is used in relative allocation between re
source consumers. This parameter is ignored unless CpuSharesLevel is set to Custom.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-NumMemShares
Specify the memory allocation level for the resource pool. This property is used in relative allocation between
resource consumers. This parameter is ignored unless MemSharesLevel is set to Custom.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false,
the cmdlet runs without asking for user confirmation.

Required? false
Position? named
Default value $true
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
ResourcePool


NOTES




-------------- Example 1 --------------

C:\PS>Set-ResourcePool -Resourcepool Resourcepool -NumCpuShares 512 -MemLimitMB 256


Sets the CPU allocation level and the limit on memory usage in MB for the resource pool named Resourcepool.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Set-ResourcePool.html
Get-ResourcePool
Move-ResourcePool
New-ResourcePool
Remove-ResourcePool