HP Auto Port Aggregation Administrator's Guide for HP-UX 11i v1 and 11i v2 September 2008

Set Options
To manage link aggregates and add ports to a link aggregate, use the following syntax and
options with the -X (uppercase) option:
lanadmin [-X -a portPPA [portPPA]]
[-X -c linkAggregatePPA]
[-X -d portPPA [portPPA]... linkAggregatePPA]
[-X -g portPPA group_capability anyLinkAggregatePPA]
[-X [h | H] anyLinkAggregatePPA]
[-X -k portPPA admin_key anyLinkAggregatePPA]
[-X -l load_balance_algorithm linkAggregatePPA ]
[-X -o linkAggregatePPA]
[-X -p portPPA config_mode anyLinkAggregatePPA]
[-X -s portPPA system_priority anyLinkAggregatePPA]
[-X -t portPPA port_priority anyLinkAggregatePPA]
[-X -y on|off linkAggregatePPA]
Where:
-a -X -a portPPA [portPPA]... linkAggregatePPA
Adds a port or ports with the specified portPPA to the link aggregate with the specified
linkAggregatePPA number.
CAUTION: Be careful when using the -a suboption. This might lead to an invalid link
aggregate. This command gives you full control over forming any link aggregate that you
want.
-c -X -c linkAggregatePPA
Clears (removes all) ports from a link aggregate with the specified linkAggregatePPA
number. This option fully deconfigures the link aggregate. After removal from a link
aggregate, the port's mode is set to MANUAL. The Administrative Key (LACP) or
group_capability (FEC_AUTO and MANUAL) is not changed.
-d -X -d portPPA [portPPA]... linkAggregatePPA
Deletes ports with the specified PPAs from the link aggregate with the specified
linkAggregatePPA number.
CAUTION: Failure to fully deconfigure a link aggregate (using the the -c suboption) can
result in some properties being retained in the link aggregate. Subsequently, when new
ports are added onto the link aggregate, they might not aggregate properly.
-g -X -g portPPA group_capability anyLinkAggregatePPA
Sets the group capability for a port with the specified portPPA. Ports going to different
link aggregates must have different group capabilities. The valid values for
group_capability are integer numbers starting at 0. This is applicable to MANUAL and
FEC_AUTO ports.
-h -X -h anyLinkAggregatePPA
Displays the -X and -x options help screen.
-H -X -H anyLinkAggregatePPA
Displays the extended -X and -x options help screen, which includes a detailed description
and syntax of the -X and -x options.
52 Using the lanadmin Command