Device mapping to an N_Port and to an N_Port group are considered static. Static mappings persists
across reboots and can be saved and restored with Fabric OS configUpload and configDownload
commands.
Automatic Device Load Balancing, if enabled, is considered dynamic. These mappings exist only
while a device is logged in. Dynamic mappings cannot be saved or edited by the administrator and
do not persist across reboots. Dynamic mapping shows the current mapping for devices as opposed
to the original static mapping. If a device is mapped to an N_Port group, then all mapping is dynamic.
NOTE
Static and dynamic mapping only applies to NPIV devices and cannot redirect devices that are directly
attached to Access Gateway because physically-attached devices use the port maps to connect to the
fabric.
Device mapping to port groups (recommended)
Mapping NPIV devices to a port group is an ideal choice when a reasonably sized set of devices must
connect to the same group of N_Ports, and you want the flexibility of moving the devices to any
available F_Port. This type of mapping is recommended because the device will automatically connect
to the least-loaded N_Port in the group if the N_Port to which the device is currently connected goes
offline or is not yet online. For more information on port groups, refer to Port Grouping policy on page
56.
Use the following steps to map one or more devices to an N_Port group or remove device mapping
from an N_Port group.
1. Connect to the switch and log in using an account assigned to the admin role.
2. To add one or multiple device WWNs to an N_Port group , enter the ag --addwwnpgmapping
Port_Group command with the [WWN];[WWN] option.
All the listed device WWNs will use the least-loaded N_Port in the port group when they log in, unless
a specific device mapping can be used instead. This command can only map devices currently
connecting through NPIV.
The following example adds two devices to port group 3.
ag --addwwnpgmapping 3 "10:00:00:06:2b:0f:71:0c;10:00:00:05:1e:5e:2c:11"
3. To change all currently existing device mappings to a different port group, use the -- all option
instead of listing all the WWNs.
The following example changes all the currently mapped devices to use port group 3 instead of the
current port group mappings.
ag --addwwnpgmapping 3 --all
4. To remove one or multiple devices to an N_Port group , enter the ag --delwwnpgmapping
Port_Group command with the [WWN];[WWN] option.
All the listed devices will stop using the least-loaded N_Port in the group when they log in.
The following example removes mapping for two devices from port group 3.
ag --delwwnpgmapping 3 "10:00:00:06:2b:0f:71:0c;10:00:00:05:1e:5e:2c:11"
5. To remove all devices mapped to an N_Port group, enter the command with the --all option instead
of listing all WWNs. All of the devices will cease automatic use of the least-loaded port in the port
group when they log in. The --all option is a shortcut for specifying all of the devices that are already
mapped with the addwwnpgmapping command.

Device mapping to port groups (recommended)

Access Gateway Administrator's Guide 41
53-1003126-02