Reference (Supporting Fabric OS v7.3.0) Owner manual

Table Of Contents
Fabric OS Command Reference 557
53-1003131-01
linkCost
2
linkCost
Sets or displays the Fabric Shortest Path First (FSPF) cost of a link.
SYNOPSIS linkcost [[slot/]port [cost]]
DESCRIPTION Use this command to set or display the cost of an interswitch link (ISL). The cost of a link is a
dimensionless positive number. The Fabric Shortest Path First (FSPF) protocol compares the cost of
various paths between a source switch and a destination switch by adding the costs of all the ISLs along
each path. FSPF chooses the path with minimum cost. If multiple paths exist with the same minimum
cost, FSPF distributes the load among these paths. The default link cost value is 500.
When executed without operands, the command displays the current cost of each port on the switch,
including non-ISLs. An E_PORT suffix is appended to the interface number of active ISLs. If a static cost
is assigned to a port, a STATIC suffix is appended to the link cost. In this case, only the current link cost
displays. Use interfaceShow to display both the default and current link costs.
NOTES This command sets a non-default, "static" cost for any port except EX/VEX ports. Use
fcrRouterPortCost to configure EX/VEX ports.
The execution of this command is subject to Virtual Fabric or Admin Domain restrictions that may be in
place. Refer to Chapter 1, "Using Fabric OS Commands" and Appendix A, "Command Availability" for
details.
This command cannot be executed on a logical ISL (LISL).
OPERANDS This command has the following operands
slot
For bladed systems only, specifies the slot number for which to set or display the
cost, followed by a slash (/).
port
Specifies the port number for which to set or display the cost, relative to its slot for
bladed systems. Use switchShow to list of valid ports.
cost
Specifies the static cost of the link connected to the specified port. Recommended
cost values are 0 through 32765. Setting static link cost values above 32765 will
cause access problems. When you set a link cost value between 32766 and
65534, some parts of the fabric may become inaccessible. When you set the
maximum link cost value of 65535, the port will become unusable. In either case,
the command displays an appropriate warning message, and you are prompted to
continue or to cancel and reissue the command with a lower link cost value. A
value of 0 removes the static cost and the port reverts to its default link cost. If
cost is not specified, the command displays the current cost of the specified port.
EXAMPLES To display the link costs for all ports on a switch:
switch:admin> linkcost
Port Cost
-------------------------
1/0 (E_PORT) 500
1/1 500
1/2 500
1/3 500
1/4 500
1/5 500
1/6 500