Reference Guide

814 Brocade Fabric OS Command Reference
53-1004112-02
portName
portName
Assigns or displays port names.
Synopsis portname
portname [slot/]port [-n name]
portname -i [index1[-index2][...][-f] [-n name]]
portname -x [hex1[-hex2] [...][-f] [-n name]]
portname -slot slot1[-slot2] [...][-n name]
portname -d [format_string | -default | -help]
portname -h
Description Use this command to assign a port name to a specified port or to a range of ports. The port name is included in the
portShow output; it should not be confused with the world wide port name.
When a port name is not configured, the portName command displays a default name in the portShow output.
The format of the default name is as follows:
On standalone platforms, the default port name displays as portportnumber, for example, "port10."
On enterprise-class platforms, the default port name displays as slotslotnumber portportnumber, for example,
"slot1 port5."
You can identify a single port to be configured by its port number or by its port index number in decimal or
hexadecimal format. Port ranges are supported with port numbers, index numbers (decimal or hexadecimal) or by
specifying a slot or a slot range. Use switchShow for a listing of valid ports, slots, and port index numbers. When
issued without the name operand, this command displays the names of the specified ports or of all ports, if no port
is specified.
Specifying multiple ports with the index (-i or -x) or slot (-s) option is supported only if PortSwap is disabled. They
are not supported on GbE ports and configured F_Port trunks. Use the -i option without a port index argument to
display the portSwap status, or alternately use the portSwapShow command. When Ficon Management Server
(FMS) mode is enabled, specifying a port range will fail. This is because FMS does not permit multiple ports to
have the same port name. The first port in the range gets the port name, all other ports in the range will fail. Multiple
ports can have the same port name in non-FMS mode.
Like all other configurable port attributes, port names persists across reboots and power cycles. They are not
affected by the configDefault command, but they are cleared by portCfgDefault.
Notes The execution of this command is subject to Virtual Fabric restrictions that may be in place. Refer to "Using Fabric
OS Commands" and "Command Availability" for details.
Operands This command has the following operands:
slot
For bladed systems only, specifies the slot number of the ports to be configured, followed
by a slash (/).