Set HPOVAddressPoolSubnet - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Set-HPOVAddressPoolSubnet

Update an IPv4 Subnet Pool configuration.

SYNTAX

Set-HPOVAddressPoolSubnet [-InputObject] <Object>[ [-SubnetMask] <IPAddress>][ [-Gateway] <IPAddress>][ [-Domain] <String>][ [-DNSServers] <Array>][ [-ApplianceConnection] <Object>] [<CommonParameters>]

Detailed Description

This cmdlet will assist with updating an existing IPv4 Address Pool. When updating an IPv4 Address Subnet, you must provide the Subnet Object or Name to modify. Only the Gateway, Domain Name, and DNS Servers can be updated once an IPv4 Subnet has been assigned to a resoruce.

Parameters

-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? false
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? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Domain <String>

DNS Domain Name of the subnet.

Aliases None
Required? false
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? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

Aliases [-Subnet, -IPv4Subnet]

The IPv4 Subnet resource object to update.

Aliases Subnet, IPv4Subnet
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-SubnetMask <IPAddress>

IPv4 Subnet Mask of the subnet. Please know that if the Subnet is associated with another resource (Ethernet Network, Logical Enclosure or Deployment Server), there will be an error as the mask cannot be changed until it is unassociated with the resource.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
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)

Input Types

HPOneView.Appliance.IPv4AddressSubnet [System.Management.Automation.PSCustomObject]

IPv4 Address Subnet

Return Values

HPOneView.Appliance.IPv4AddressSubnet [System.Management.Automation.PSCustomObject]

Updated IPv4 Address Subnet

Examples

 -------------------------- 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.

Related Links


Top

HPE OneView 4.00 Library

Set-HPOVAddressPoolSubnet

Update an IPv4 Subnet Pool configuration.

SYNTAX

Set-HPOVAddressPoolSubnet [-InputObject] <Object>[ [-SubnetMask] <IPAddress>][ [-Gateway] <IPAddress>][ [-Domain] <String>][ [-DNSServers] <Array>][ [-ApplianceConnection] <Object>] [<CommonParameters>]

Detailed Description

This cmdlet will assist with updating an existing IPv4 Address Pool. When updating an IPv4 Address Subnet, you must provide the Subnet Object or Name to modify. Only the Gateway, Domain Name, and DNS Servers can be updated once an IPv4 Subnet has been assigned to a resoruce.

Parameters

-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? false
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? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Domain <String>

DNS Domain Name of the subnet.

Aliases None
Required? false
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? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

Aliases [-Subnet, -IPv4Subnet]

The IPv4 Subnet resource object to update.

Aliases Subnet, IPv4Subnet
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-SubnetMask <IPAddress>

IPv4 Subnet Mask of the subnet. Please know that if the Subnet is associated with another resource (Ethernet Network, Logical Enclosure or Deployment Server), there will be an error as the mask cannot be changed until it is unassociated with the resource.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
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)

Input Types

HPOneView.Appliance.IPv4AddressSubnet [System.Management.Automation.PSCustomObject]

IPv4 Address Subnet

Return Values

HPOneView.Appliance.IPv4AddressSubnet [System.Management.Automation.PSCustomObject]

Updated IPv4 Address Subnet

Examples

 -------------------------- 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.

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️