servicegroup

The egosh servicegroup sub-command manages service groups in your cluster.

This

servicegroup add service_group_name [-d description] [-s service_name,...]

Creates a new service group.

Note: You need EGO_SERVICE_CONTROL permission on all the services that you want to add, and EGO_SERVICEGROUP_MANAGEMENT permission.
service_group_name

Specifies the name of the service group.

-d description

Specifies a description for the service group being registered. This description appears with the information displayed using the servicegroup view subcommand. Enclose description in quotation marks if there are spaces within it.

-s service_name

Specifies one or more services to be included in the service group. Multiple service names are separated by a comma.

servicegroup addservice service_group_name -s service_name,...

Adds services into the specified service group.

Note: You need EGO_SERVICE_CONTROL permission on all the services that you want to add, and EGO_SERVICEGROUP_MANAGEMENT permission.
service_group_name

Specifies the service group name.

-s service_name

Specifies one or more services to be added to the service group. Multiple service names are separated by a comma.

servicegroup delete [-f] service_group_name ...

Removes one or all service groups.

Note: You need EGO_SERVICE_CONTROL permission on all the services in the service group that you want to delete and the EGO_SERVICEGROUP_MANAGEMENT permission. You also cannot delete a service group if any other service is dependent on the group.
-f

Executes the command immediately without prompting for confirmation.

service_group_name

Specifies the service group name. Multiple service group names can be selected.

servicegroup list [-l] [-ll]

Displays all registered service groups in the cluster.

You need EGO_SERVICEGROUP_VIEW permission.

-l

Provides the same information with a longer name field, if information is truncated when -l is not specified.

-ll

Provides the same information as the -l option, and in comma-separated value (CSV) format.

servicegroup modify service_group_name [-d description] [-s service_name,...]

Modifies a registered service group definition.

Note: You need EGO_SERVICE_CONTROL permission on all the services in the service group that you want to modify and the EGO_SERVICEGROUP_MANAGEMENT permission.
service_group_name

Specifies the service group name.

-d description

Specifies a description for the service group being updated. This description appears with the information displayed using the servicegroup view subcommand. Enclose description in quotation marks if there are spaces within it.

-s service_name

Specifies one or more services to be included in the service group. Multiple service names are separated by a comma.

servicegroup removeservice service_group_name -s service_name,... | all

Removes services from the specified service group.

Note: You need EGO_SERVICE_CONTROL permission on all the services in the service group that you want to remove, and EGO_SERVICEGROUP_MANAGEMENT permission
service_group_name

Specifies the service group name.

-s service_name

Specifies one or more services to be removed from the service group. Multiple service names are separated by a comma.

all

Removes all services from the specified service group.

servicegroup view [service_group_name ...]

Displays detailed information about service groups and the services that are included in each group. You need the EGO_SERVICEGROUP_VIEW permission.

service_group_name …

Specifies the service group name. If no service group name is specified, information for all registered service groups is shown.

To specify multiple service groups, separate the service group names with a space.