NAME

Get-HPOVNetwork

SYNOPSIS

Get created networks.

SYNTAX

Get-HPOVNetwork [[-name] <String>] [[-type] <String>] [[-exportFile] <String>] [<CommonParameters>]

DESCRIPTION

Obtain a collection of network resources which have the specified type and/or name. The default connection information is included in the returned network resources.

PARAMETERS

-name <String>
The name of the network resource to be returned. All network resources will be returned if ommitted.
Aliases None.           
Required? false
Position? 1
Default value <none>
Accept pipeline input? false
Accept wildcard characters?     false

-type <String>
The type of the network resource to be returned. Valid types are "Ethernet" for Ethernet networks, "FC" or "FibreChannel" for Fibre Channel networks. All network resources will be returned if omitted.
Aliases None.           
Required? false
Position? 2
Default value <none>
Accept pipeline input? false
Accept wildcard characters?     false

-exportFile <String>
The full path and file name to export the JSON formatted definition of the networks to a file. The directory for the file is validated prior to execution and the function returns an error is the directory does not exist.
Aliases -x, -export    
Required? false
Position? 3
Default value <none>
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).

INPUTS

None.

OUTPUTS

System.Management.Automation.PSCustomObject

Single Network

System.Array

Multiple Networks

The matching network resources.

RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

PS C:\> $net41 = Get-HPOVNetwork -name "Net-41"
Return the network resource with the name "Net-41"

-------------------------- EXAMPLE 2 --------------------------

PS C:\> $ethNets = Get-HPOVNetwork -type Ethernet
Return all the Ethernet network resources

-------------------------- EXAMPLE 3 --------------------------

PS C:\> Get-HPOVNetwork -exportFile "c:\myApplianceConfig\myNets.json"
Exports all networks to the file myNets.json in JSON format.

-------------------------- EXAMPLE 4 --------------------------

PS C:\> Get-HPOVNetwork -x "c:\myApplianceConfig\myNets.json" -type Ethernet
Exports only the ethernet networks to the file myNets.json.

-------------------------- EXAMPLE 5 --------------------------

PS C:\> Get-HPOVNetwork -Report

Ethernet Networks
-----------------

Name      VLAN ID Purpose Typical Bandwidth Max Bandwidth Smartlink Private Network Status
----      ------- ------- ----------------- ------------- --------- --------------- ------
VLAN 10-A      10 General              2500         10000      True           False OK
VLAN 10-B      10 General              2500         10000      True           False OK
VLAN 20-A      20 General              2500         10000      True           False OK
VLAN 20-B      20 General              2500         10000      True           False OK
VLAN 30-A      30 General              2500         10000      True           False OK
VLAN 30-B      30 General              2500         10000      True           False OK
VLAN 40-A      40 General              2500         10000      True           False OK
VLAN 40-B      40 General              2500         10000      True           False OK
VLAN 50-A      50 General              2500         10000      True           False OK
VLAN 50-B      50 General              2500         10000      True           False OK
VLAN 60-A      60 General              2500         10000      True           False OK
VLAN 60-B      60 General              2500         10000      True           False OK


FC Networks
-----------

Name                  Fabric Type  Uplink Bandwidth Link Stability Time (sec) Auto Login Redistribution Status
----                  -----------  ---------------- ------------------------- ------------------------- ------
DirectAttach Fabric A DirectAttach Auto                                     0                     False OK
DirectAttach Fabric B DirectAttach Auto                                     0                     False OK
Production Fabric A   FabricAttach Auto                                    30                      True OK
Production Fabric B   FabricAttach Auto                                    30                      True OK
Get all available networks, and display a report.

Last edited Mar 14, 2014 at 7:54 PM by ChrisLynchHP, version 5