Oracle® Fabric OS 1.0.2 Command Reference

Exit Print View

Updated: November 2016
 
 

fc-port

The fc-port command configures and displays the attributes of the FC port. FC storage is supported for the virtualization switch, but not for the leaf switch.

set fc-port {*|slot/port} [–descr=text]
set fc-port {*|slot/port} [–fc-link-down-timeout={number|default}]
set fc-port {*|slot/port} [–fc-target-port-down-timeout={number|default}]
set fc-port {*|slot/port} [–topology={f-port|l-port|n-port}]
show fc-port {*|slot/port} [–detail]
show fc-port {*|slot} alarms [–detail]
show fc-port {*|slot} stats [–detail]
show fc-port {*|slot} vhbas [–detail]
show fc-ports {*|slot/port} [–detail]

Syntax

where slot/port specifies the physical slot and port coordinate to be configured. An asterisk (*) specifies all available FC cards. You can configure FC ports on a virtualization switch, but not on a leaf switch.

These hardware commands have subcommands that determine their functionality. This table describes the subcommands and provides their syntax.

Subcommand
Description
alarms
Displays alarms for the specified port.
stats
Shows FC port statistics.
vhbas
Displays a list of vHBAs connected to the FC port.

Options

Option
Description
-descr
Applies a text description to the FC port. Quotes are required around multiple words containing spaces in between.
-detail
An optional modifier that displays detailed information (if available) for the FC port.
-fc-link-down-timeout
When a fibre link goes down, the FC port waits for the specified number of seconds before declaring the fibre link down. This parameter value in seconds determines the duration for which a link can experience a loss of signal, or be non-operational before the firmware declares the link is down and sends a link down event. This parameter guards against link flapping and excessive reporting of link state changes when there is a constant change in the state of the link. Specify the number of seconds between 0 and 60, or do not specify any value to use the default time-out of 30 seconds.
-fc-target-port-down-timeout
When an FC port goes down on a target, the fabric waits for the specified of seconds before declaring the port down. This parameter is a counter that determines the maximum number of seconds a port can remain offline. If the specified number of seconds is exceeded, the port is timed out and declared down. Specify the time-out value as the number of seconds between 0 and 60, or do not specify any value to use the default retry limit. The default limit is 30 seconds.
-topology
Specifies the type of storage connection to use:
  • f-port – Specifies a point-to-point connection to the storage device through an FC switch. This type of connection supports NPIV. This is the default configuration for an FC module.

  • l-port – Specifies a loop connection to the storage device without using an FC switch. This type of connection does not support NPIV. A port configured this way can only support a single vHBA.

  • n-port – Specifies a point-to-point connection to the storage device without using an FC switch. This type of connection supports NPIV.

Example: Set the Link Down Timeout

This example shows how to set the FC port wait time to 45 seconds. The port will wait this length of time before declaring that the fibre link is down. The default timeout is 30 seconds.


Note -  Modified settings do not become effective until you reset the I/O card. To adopt new settings, the card must be brought down, rebooted, and reinitialized using the set iocard command. For more information, see iocard.
[OFOS] show ioport
name     type                  state       descr     vnics     vhbas
--------------------------------------------------------------------
4/1      sanFc1GbPort          up/down               0         0
4/2      sanFc1GbPort          up/up                 0         4
5/1      sanFc1GbPort          up/up                 0         1
5/2      sanFc1GbPort          up/up                 0         0
9/1      nwEthernet10GbPort    up/up                 0         0
--------------------------------------------------------------------
5 records displayed
[OFOS] set fc-port 4/2 -fc-link-down-timeout=45
[OFOS] set iocard 4 reset
Resetting I/O cards will adversely affect any virtual I/O resource connected to them
and thus cut I/O to the physical servers. Are you sure you want to reset the I/O card
in slot 4 (y/n)? y
[OFOS] show ioport 4/1 -detail
----------------------------------------------------
name                         4/1
type                         sanFcPort
state                        up/up
descr
wwnn                         50:01:39:71:00:00:B0:1F
wwpn                         50:01:39:70:00:00:B0:1F
rate                         auto/4Gbps
frame-size                   2048/2048
exec-throttle                65535
int-delay                    1000
fc-link-down-timeout         45
login-retry                  8
login-timeout                4
fc-target-port-down-timeout  60
topo                         F
loop-delay                   5
tape-support                 true
vhbas                        4
------------------------------------------------------
1 record displayed

Typically, you should use the default values for FC port parameters, and change them only if absolutely necessary.