
9
Port group management commands provide convenience of switching bunch of ports together
identified by a name. Group name can be any alpha-numeric name. Group name can not be just a
number or start with a number. For example group name can not be “10” or 10gp1.
1. o create a new group
$ osctl -c <port_group> {<in_port#/s> | <inport_range>}
2. o update existing group
$ osctl -u <port_group> {-a | -r <in_port#/s>}
3. o delete a group
$ osctl -d <port_group>
4. o delete all groups
$ osctl -R
5. o list ports in a group
$ osctl -l [<port_group> | <in_port#>]
For example:
$ osctl -c gp1 "1 3 4"
creates group named "gp1" with ports 1,3 and 4. he double quotes around space
separated port numbers are required. Note that when you create a group, all the ports in
the gp1 will be in OFF state by default.
$ osctl -c gp2 "5-8"
creates group named "gp2" with ports 5,6,7 and 8 (5 to 8 range)
$ osctl -u gp1 -a "5 6"
adds ports 5 & 6 to existing group gp1
$ osctl -u gp1 -a 7
adds port 7 to existing group gp1
$ osctl -u gp1 -r "2 4"
removes ports 2 & 4 from group gp1
$ osctl -d gp1
deletes group gp1 and release all ports which were part of the group.
$ osctl –l
lists ports in group, like
GroupName: <gp1>
Ports in the group: 1 2 3 4
$ osctl –R
Port group Management