09-16-2015 01:19 PM
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 | 
Solved! Go to Solution.
09-17-2015 09:23 AM
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.
09-17-2015 09:23 AM
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.
09-23-2015 10:01 AM
Greatly appreciated. That was exactly what I needed.
09-23-2015 11:00 AM
You're welcome! Glad I could assist.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide