Skip to content

Get HPOVLogicalInterconnectGroup

Chris Lynch edited this page Jul 25, 2016 · 43 revisions

HPE OneView 2.00 Library

Get-HPOVLogicalInterconnectGroup

Retrieve Logical Interconnect Group resource(s).

SYNTAX

Get-HPOVLogicalInterconnectGroup [-Name] <String> [-ApplianceConnection] <Object> [-exportFile] <String> [<CommonParameters>]
Get-HPOVLogicalInterconnectGroup [-Resource] <Object> [-ApplianceConnection] <Object> [<CommonParameters>]

Detailed Description

Retrieves a list of all Logical Interconnect Groups or just specific ones via a query if the name parameter is provided. The output can be sent to a file using the exportFile parameter.

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? true
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? false
Accept wildcard characters?    False

-Name <String>

The name of the Logical Interconnect Group to retrieve.

Aliases None
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Resource <Object>

Pipeline input resource generated from Wait-HPOVTaskComplete, or successfully completed Async Task resource object.

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

-exportFile <String>

Aliases [-x, -export] The full path and file name to export the contents retrieved from the call to Get-HPOVLogicalInterconnectGroup.

Aliases x, export
Required? true
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.TaskResource [System.Management.Automation.PSCustomObject] Successfully Completed Async task resource from Wait-HPOVTaskComplete or other supported method.

Return Values

HPOneView.Networking.LogicalInterconnectGroup [System.Management.Automation.PSCustomObject] A Logical Interconnect Group resource.

System.Collections.ArrayList <HPOneView.Networking.LogicalInterconnectGroup> A collection of Logical Interconnect Group resources.

Examples

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

PS C:\> Get-HPOVLogicalInterconnectGroup

Returns all Logical Interconnect Groups defined on the appliance to standard output.

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

PS C:\> Get-HPOVLogicalInterconnectGroup "Production"

Returns just the Production Logical Interconnect Group object to standard output.

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

PS C:\> $myLigs = Get-HPOVLogicalInterconnectGroup

Returns the Get-HPOVLogicalInterconnectGroup query and stores it in the object $myLigs

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

PS C:\> $LigName = 'VC FF Virt Prod' PS C:\> $CreatedLig = New-HPOVLogicalInterconnectGroup -Name $LigName -bays @{1 = "FlexFabric";2 = "FlexFabric"} -EnableIgmpSnooping $True -InternalNetworks 'VMMigration Network' | Wait-HPOVTaskComplete | Get-HPOVLogicalInterconnectGroup PS C:\> $CreatedLig Name Enclosure Groups ---- ---------------- VC FF Virt Prod

Create a new Logical Interconnect Group resource, wait for the task to complete, then retrieve the created resource.

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

PS C:\> Get-HPOVLogicalInterconnectGroup -exportFile "c:\myApplianceConfig\LogicaICGs.json"

Returns the Get-HPOVLogicalInterconnectGroup query results to the file c:\myApplianceConfig\LogicaICGs.json

Related Links

HPE OneView 1.20 Library

Get-HPOVLogicalInterconnectGroup

Retrieve Logical Interconnect Group resource(s).

SYNTAX

Get-HPOVLogicalInterconnectGroup[ [-name] <name>][ [-exportFile] <exportFile>] [<CommonParameters>]

Detailed Description

Retrieves a list of all Logical Interconnect Groups or just specific ones via a query if the name parameter is provided. The output can be sent to a file using the exportFile parameter.

Parameters

-name <name>

The name of the Logical Interconnect Group to retrieve.

Aliases None.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?    false

-exportFile <exportFile>

Aliases [-x, -export] The full path and file name to export the contents retrieved from the call to Get-HPOVLogicalInterconnectGroup.

Aliases None.
Required? false
Position? 2
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

None. You cannot pipe objects to this cmdlet.

Return Values

System.Array A Logical Interconnect Group or collection of Logical Interconnect Groups.

Examples

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

PS C:\> Get-HPOVLogicalInterconnectGroup

Returns all Logical Interconnect Groups defined on the appliance to standard output.

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

PS C:\> Get-HPOVLogicalInterconnectGroup "Production"

Returns just the Production Logical Interconnect Group object to standard output.

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

PS C:\> $myLigs = Get-HPOVLogicalInterconnectGroup

Returns the Get-HPOVLogicalInterconnectGroup query and stores it in the object $myLigs

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

PS C:\> Get-HPOVLogicalInterconnectGroup -exportFile "c:\myApplianceConfig\LogicaICGs.json"

Returns the Get-HPOVLogicalInterconnectGroup query results to the file c:\myApplianceConfig\LogicaICGs.json

Related Links

Wiki Table of Contents

Clone this wiki locally