DEFINE GRPMEMBER (Add a server to a server group)
Use this command to add a server as a member of a server group. You can also add one server group to another server group. A server group lets you route commands to multiple servers by specifying only the server group name.
Privilege class
To issue this command, you must have system privilege.
Syntax
Parameters
- group_name (Required)
- Specifies the name of the server group to which the member will be added.
- member_name (Required)
- Specifies the names of the servers or groups to be added to the group. To specify multiple servers and groups, separate the names with commas and no intervening spaces. The servers or server groups must already be defined to the server.
Example: Define a server to a server group
Define the server SANJOSE to server group CALIFORNIA.define grpmember california sanjoseExample: Define a server and a server group to a server group
Define the server TUCSON and the server group CALIFORNIA to server group WEST_COMPLEX.define grpmember west_complex tucson,californiaRelated commands
| Command | Description |
|---|---|
| DEFINE SERVER | Defines a server for server-to-server communications. |
| DEFINE SERVERGROUP | Defines a new server group. |
| DELETE GRPMEMBER | Deletes a server from a server group. |
| DELETE SERVERGROUP | Deletes a server group. |
| MOVE GRPMEMBER | Moves a server group member. |
| QUERY SERVER | Displays information about servers. |
| RENAME SERVERGROUP | Renames a server group. |
| UPDATE SERVERGROUP | Updates a server group. |
