New-SCMACAddressPool

Creates a MAC address pool.

Description

The New-SCMACAddressPool cmdlet creates a MAC address pool. A MAC addres pool can be associated with one or more System Center Virtual Machine Manager (VMM) host groups.

For more information about New-SCMACAddressPool, type: "Get-Help New-SCMACAddressPool -online".

Parameters

MACAddressRangeEnd

Required? true
Accept Pipeline Input? false
Position? named
Specifies the last address in a range of static MAC addresses. 

MACAddressRangeStart

Required? true
Accept Pipeline Input? false
Position? named
Specifies the first address in a range of static MAC addresses. 

Name

Required? true
Accept Pipeline Input? false
Position? named
Specifies the name of a VMM object.

VMHostGroup

Required? true
Accept Pipeline Input? false
Position? named
Specifies a virtual machine host group object.

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified object.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.
Requires a VMM host group object, which can be retrieved by using the Get-SCVMHostGroup cmdlet.

Examples

1: Create a MAC address pool.
PS C:\> $HostGroup = Get-SCVMHostGroup | where { $_.Path -eq "All Hosts\HostGroup02\Production" }
PS C:\> New-SCMACAddressPool -Name "MAC Address Pool 01" -VMHostGroup $HostGroup -MACAddressRangeStart "00-1D-D8-B7-1C-00" -MACAddressRangeEnd "00-1D-D8-F4-1F-FF"
The first command gets the host group named "Production" and stores it in the $HostGroup variable.

The second command creates a MAC address pool named "MAC Address Pool 01" with an address range beginning with "00-1D-D8-B7-1C-00" and ending with "00-1D-D8-F4-1F-FF", as delineated by the MACAddressRangeStart and MACAddressRangeEnd parameters. The command also associates the pool with the host group stored in $HostGroup.

See Also