Skip to content

Get-OVSwitch

Syntax

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

Description

Retrieve a Switch that is managed by HPE OneView. Currently, HPE OneView can Manage or Monitor Cisco Nexus-family of switches. This Cmdlet will retrieve the specified or all Logical Switch Group resources.

Examples

Example 1

Get-OVSwitch

Get all logical switch group resources found on the default appliance connection.

Example 2

Get-OVSwitch -Name "10.1.1.1"

Get the "10.1.1.1" switch resource.

Parameters

-Name <String>

The Switch resource Name. Supports the * wildcard character.

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

-Label <String>

Specify the label associated with resources.

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

-Scope <Object>

Filter resources based on provided Scope membership. By default, all resources for the accounts Active Permissions will be displayed. Allowed values:

  • AllResources
  • AllResourcesInScope
  • [HPEOneView.Appliance.ScopeCollection]
  • [HPEOneView.Appliance.ConnectionPermission]
Aliases None
Required? False
Position? Named
Default value AllResourcesInScope
Accept pipeline input? false
Accept wildcard characters? False

-ApplianceConnection <Object>

Specify one or more [HPEOneView.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.

Aliases Appliance
Required? False
Position? Named
Default value (${Global:ConnectedSessions} | ? Default)
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

Async task resource after a Logical Switch Group has been created.

Return Values

The async task resource object to monitor (if -Async was used) or results.

Collection of Logical Switch Group resources.