Brocade Access Gateway Administrator's Guide (53-1000605-01, October 2007)

34 Access Gateway Administrator’s Guide
53-1000605-01
Managing policies
4
Port Group policy
The Port Group policy is enabled by default.
To create a port group
1. Connect and log in to the switch.
2. Enter the command ag --pgcreate with the <PG_ID> “<N_Port1;N_Port2;…> [-n <PG_Name>]
operands.
switch:admin> ag --pgcreate 3 "12;13" -n Test
Port Group 3 created successfully
3. Enter the command ag --pgshow to verify the port group was created.
switch:admin> ag --pgshow
PG_ID N_Ports PG_Name
-----------------------------------------------------------------------------
0 14;15 pg0
3 12;13 Test
-----------------------------------------------------------------------------
To add an N_Port to a port group
1. Connect and log in to the switch.
2. Enter the command ag --pgadd with the <PG_ID> “<N_Port1;N_Port2;…> operands.
If you add more than one N_Port you must separate them with a semicolon.
switch:admin> ag --pgadd 3 14
N_Port[s] are added to the port group 3
3. Enter the command ag --pgshow to verify the N_Port was added to the specified port group.
switch:admin> ag --pgshow
PG_ID N_Ports PG_Name
-----------------------------------------------------------------------------
0 15 pg0
3 12;13;14 Test
-----------------------------------------------------------------------------
To delete an N_Port from a port group
1. Connect and log in to the switch.
2. Enter the command ag --pgdel with the <PG_ID> <N_Port1;N_Port2;…> operands.
switch:admin> ag --pgdel 3 13
N_Port[s] are added to the port group 3
3. Enter the command ag --pgshow to verify the N_Port was deleted from the specified port
group.
switch:admin> ag --pgshow
PG_ID N_Ports PG_Name
-----------------------------------------------------------------------------
0 13;15 pg0
3 12;14 Test
-----------------------------------------------------------------------------