HP StorageWorks XPath OS 7.4.X Command Reference Guide (AA-RVHCC-TE, September 2005)

144 XPath OS CLI commands
Displays or sets the configured port link cost.
Synopsis
linkcost port [linkcost]
Availability
admin
Description
Use this command to display or set the cost of an interswitch link (ISL). The cost of a link is a dimensionless
positive number. It is used by the FSPF path selection protocol to determine the least-costly path for a frame
from the source to the destination MP Router or switch. The cost of a path is the sum of the costs of all the
ISLs traversed by that path, also known as the metric.
FSPF supports load sharing over a number of equal-cost paths.
Every ISL has a default cost that is inversely proportional to the bandwidth of the Gb/s ISL. For a 1-Gb/s
ISL, the link cost is 1,000; for a 2-Gb/s ISL, the link cost is 500.
Operands
Without operands, this command displays the actual link cost of all the links. All currently active ISLs have
an additional suffix of E_Port attached to their interface numbers. If the link has a static cost assigned to
it, the link cost for that link has a suffix of STATIC.
With one operand (port), this command displays the actual cost of a specific link. With the two
operands (port and linkcost), it sets the cost of a specific link. Setting the cost to 0 removes a static
cost from the database and reverts to the current operational port link cost.
Examples
To display the fixed link cost of port 3:
To set the link cost of port 5 to the default:
linkCost
switch:admin> linkcost 3
port 3 linkcost is: 1000 (STATIC)
switch:admin> linkcost 5 0
port 1 linkcost is set to: AUTO