Skip to main content

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 one or more network set resources from the connected HPE OneView appliance.

Syntax

Get-OVNetworkSet
    [-Name <String>]
    [-Label <String>]
    [-Scope <Object>]
    [-ApplianceConnection <Object>]
    [-ExportFile <String>]
    [<CommonParameters>]

Description

Get-OVNetworkSet queries the HPE OneView appliance for network set resources. A network set is a group of Ethernet networks that can be assigned as a single object to a server profile connection, allowing a server to access multiple VLANs through one logical connection. Network sets are referenced by server profiles to simplify multi-VLAN NIC assignments. One network in a set can be designated as the untagged (native) network, which carries untagged traffic. When no parameters are specified, all network sets within the current scope are returned.

Parameters

Name
String
The name of the network set to retrieve. When omitted, all network sets are returned.
Label
String
Filter results by a resource label assigned to the network set.
Scope
Object
Filter results to resources that belong to the specified scope. Defaults to AllResourcesInScope.
ApplianceConnection
Object
The appliance connection object or name. Defaults to the default connected session.
ExportFile
String
Path to a JSON file where the retrieved network set objects will be exported.

Examples

Return all network sets

Get-OVNetworkSet

Return a specific network set by name

Get-OVNetworkSet -Name "Production Networks"

List existing network sets before creating new ones

Write-Host "Existing Network Sets:"
Get-OVNetworkSet

Output

HPEOneView.Networking.NetworkSet objects.