Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Retrieves the current network configuration of the HPE OneView appliance, including hostname, IPv4/IPv6 settings, DNS servers, and NTP servers.Syntax
Description
Get-OVApplianceNetworkConfig returns the full network configuration of the connected HPE OneView appliance. This includes the appliance hostname, IPv4 and IPv6 addressing mode and addresses, DNS name servers, search domains, and NTP server configuration.
The returned object is typed as HPEOneview.Appliance.ApplianceServerConfiguration. Each interface within applianceNetworks is typed as HPEOneview.Appliance.ApplianceServerConfiguration.ApplianceNetworks.
If -Location is specified, the configuration is exported as a JSON file to the given directory path instead of being returned to the pipeline. The file is named <ApplianceName>_ApplianceNetConf.json.
Parameters
Directory path to export the network configuration as a JSON file. The path must exist. Alias:
x, export, exportFile.Specifies the HPE OneView appliance connection(s) to retrieve network configuration from. Defaults to the default connection from
${Global:ConnectedSessions}. Alias: Appliance.Examples
Example 1: Retrieve network configuration from the default appliance connectionC:\Backup\Appliance\myappliance_ApplianceNetConf.json.
Example 3: Query a specific appliance connection
Output
HPEOneview.Appliance.ApplianceServerConfiguration
An object containing the full appliance network configuration. The applianceNetworks property is an array of network interface objects (HPEOneview.Appliance.ApplianceServerConfiguration.ApplianceNetworks), each describing hostname, IPv4/IPv6 type and addresses, DNS name servers, search domains, and domain name. When -Location is used, a System.IO.FileInfo object for the exported JSON file is returned instead.