The Get-SCStaticIPAddressPool cmdlet gets one or more System Center Virtual Machine Manager (VMM) static IP address pools.
For more information about Get-SCStaticIPAddressPool, type: "Get-Help Get-StaticIPAddressPool -online".
Parameters
Name
Required?
false
Accept Pipeline Input?
false
Position?
0
Specifies the name of a VMM object.
IPAddress
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an IPv4 or IPv6 address.
IPv4
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates if an IPv4 address is needed
IPv6
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates if an IPv6 address is needed
Subnet
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an IP subnet (IPv4 or IPv6) in Classless Inter-Domain Routing (CIDR) notation.
Example format for an IPv4 subnet: 192.168.0.1/24
Example format for an IPv6 subnet: FD4A:29CD:184F:3A2C::/64
NOTE: An IP subnet cannot overlap with any other subnet in a host group or child host groups.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Name
Required?
false
Accept Pipeline Input?
false
Position?
0
Specifies the name of a VMM object.
Cloud
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies a private cloud object.
IPAddress
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an IPv4 or IPv6 address.
Subnet
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an IP subnet (IPv4 or IPv6) in Classless Inter-Domain Routing (CIDR) notation.
Example format for an IPv4 subnet: 192.168.0.1/24
Example format for an IPv6 subnet: FD4A:29CD:184F:3A2C::/64
NOTE: An IP subnet cannot overlap with any other subnet in a host group or child host groups.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Name
Required?
false
Accept Pipeline Input?
false
Position?
0
Specifies the name of a VMM object.
VMHostGroup
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies a virtual machine host group object.
IPAddress
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an IPv4 or IPv6 address.
IPv4
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates if an IPv4 address is needed
IPv6
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates if an IPv6 address is needed
Subnet
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an IP subnet (IPv4 or IPv6) in Classless Inter-Domain Routing (CIDR) notation.
Example format for an IPv4 subnet: 192.168.0.1/24
Example format for an IPv6 subnet: FD4A:29CD:184F:3A2C::/64
NOTE: An IP subnet cannot overlap with any other subnet in a host group or child host groups.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Name
Required?
false
Accept Pipeline Input?
false
Position?
0
Specifies the name of a VMM object.
LogicalNetworkDefinition
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies a logical network definition (also called a network site) that contains the subnet that the IP address pool serves as specified by the Subnet parameter.
IPAddress
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an IPv4 or IPv6 address.
IPv4
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates if an IPv4 address is needed
IPv6
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates if an IPv6 address is needed
Subnet
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies an IP subnet (IPv4 or IPv6) in Classless Inter-Domain Routing (CIDR) notation.
Example format for an IPv4 subnet: 192.168.0.1/24
Example format for an IPv6 subnet: FD4A:29CD:184F:3A2C::/64
NOTE: An IP subnet cannot overlap with any other subnet in a host group or child host groups.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Examples
1: Get all available IPv4 IP address
pools for a specified subnet.
This command gets the static IP address pool for the specified IPv4 subnet address.
2: Get all IPv4 IP address pools for a
specified host group.
PS C:\> $HostGroup = Get-SCVMHostGroup | where { $_.Path -eq "All Hosts\HostGroup02\Production" }
PS C:\> Get-SCStaticIPAddressPool -IPv4 -VMHostGroup $HostGroup
The first command gets the host group with the path of All Hosts\HostGroup02\Production and stores it in the $HostGroup variable.
The second command gets the static IPv4 IP address pools for the host group stored in $HostGroup.