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

Fabric OS 5.0.0 command reference guide 473
Assigns or displays a port name.
Synopsis
portname [slotnumber/]portnumber, name
Availability
admin
Description
Use this command to assign or display a port name. Both port_number and port_name operands are
optional for this command.
With both the operands present, the port name string will be assigned to the port. With only the port
name operand, the previously assigned port name will be displayed. With no operands, the port names
of all the ports present will be displayed.
The port name is a string of 32 characters or fewer. It can consist of white spaces or printable characters,
excluding the characters comma ( , ) and semicolon ( ; ). By default, a port has no name until it is explicitly
assigned by the user.
A null string (that is, no port_name specified) is used as the default port name when a port has no
user-assigned name. A port name can be reset to the default value by executing the portName command
with the second operand a null string.
Like all other configurable port attributes, port name persists across reboots and power cycles. It will not
be affected by configDefault command, but it will be cleared by portCfgDefault.
Operands
This command has the following operands:
portName
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 a port number. Valid values for port number vary, depending on
the switch type. This operand is optional.
name Specify a port name. The port name is a character string from 1 to 32
characters, including spaces and characters excluding commas,
semicolons, and asterisk. To erase a port name, specify this operand as
an empty string. Quotation marks are optional. This operand is optional;
if omitted, it displays the current port name.