Skip to content

Set-OVManagedSan

Syntax

Set-OVManagedSan
    [-InputObject] <Object>
    [-ZoningPolicy] <String>
    [-EnableAutomatedZoning]
    [-EnableAliasing]
    [-InitiatorNameFormat <String>]
    [-TargetGroupNameFormat <String>]
    [-DisableTargetGroupAliasing <Bool>]
    [-TargetNameFormat <String>]
    [-ZoneNameFormat <String>]
    [-UpdateZoneNames <Boolean>]
    [-UpdateInitiatorAliases <Boolean>]
    [-UpdateTargetAliases <Boolean>]
    [-UpdateTargetGroupAliases <Bool>]
    [-ApplianceConnection <Object>]
    [<CommonParameters>]
Set-OVManagedSan
    [-InputObject] <Object>
    [-EnableAutomatedZoning]
    [-ZoningPolicy <String>]
    [-DisableAliasing]
    [-ApplianceConnection <Object>]
    [<CommonParameters>]
Set-OVManagedSan
    [-InputObject] <Object>
    [-ZoningPolicy] <String>
    [-DisableAutomatedZoning]
    [-ApplianceConnection <Object>]
    [<CommonParameters>]

Description

This Cmdlet is used to Enable or Disable a Managed SAN resource on the appliance. Disabling a Managed SAN will prevent the appliance from configuring FC Zones.

Examples

Example 1

Set-OVManagedSan Fabric_A -ZoningPolicy SingleInitiatorAllTargets

Enable Automated SAN Zoning for "Fabric_A"

Example 2

Set-OVManagedSan Fabric_A -ZoningPolicy NoZoning

Disable Automated SAN Zoning for "Fabric_A"

Example 3

Get-OVManagedSan | Set-OVManagedSan -ZoningPolicy SingleInitiatorAllTargets

Enable Automated SAN Zoning for all managed SAN Fabrics

Parameters

-InputObject <Object>

Managed SAN Name or Object.

Aliases Fabric, Name, ManagedSan, Resource
Required? True
Position? Named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-EnableAutomatedZoning <SwitchParameter>

(DEPRICATED - Please use -ZoningPolicy parameter.) Enable Automated Zoning for the specified Managed SAN. When used, the default Zone Policy "SingleInitiatorAllTargets" is set.

Aliases ZoningEnable, Enable
Required? False
Position? Named
Default value False
Accept pipeline input? false
Accept wildcard characters? False

-DisableAutomatedZoning <SwitchParameter>

(DEPRICATED - Please use -ZoningPolicy parameter.) Disable Automated Zoning for the specified Managed SAN.

Aliases ZoningDisable, Disable
Required? True
Position? Named
Default value False
Accept pipeline input? false
Accept wildcard characters? False

-ZoningPolicy <String>

Policy setting that affects the way that zones are created. Allowed values:

  • NoZoning - Disable all automated zoning on the SAN and ignore policy settings related to zoning.
  • SingleInitiatorAllTargets - Create one zone per initiator containing all targets connected to that initiator.
  • SingleInitiatorSingleStorageSystem - Similar to SingleInitiatorAllTargets except that separate zones are created for targets that reside on different storage systems.
Aliases None
Required? True
Position? Named
Default value SingleInitiatorAllTargets
Accept pipeline input? false
Accept wildcard characters? False

-EnableAliasing <SwitchParameter>

Enable aliases to be created for initiators, targets and target groups based on the specified name formats

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

-DisableAliasing <SwitchParameter>

Disable aliases to be created for initiators, targets and target groups based on the specified name formats

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

-InitiatorNameFormat <String>

Format to use for initiator alias names. The following built-in variables can be used: {hostName}, {initiatorName}, {initiatorWwn}.

Example: "initiator_{hostname}_{initiatorName}"

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

-TargetGroupNameFormat <String>

Format to use for target group (ex. storage system port group) alias names. The following built-in variables can be used: {storageSystemName}, {targetGroupName}.

Example: "TargetGroup_{storageSystemName}_{targetGroupName}"

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

-TargetNameFormat <String>

Format to use for target (ex. storage system port) alias names. The following built-in variables can be used: {storageSystemName}, {targetName}.

Example: "Target_{storageSystemName}_{targetName}"

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

-ZoneNameFormat <String>

Format to use when naming new and updated zones. The following built-in variables can be used: {hostName}, {initiatorName}, {initiatorWwn}, {storageSystemName}, {targetName}, {targetGroupName}

Example: "{initiatorWwn}_{initiatorName}"

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

-UpdateZoneNames <Boolean>

Format to use when naming new and updated zones. The following built-in variables can be used: {hostName}, {initiatorName}, {initiatorWwn}, {storageSystemName}, {targetName}, {targetGroupName}

Example: "{initiatorWwn}_{initiatorName}"

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

-UpdateInitiatorAliases <Boolean>

Format to use when naming new and updated zones. The following built-in variables can be used: {hostName}, {initiatorName}, {initiatorWwn}, {storageSystemName}, {targetName}, {targetGroupName}

Example: "{initiatorWwn}_{initiatorName}"

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

-UpdateTargetAliases <Boolean>

Format to use when naming new and updated zones. The following built-in variables can be used: {hostName}, {initiatorName}, {initiatorWwn}, {storageSystemName}, {targetName}, {targetGroupName}

Example: "{initiatorWwn}_{initiatorName}"

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

-ApplianceConnection <Object>

Specify one [HPEOneView.Appliance.Connection] object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectSessions} | ? Default

Aliases Appliance
Required? False
Position? Named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? False

-DisableTargetGroupAliasing <Bool>

When the zoning policy is not set to SingleInitiatorSingleTarget, Target Group Aliasing can be enabled or disabled.

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

-UpdateTargetGroupAliases <Bool>

When Enabled (True), target and target group aliases will be updated in the SAN whenever resources are renamed in OneView.

Aliases None
Required? False
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

Single Resource

Multiple Resources

Return Values

Single Resource

Multiple Resources