cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1629
Views
0
Helpful
3
Replies

How to configure Fiber Channel Port Admin State to Disabled

srehling
Cisco Employee
Cisco Employee

Is there a way to change the admin state of a fiber channel port using UCS PowerTool? I can see the ports with the following command:

get-UcsFiFcPort

All I want to do is set the admin state for all ports to disabled from UCS PowerTools. The following is one of the ports I need to modify. This is for a cleanly loaded pair of Fabric Interconnects. I just need to shutdown the ports so there are no errors when the fabrics are first configured for a lab.

AdminState      : enabled
AdminTransport  : fc
AggrPortId      : 0
ChassisId       : N/A
Encap           : unknown
EpDn            : fabric/san/B/phys-slot-2-port-3
IfRole          : network
IfType          : physical

IsPortChannelMember : no

Lc              : available
LicGP           : 0
LicState        : unknown
Locale          :
MaxSpeed        : 4gbps
Mode            : n_proxy
Model           :
Name            :
OperSpeed       : indeterminate
OperState       : failed
PeerAggrPortId  : 0
PeerChassisId   : N/A
PeerDn          :
PeerPortId      : 0
PeerSlotId      : 0
PortId          : 3
Revision        : 0
Sacl            :
Serial          :
SlotId          : 2
StateQual       : Initializing
SwitchId        : B
Transport       : {fc}
Ts              : 2015-09-16T20:10:02.430
Type            : san
UnifiedPort     : no
UsrLbl          :
Vendor          :
Wwn             : 20:43:00:05:73:A3:24:80
XcvrType        : unknown
Dn              : sys/switch-B/slot-2/switch-fc/port-3
Rn              : port-3
Status          :
XtraProperty    : {}
Ucs             : ChallengeLab
1 Accepted Solution

Accepted Solutions

tcerling
Level 4
Level 4

To disable (obviously adjust for your switch, slot, and port):

Get-UcsFiSanCloud -Id "A" | Get-UcsFcUplinkPort -SlotId 1 -PortId 32 | Set-UcsFcUplinkPort -AdminState "disabled" -FillPattern "arbff"

To enable:

Get-UcsFiSanCloud -Id "A" | Get-UcsFcUplinkPort -SlotId 1 -PortId 32 | Set-UcsFcUplinkPort -AdminState "enabled" -FillPattern "arbff"

This is really easy to find out.  After you have launched UCS Manager, from the same system on which you are running, open a PowerTool window and execute the command ConvertTo-UcsCmdlet.  Then anything you do in the UCS Manager GUI is shown as PowerTool cmdlets in the PowerTool window.

View solution in original post

3 Replies 3

tcerling
Level 4
Level 4

To disable (obviously adjust for your switch, slot, and port):

Get-UcsFiSanCloud -Id "A" | Get-UcsFcUplinkPort -SlotId 1 -PortId 32 | Set-UcsFcUplinkPort -AdminState "disabled" -FillPattern "arbff"

To enable:

Get-UcsFiSanCloud -Id "A" | Get-UcsFcUplinkPort -SlotId 1 -PortId 32 | Set-UcsFcUplinkPort -AdminState "enabled" -FillPattern "arbff"

This is really easy to find out.  After you have launched UCS Manager, from the same system on which you are running, open a PowerTool window and execute the command ConvertTo-UcsCmdlet.  Then anything you do in the UCS Manager GUI is shown as PowerTool cmdlets in the PowerTool window.

srehling
Cisco Employee
Cisco Employee

Greatly appreciated. That was exactly what I needed.

You're welcome!  Glad I could assist.

Review Cisco Networking products for a $25 gift card