Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Switch-NaFcpPortName


NAME
Switch-NaFcpPortName

SYNOPSIS
Swap port names of two local Fibre Channel target adapters.

SYNTAX
Switch-NaFcpPortName [-FirstAdapter] <String> [-SecondAdapter] <String> [-Co
ntroller <NaController>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Swap port names of two local Fibre Channel target adapters.


PARAMETERS
-FirstAdapter <String>
One of the adapters to swap their port names. It has to be a local adapt
er in standby or single_image cfmode.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-SecondAdapter <String>
One of the adapters to swap their port names. It has to be a local adapt
er in standby or single_image cfmode.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


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 and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
NetApp.Ontapi.Filer.Fcp.FcpConfigAdapterInfo


NOTES


Category: fcp
API: fcp-port-name-swap

-------------- Example 1 --------------

C:\PS>Switch-NaFcpPortName 0c 0d


Swap the WWPN's for FC target adapters 0c and 0d.


Adapter : 0c
AdapterType : Local
CacheLineSize : 16
ConnectionEstablished : loop
DataLinkRate : 0
ErrorMsg :
ExternalGbicEnabled : False
FabricEstablished : False
FirmwareRev : 4.5.2
HardwareRev : 2
InfoName : Dual-channel, QLogic 2432 (2462)
LoopId :
MediaType : auto
NodeName : 50:0a:09:80:87:09:3b:1f
PacketSize : 2048
PartnerAdapter :
PciBusWidth :
PciClockSpeed :
PortAddress : 0
PortId :
PortName : 50:0a:09:83:97:09:3b:1f
Speed : auto
SramParityEnabled : True
Standby : False
State : offlined by user/system

Adapter : 0d
AdapterType : Local
CacheLineSize : 16
ConnectionEstablished : loop
DataLinkRate : 0
ErrorMsg :
ExternalGbicEnabled : False
FabricEstablished : False
FirmwareRev : 4.5.2
HardwareRev : 2
InfoName : Dual-channel, QLogic 2432 (2462)
LoopId :
MediaType : auto
NodeName : 50:0a:09:80:87:09:3b:1f
PacketSize : 2048
PartnerAdapter :
PciBusWidth :
PciClockSpeed :
PortAddress : 0
PortId :
PortName : 50:0a:09:82:97:09:3b:1f
Speed : auto
SramParityEnabled : True
Standby : False
State : offlined by user/system



RELATED LINKS
Get-NaFcpAdapter







 Data ONTAP® PowerShell Toolkit