Using Command Groups

Using Command GroupsCreating a Command Group

To create a command group, follow these steps:

Step Action

1Use the CHANGE COMMAND GROUP command to specify a command group name and port list.

Example: The following defines the command group called SERVICE_A that is available on ports 2, 3, and 5:

Local> CHANGE COMMAND GROUP SERVICE_A PORT 2, 3, 5

2Enter the individual commands that define the command group.

Example: Defining a Command Group

The following example shows how to enter individual commands to define a typical command group. In this command group, the values %P1 and %P2 represent place holders for values that you specify when you execute the command group.

Local> CHANGE COMMAND GROUP SERVICE_A LINE 10 "CHANGE PORT %P1

LOCK ENABLE"

Local> CHANGE COMMAND GROUP SERVICE_A LINE 20 "CHANGE PORT %P1

DEFAULT PROTOCOL LAT"

Local> CHANGE COMMAND GROUP SERVICE_A LINE 30 "CONNECT LAT %P2"

The command group defined in this example does the following for the specified port:

1Enables lock.

2Sets the default protocol to LAT.

3Connects to the LAT service specified.

User Interface 3-3