Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

cmdlet to set wwpn-alias in cdot

canfield

Looking for a way to use WFA to set wwpn-alias in cDOT 8.2

2 REPLIES 2

bhanuprasad

Here is code for the cmdlet

 

param (
[parameter(Mandatory=$true, HelpMessage="Cluster name or IP address")]
[string]$Cluster,
[parameter(Mandatory=$true, HelpMessage="Storage Virtual Machine name")]
[string]$VserverName,
[parameter(Mandatory=$true, HelpMessage="FCP Alias Name wwpn alias")]
[string]$Alias,
[parameter(Mandatory=$true, HelpMessage="wwpn address")]
[string]$wwpn,
[parameter(Mandatory=$false, HelpMessage="forecelly")]
[bool]$Force
)
# connect to cluster
Connect-WfaCluster $Cluster

try
{
$expression = "Set-NcFcpPortNameAlias -VserverContext "+ $VserverName +" -wwpn " + $wwpn + " -alias "+ $Alias
if ($Force)
{
$expression = $expression + " -Force "

}
Get-WFALogger -Info -message $("Setting up FCP WWPN Alias : " + $VserverName + " belonging to Cluster: "+ $Cluster + " using the expression: "+ $expression)
Invoke-Expression $expression -ErrorAction Stop
}
catch
{
$msg = "Setting up FCP WWPN Alias: " + $VserverName + ". Message: " + $_.Exception.Message
throw $msg
}

 

bingen

Does this Cmdlet meet the requirement?

 

PS C:\Users\administrator.SMIS-RTP1> Get-Help Set-NcFcpPortNameAlias

NAME
    Set-NcFcpPortNameAlias

SYNOPSIS
    Set an alias for a World Wide Port Name of an initiator that might login to the target.


SYNTAX
    Set-NcFcpPortNameAlias [-Wwpn] <String> [-Alias] <String> [-Force] [-VserverContext <String>] [-Controller <NcController[]>]
    [<CommonParameters>]


DESCRIPTION
    Set an alias for a World Wide Port Name of an initiator that might login to the target.


RELATED LINKS
    Get-NcFcpPortNameAlias
    Clear-NcFcpPortNameAlias

REMARKS
    To see the examples, type: "get-help Set-NcFcpPortNameAlias -examples".
    For more information, type: "get-help Set-NcFcpPortNameAlias -detailed".
    For technical information, type: "get-help Set-NcFcpPortNameAlias -full".
    For online help, type: "get-help Set-NcFcpPortNameAlias -online"

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public