HP StorageWorks Fabric OS 5.0.0 Command Reference Guide (AA-RW1MA-TE, May 2005)

Fabric OS 5.0.0 command reference guide 301
Sets or prints the fabric shortest path first (FSPF) cost of a link.
Synopsis
linkcost [slotnumber/][portnumber][, cost]
Availability
admin
Description
Use this command to set or display the cost of an inter-switch link (ISL). The cost of a link is a dimensionless
positive number. The FSPF protocol compares the cost of various paths between a source switch and a
destination switch by adding the costs of all the ISL's along each path. FSPF chooses the path with
minimum cost. If multiple paths exist with the same minimum cost, FSPF employs load sharing over these
paths.
Every ISL has a default cost that is inversely proportional to its bandwidth. For a 1-Gb/s ISL, the default
cost is 1000. For a 2-Gb/s ISL, the default cost is 500.
This command can be used to set a non-default, static cost for any port.
When executed without arguments, this command displays the current cost of each port on the switch,
even those are not ISL's. Active ISLs have an additional suffix of E_PORT attached to their interface
number. If the port has a static cost assigned to it, then the suffix of STATIC is appended to the link cost. In
this case, only the current link cost is displayed.
Use interfaceShow to display both the default and current link costs.
To remove a static cost from the database, execute this command with a cost of zero on the desired port.
This port will then revert to its default link cost.
NOTE: Valid cost values are 0 to 32767. Assigning a value outside this range saves and displays an
abnormal linkcost.
Operands
This command has the following operands:
linkCost
slotnumber Specify the slot number for a Core Switch 2/64 or SAN Director
2/128. For all other switches, this operand is not required. The
slot number must be followed by a slash ( / ) and the port
number, so that each port is represented by both slot number (1
through 4 or 7 through 10) and port number (0 through 15).
The Core Switch 2/64 and SAN Director 2/128 have a total of
10 slots. Slot numbers 5 and 6 are control processor cards; slots
1 through 4 and 7 through 10 are port cards. On each port
card, there are 16 ports, counted from the bottom, numbered 0
to 15.
portnumber Specify the port’s link cost to change or display. Valid values for
portnumber vary, depending on the switch type. This operand
is optional; if omitted, the cost of all post is displayed.
cost Specify the new cost of the link connected to the specified port
number. This operand is optional.