The following example removes all devices mapped to port group 3.
ag --delwwnpgmapping 3 --all
6. Enter the ag --wwnmapshow command to display the list of WWNs mapped to port groups and
verify that the correct devices have been mapped to the desired port group.
Device mapping to N_PortsUse the following steps to add one or more devices to an N_Port to route all device traffic to and from
the device through the specified N_Port. Also use these steps to remove device mapping to an
N_Port.
1. Connect to the switch and log in using an account assigned to the admin role.
2. To add one or multiple devices to an N_Port , enter the ag --addwwnmapping N_Port command
with the [WWN];[WWN] option. All the listed device WWNs will use the N_Port if it is available.
The following example adds two devices to N_Port 17.
ag --addwwnmapping 17 "10:00:00:06:2b:0f:71:0c;10:00:00:05:1e:5e:2c:11"
The --all option edits all the currently existing mappings. None of the --all options have any way to
detect what devices are using the switch. This option edits the mappings that are in the list.
3. To change all current device mappings to a different N_Port, enter the ag --addwwnmapping
N_Port command with the --all option.
The following command changes all the existing device mappings to use port 17.
ag --addwwnmapping 17 --all
4. To remove mapping for one or multiple devices from an N_Port, enter the ag --delwwnmapping
N_Port command with the [WWN];[WWN] option. All the listed device WWNs will no longer try to
use the N_Port unless a device logs in through an F_Port that is mapped to the N_Port.
The following example removes two devices from N_Port 17.
ag --delwwnmapping 17 "10:00:00:06:2b:0f:71:0c;10:00:00:05:1e:5e:2c:11"
5. To remove all devices currently mapped from an N_Port, enter the ag --delwwnmapping N_Port
command with the --all option. All the listed devices will no longer try to use the N_Port unless a
device logs in through an F_Port that is mapped to the N_Port. The --all option is a shortcut for
specifying all of the devices that are already mapped with the addwwnmapping command.
The following command removes all devices currently mapped to port 17.
ag --delwwnmapping 17 --all
6. Enter the ag --wwnmapshow command to display the list of N_Ports mapped to WWNs and verify
that the correct WWNs have been mapped or removed from the desired N_Ports.
Disabling device mappingUse the following procedures to disable device mapping for all or only specific devices. These
procedures are useful when you want to temporarily disable device mapping, and then enable this at a
later time without reconfiguring your original mapping.
1. Connect to the switch and log in using an account assigned to the admin role.
2. Enter the ag --wwnmappingdisable command with the [WWN]; [WWN] option to disable mapping
for specific WWNs. The device mappings will be ignored for all the listed device WWNs without
removing the entry from the WWN mapping database.
Device mapping to N_Ports
42 Access Gateway Administrator's Guide
53-1003126-02