-
Notifications
You must be signed in to change notification settings - Fork 52
Get HPOVApplianceNetworkConfig
Retrieves the configuration of the primary NIC of the appliance
Get-HPOVApplianceNetworkConfig[ [-Location] <String>][ [-ApplianceConnection] <Object>] [<CommonParameters>]
Retrieves the configuration parameters of the primary network interface on the appliance, which can be captured into a customer object for further operation, or captured to a text file in json format.
-ApplianceConnection <Object>
Aliases [-Appliance]
Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).
Default Value: ${Global:ConnectedSessions} | ? Default
Aliases | Appliance |
Required? | false |
Position? | 1 |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Location <String>
Aliases [-ExportFile] Directory to where the applinace network configuration will be exported to. Exported file name will be "{$ApplianceConnection.Name}_ApplianceNetConf.json".
Aliases | x, export, exportFile |
Required? | false |
Position? | 0 |
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)
None. You cannot pipe objects to this cmdlet.
HPOneView.Appliance.ApplianceServerConfiguration [System.Management.Automation.PSCustomObject] `nA collection object containing the properties and values of the primary network interface of the appliance.
HPOneView.Appliance.ApplianceServerConfiguration.ApplianceNetworks [System.Management.Automation.PSCustomObject] `nThe applianceNetworks property will display the appliance Networking in either a Format-Table (default) or Format-List view.
System.IO.FileSystemInfo `nIf exporting the appliance network configuration, the file object created will be returned.
-------------------------- EXAMPLE 1 --------------------------PS C:\> Get-HPOVApplianceNetworkConfig Hostname IPv4Type IPv4Address IPv4DNS IPv6Type IPv6Address IPv6DNS -------- -------- ----------- ------- -------- ----------- ------- hpov1.domain.com STATIC 172.20.51.4\24 {172.20.10.41, 172.20.10.42} UNCONFIGURE {} hpov2.domain.com STATIC 172.20.52.4\24 {172.20.10.41, 172.20.10.42} UNCONFIGURE {}
Outputs the configuration of the primary network interface to standard output.
-------------------------- EXAMPLE 2 --------------------------PS C:\> Get-HPOVApplianceNetworkConfig -Appliance hpov1.domain.com | fl Hostname : hpov1.domain.com IPv4Type : STATIC IPv4Address : 172.20.51.4 IPv4Mask : 255.255.255.0 IPv4Gateway : 172.20.51.1 IPv4DNS : {172.20.10.41, 172.20.10.42} IPv6Type : UNCONFIGURE IPv6Address : IPv6Mask : IPv6Gateway : IPv6DNS : {}
Outputs the configuration of the primary network interface and pipe to Format-List for more information about the network configuration.
-------------------------- EXAMPLE 3 --------------------------PS C:\> $myAppNetConfig = Get-HPOVApplianceNetworkConfig -Appliance hpov1.domain.com
Outputs the configuration of the primary network interface of the appliance to the object variable $myAppNetConfig
-------------------------- EXAMPLE 4 --------------------------PS C:\> Get-HPOVApplianceNetworkConfig -Location .
Outputs the configuration of the primary network interface of the appliance to the current directory.
- [Set-HPOVApplianceNetworkConfig] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Set-HPOVApplianceNetworkConfig)
- [Set-HPOVApplianceDateTime] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Set-HPOVApplianceDateTime)
- [Get-HPOVApplianceDateTime] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVApplianceDateTime)
### HPE OneView 2.00 Library
Retrieves the configuration of the primary NIC of the appliance
Get-HPOVApplianceNetworkConfig [-Location] <String> [-ApplianceConnection] <Object> [<CommonParameters>]
Retrieves the configuration parameters of the primary network interface on the appliance, which can be captured into a customer object for further operation, or captured to a text file in json format.
-ApplianceConnection <Object>
Aliases [-Appliance]
Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).
Default Value: ${Global:ConnectSessions} | ? Default
Aliases | Appliance |
Required? | true |
Position? | 1 |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Location <String>
Aliases [-x, -export, -exportFile] The file system location where to export the appliance configuration to a JSON file.
Aliases | x, export, exportFile |
Required? | true |
Position? | 0 |
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)
None. You cannot pipe objects to this Cmdlet.
HPOneView.Appliance.ApplianceServerConfiguration [System.Management.Automation.PSCustomObject] `nA collection object containing the properties and values of the primary network interface of the appliance.
HPOneView.Appliance.ApplianceServerConfiguration.ApplianceNetworks [System.Management.Automation.PSCustomObject] `nThe applianceNetworks property will display the appliance Networking in either a Format-Table (default) or Format-List view.
-------------------------- EXAMPLE 1 --------------------------PS C:\> Get-HPOVApplianceNetworkConfig Hostname IPv4Type IPv4Address IPv4DNS IPv6Type IPv6Address IPv6DNS -------- -------- ----------- ------- -------- ----------- ------- hpov1.domain.com STATIC 172.20.51.4\24 {172.20.10.41, 172.20.10.42} UNCONFIGURE {} hpov2.domain.com STATIC 172.20.52.4\24 {172.20.10.41, 172.20.10.42} UNCONFIGURE {}
Outputs the configuration of the primary network interface to standard output.
-------------------------- EXAMPLE 2 --------------------------PS C:\> Get-HPOVApplianceNetworkConfig -Appliance hpov1.domain.com | fl Hostname : hpov1.domain.com IPv4Type : STATIC IPv4Address : 172.20.51.4 IPv4Mask : 255.255.255.0 IPv4Gateway : 172.20.51.1 IPv4DNS : {172.20.10.41, 172.20.10.42} IPv6Type : UNCONFIGURE IPv6Address : IPv6Mask : IPv6Gateway : IPv6DNS : {}
Outputs the configuration of the primary network interface and pipe to Format-List for more information about the network configuration.
-------------------------- EXAMPLE 3 --------------------------PS C:\> $myAppNetConfig = Get-HPOVApplianceNetworkConfig -Appliance hpov1.domain.com
Outputs the configuration of the primary network interface of the appliance to the object variable $myAppNetConfig
-------------------------- EXAMPLE 4 --------------------------PS C:\> Get-HPOVApplianceNetworkConfig -exportFile "c:\myApplianceConfig\applianceNetworkConfig.json"
Outputs the configuration of the primary network interface of the appliance to the file applianceNetworkConfig.json
- [Set-HPOVApplianceNetworkConfig] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Set-HPOVApplianceNetworkConfig)
### HPE OneView 1.20 Library
Retrieves the configuration of the primary NIC of the appliance
Get-HPOVApplianceNetworkConfig[ [-exportFile] <exportFile>] [<CommonParameters>]
Retrieves the configuration parameters of the primary network interface on the appliance, which can be captured into a customer object for further operation, or captured to a text file in json format.
-exportFile <exportFile>
Aliases [-x, -export] Optional. Path and file name to export the resulting command output in json format.
Aliases | None. |
Required? | false |
Position? | 1 |
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)
None. You cannot pipe objects to this cmdlet.
HPOneView.Appliance.ApplianceServerConfiguration [System.Management.Automation.PSCustomObject] `nA collection object containing the properties and values of the primary network interface of the appliance.
HPOneView.Appliance.ApplianceServerConfiguration.ApplianceNetworks [System.Management.Automation.PSCustomObject] `nThe applianceNetworks property will display the appliance Networking in either a Format-Table (default) or Format-List view.
-------------------------- EXAMPLE 1 --------------------------PS C:\> Get-HPOVApplianceNetworkConfig Hostname IPv4Type IPv4Address IPv4DNS IPv6Type IPv6Address IPv6DNS -------- -------- ----------- ------- -------- ----------- ------- hpov.domain.com STATIC 172.20.51.4\24 {172.20.10.41, 172.20.10.42} UNCONFIGURE {}
Outputs the configuration of the primary network interface to standard output.
-------------------------- EXAMPLE 2 --------------------------PS C:\> Get-HPOVApplianceNetworkConfig | fl Hostname : hpov.domain.com IPv4Type : STATIC IPv4Address : 172.20.51.4 IPv4Mask : 255.255.255.0 IPv4Gateway : 172.20.51.1 IPv4DNS : {172.20.10.41, 172.20.10.42} IPv6Type : UNCONFIGURE IPv6Address : IPv6Mask : IPv6Gateway : IPv6DNS : {}
Outputs the configuration of the primary network interface and pipe to Format-List for more information about the network configuration.
-------------------------- EXAMPLE 3 --------------------------PS C:\> $myAppNetConfig = Get-HPOVApplianceNetworkConfig
Outputs the configuration of the primary network interface of the appliance to the object variable $myAppNetConfig
-------------------------- EXAMPLE 4 --------------------------PS C:\> Get-HPOVApplianceNetworkConfig -exportFile "c:\myApplianceConfig\applianceNetworkConfig.json"
Outputs the configuration of the primary network interface of the appliance to the file applianceNetworkConfig.json
- [Set-HPOVApplianceNetworkConfig] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Set-HPOVApplianceNetworkConfig)