Brocade Fabric OS Command Reference Manual Supporting Fabric OS v7.0.0 (April 2011)

32 Fabric OS Command Reference
53-1001764-01
ag
22
To add F_Port 5 to N_Port 2 (observe that N_Port 2 already has mapped F_Ports):
switch:admin> ag --mapadd 2 "5"
To display the new mappings:
switch:admin> ag --mapshow
N_Port Configured Static Current Failover Failback PG_ID PG_Name
_F_Ports _F_Ports F_Ports
-----------------------------------------------------------------
0 4;6 None 4;6 1 0 2 SecondFabric
1 7;8;9 None 7;8;9 0 1 0 pg0
2 5;10;11 None 5;10;11 1 0 2 SecondFabric
3 12;13 None 12;13 0 1 0 pg0
------------------------------------------------------------------
To delete F_Port 5 that was mapped to N_Port 2:
switch:admin> ag --mapdel 2 "5"
Preferred N_port is set for F_Port[s]
Please delete it before removing primary N_Port
ERROR:Unable to remove F_Port[s] from mapping,
retry the command
switch:admin> ag --prefshow
F_Ports Preferred N_Port
-------------------------------------------------
10;11 0
4;5;6 2
7;8;9 3
-------------------------------------------------
switch:admin> ag --prefdel 5 2
Preferred N_Port is deleted successfully \
for the F_Port[s]
switch:admin> ag --mapdel 2 "5"
F_Port to N_Port mapping has been updated successfully
To create and display a static mapping:
switch:admin> ag --staticadd 17 1
switch:admin> ag --show
N_Port information :
Port PortID Attached PWWN FO FB IP_Addr F_Ports
--------------------------------------------------------------
0 0xaa0100 20:01:00:05:1e:36:10:00 1 1 10.162.46.5 None
17 0x0b0e00 20:0e:00:05:1e:34:78:36 0 0 144.14.37.79 2
--------------------------------------------------------------
F_Port information :
Port PortID Attached PWWN N_Port Preferred N_port
--------------------------------------------------------------
1 0x0b0e02 50:01:43:80:02:21:99:20 17 None
2 0x0b0e01 50:06:0b:00:00:6a:7e:04 17 None
--------------------------------------------------------------
N_Port Configured Current Failover Failback PG_ID PG_Name