-
Notifications
You must be signed in to change notification settings - Fork 52
Set HPOVAddressPoolSubnet
Update an IPv4 Subnet Pool configuration.
Set-HPOVAddressPoolSubnet [-IPv4Subnet] <Object> [-Gateway] <IPAddress> [-Domain] <String> [-DNSServers] <Array> [-ApplianceConnection] <Object> [<CommonParameters>]
This cmdlet will assist with creating a new IPv4 Address Pool. When creating a new IPv4 Address Subnet, you must provide the Network ID, Subnet Mask (CIDR [e.g. 24] or IPv4 Address Value [e.g. 255.255.255.0]), Gateway and Domain Name. DNS Servers are optional.
To add IPv4 Address Ranges to a Subnet after creating it, please use the New-HPOVAddressPoolRange CMDLET.
-ApplianceConnection <Object>
Aliases [-Appliance]
Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
Default Value: ${Global:ConnectedSessions} | ? Default
Aliases | Appliance |
Required? | true |
Position? | named |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | False |
-DNSServers <Array>
An array of DNS Server IPv4 Addresses.
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Domain <String>
DNS Domain Name of the subnet.
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Gateway <IPAddress>
IPv4 Address of the default gateway for the subnet.
Aliases | None |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-IPv4Subnet <Object>
The IPv4 Subnet resoruce object to update.
Aliases | Subnet |
Required? | true |
Position? | named |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
HPOneView.Appliance.IPv4AddressSubnet [System.Management.Automation.PSCustomObject] IPv4 Address Subnet
HPOneView.Appliance.IPv4AddressSubnet [System.Management.Automation.PSCustomObject] `nUpdated IPv4 Address Subnet
-------------------------- EXAMPLE 1 --------------------------PS C:> Get-HPOVAddressPoolSubnet 192.168.20.0 | Set-HPOVAddressPoolSubnet -Gateway 192.168.20.1
Update the IPv4 Subnet Address Pool's default gateway to the new address.
- [Get-HPOVAddressPool] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVAddressPool)
- [Get-HPOVAddressPoolRange] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVAddressPoolRange)
- [New-HPOVAddressPoolRange] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVAddressPoolRange)
- [Remove-HPOVAddressPoolRange] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Remove-HPOVAddressPoolRange)
- [Get-HPOVAddressPoolSubnet] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVAddressPoolSubnet)
- [Remove-HPOVAddressPoolSubnet] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Remove-HPOVAddressPoolSubnet)