soamcontrol
The command to control applications and sessions.
Synopsis
soamcontrol subcommand [options]Description
Use the soamcontrol command with a subcommand to control applications, sessions, and tasks.IBM® Spectrum Symphony Developer Edition does not verify the optional user name and password. IBM Spectrum Symphony Developer Edition users can control all sessions, applications, and tasks in their environment.
In grid, the user must have the appropriate permissions to control an application, task, or session, as follows:
- Consumer administrators have permission to use this command to control applications, sessions, and tasks in the consumers they manage
- Cluster administrators have permission to use this command to control applications, sessions, and tasks for all consumers
- Consumer users can use this command only to control sessions they submit
- -h
- Prints command usage to stdout and exits.
- -V
- Prints product version to stdout and exits.
Subcommand synopsis
app enable application_name -u user_name] [-x password]app enable application_name [-u user_name] [-x password]
Enables an application for a consumer with no other enabled applications.
There can only be one enabled application per consumer.
- application_name
- Specifies the name of the application. The application name is the same as it appears in the application profile. Enclose the application name in double quotation marks (" ") if it contains spaces. Precede the application name with two dashes (--) if it starts with a dash.
- -u user _name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only, the user name specified here overrides the user name entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you have already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password you specify here overrides the password you entered in soamlogon.
Enable sampleApp application
soamcontrol app enable sampleApp
app disable application_name | all [-f] [-s] [-t timeout] [-u user_name] [-x password]
Disables a specific application or with the all option, disables all applications to which the specified user has access.
When issued by a cluster administrator, can disable all applications under all consumers in the cluster.
When issued by a consumer administrator, can disable all applications under the consumer this administrator administers.
When an application that has running workload is disabled, all active sessions are immediately terminated (unless the -t option is used), and all system resources assigned to the application are released.
- application_name
- Specifies the name of the application. The application name is the same as it appears in the application profile. Enclose the application name in double quotation marks (" ") if it contains spaces. Precede the application name with two dashes (--) if it starts with a dash.
- all
- Disables all applications and kills all workload.
- -f
- Disables the application and kills application workload without warning if there is active workload for the application.
- -s
- Disables the application and saves recoverable application workload. Prompts for confirmation to
disable the workload. Saved workload is recovered when the application is enabled again.
Note that if the client disconnected from the cluster because it exceeded the retry time limit or if the client was killed when the application was disabled, the recovered workload will wait for the client to reconnect and get task results even if abortSessionIfClientDisconnect is enabled in the sessionType section of the application profile. If you do not want the recovered workload, you must manually kill the sessions.
- -t timeout
- Specifies the maximum time to wait, in seconds, before the command disables applications. Valid values are any positive integer greater than zero. This duration allows for the system to wait for all active workload to complete before disabling the application. If not provided, the system disables the application immediately and terminates all submitted workload, and all system resources assigned to the application are released.
- -u user_name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you have already logged on to IBM Spectrum Symphony using soamlogon, for this command only the user name you specify here overrides the user name you entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password specified here overrides the password entered in soamlogon.
Disable all applications
soamcontrol app disable all -u consumer_admin -x passwdDisable application and shutdown workload
soamcontrol app disable sampleApp -fDisable application and shutdown workload
soamcontrol app disable sampleApp -f -t 60service restart application_name | all [-u user_name] [-x password] [-t timeout] [-r host1[,host2,...]]
- application_name
- Specifies the name of the application, or specify all for all applications. The application name is the same as it appears in the application profile. Enclose the application name in double quotation marks (" ") if it contains spaces. Precede the application name with two dashes (--) if it starts with a dash.
- -u user_name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the user name specified here overrides the user name entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password specified here overrides the password entered in soamlogon.
- -t timeout
- Specifies the maximum time to wait, in seconds, before the command restarts SIMs and their service instances. Valid values are any positive integer greater than zero. This duration allows for running workload to complete before restarting services. After this timeout expires, task results can be lost. If timeout is not provided, no force restart timeout is set and services restart when workload finishes.
- -r host
- Specifies the name of one or more hosts to restart. If not provided, services will be restarted for all hosts for the application.
Restart all SIMs and their service instances for all applications on all hosts
soamcontrol service restart all
Restart all SIMs and their service instances for a specific application on all hosts
soamcontrol service restart sampleAppRestart all SIMs and their service instances for a specific application on a specific host
soamcontrol service restart SampleApp -r hostAservice unblock application_name[:service_name] -r host1[,host2,...] [-a] [-u user_name] [-x password]
Unblocks the host for a service type of an application.
- application_name
- Specifies the name of the application. The application name is the same as it appears in the application profile. Enclose the application name in double quotation marks (" ") if it contains spaces. Precede the application name with two dashes (--) if it starts with a dash.
- service_name
- Specifies the name of the service that is blocked on the specified host. If the service name is not specified, the host will be unblocked for all service types of the application.
- -r host
- Specifies the name of one or more blocked hosts.
- -a
- Specifies to unblock the host for the application at the EGO level.
- -u user_name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the user name specified here overrides the user name entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password specified here overrides the password entered in soamlogon.
Unblock a host for a specific service of an application
soamcontrol service unblock SampleApp:SampleAppService -r hostA
session kill application_name [:session_ID[,session_ID]...] [-m comment] [-u user_name] [-x password]
Terminates all sessions of an application or terminates a specific session of an application. The session runtime data and its tasks (such as output data and current state) are no longer available. However, historical data can be retrieved through the soamview or the IBM Spectrum Symphony cluster management console if session and task history is saved.
- application_name
- Specifies the name of the application. The application name is the same as it appears in the application profile. Enclose the application name in double quotation marks (" ") if it contains spaces. Precede the application name with two dashes (--) if it starts with a dash.
- session_ID
- Specifies the IBM Spectrum Symphony-assigned ID of the session as reported by soamview session.
- -m comment
- Specifies a reason why this action was requested. The reason can comprise up to 64 alphanumeric or special characters, with the exception of control (Ctrl + key) and multi-byte characters. The description must be enclosed in double quotation marks (" ") if it contains spaces.
- -u user_name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the user name specified here overrides the user name entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password specified here overrides the password entered in soamlogon.
Kill all sessions
soamcontrol session kill sampleAppKill specific sessions
soamcontrol session kill sampleApp:101,102session kill application_name [-t session_tag] [-m comment] [-u user_name] [-x password]
Terminates all sessions of an application or terminates sessions that match the specified session tag of an application. The session run-time data and its tasks (such as output data and current state) are no longer available. However, historical data can be retrieved through the soamview or the IBM Spectrum Symphony cluster management console if session and task history is saved.
- application_name
- Specifies the name of the application. The application name is the same as it appears in the application profile. Enclose the application name in double quotation marks (" ") if it contains spaces. Precede the application name with two dashes (--) if it starts with a dash.
- -t session_tag
- Specifies the string that is used for identification purposes to control the session.
- -m comment
- Specifies a reason why this action was requested. The reason can comprise up to 64 alphanumeric or special characters, with the exception of control (Ctrl + key) and multi-byte characters. The description must be enclosed in double quotation marks (" ") if it contains spaces.
- -u user_name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the user name specified here overrides the user name entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password specified here overrides the password entered in soamlogon.
Kill all sessions that match the session tag
soamcontrol session kill sampleApp -t myTagsession suspend application_name [:session_ID[,session_ID]...] [-m comment] [-u user_name] [-x password]
Suspends a session. When a session is suspended, running tasks are killed and rescheduled for rerun when the session is resumed. Pending tasks remain pending. CPU slots used by the session are freed.
Clients can continue to create sessions, send tasks, retrieve task output, and query session and task information.
- application_name
- Specifies the name of the application. The application name is the same as it appears in the
application profile. Enclose the application name in double quotation marks (" ") if it contains
spaces. Precede the application name with two dashes (--) if it starts with a dash.
If specified without one or more session IDs, all sessions of the application are suspended.
- session_ID
- Specifies the IBM Spectrum Symphony-assigned ID of the session as reported by soamview session.
- -m comment
- Specifies a reason why this action was requested. The reason can comprise up to 64 alphanumeric or special characters, with the exception of control (Ctrl + key) and multi-byte characters. The description must be enclosed in double quotation marks (" ") if it contains spaces.
- -u user_name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the user name specified here overrides the user name entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password specified here overrides the password entered in soamlogon.
Suspend all sessions
soamcontrol session suspend sampleAppSuspend specific sessions
soamcontrol session suspend sampleApp:101,102 -m "network congestion"session suspend application_name [-t session_tag] [-m comment] [-u user_name] [-x password]
Suspends all sessions of an application or suspends sessions that match the specified session tag of an application. When a session is suspended, running tasks are killed and rescheduled for rerun when the session is resumed. Pending tasks remain pending. CPU slots used by the session are freed.
Clients can continue to create sessions, send tasks, retrieve task output, and query session and task information.
- application_name
- Specifies the name of the application. The application name is the same as it appears in the
application profile. Enclose the application name in double quotation marks (" ") if it contains
spaces. Precede the application name with two dashes (--) if it starts with a dash.
If specified without one or more session IDs, all sessions of the application are suspended.
- -t session_tag
- Specifies the string that is used for identification purposes to control the session.
- -m comment
- Specifies a reason why this action was requested. The reason can comprise up to 64 alphanumeric or special characters, with the exception of control (Ctrl + key) and multi-byte characters. The description must be enclosed in double quotation marks (" ") if it contains spaces.
- -u user _name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the user name specified here overrides the user name entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password specified here overrides the password entered in soamlogon.
Suspend all sessions that match the session tag
soamcontrol session suspend sampleApp -t myTag -m "network congestion"session resume application_name [:session_ID[,session_ID...]] [-m comment] [-u user_name] [-x password]
Resumes task processing for a specific suspended session or for multiple sessions.
- application_name
- Specifies the name of the application. The application name is the same as it appears in the
application profile. Enclose the application name in double quotation marks (" ") if it contains
spaces. Precede the application name with two dashes (--) if it starts with a dash.
If specified without one or more session IDs, all sessions of the application are resumed.
- session_ID
- Specifies the IBM Spectrum Symphony -assigned ID of the session as reported by soamview session.
- -m comment
- Specifies a reason why this action was requested. The reason can comprise up to 64 alphanumeric or special characters, with the exception of control (Ctrl + key) and multi-byte characters. The description must be enclosed in double quotation marks (" ") if it contains spaces.
- -u user _name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the user name specified here overrides the user name entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password specified here overrides the password entered in soamlogon.
Resume all sessions
Resume all sessions of the sampleApp application.
soamcontrol session resume sampleApp
Resume a specific session
soamcontrol session resume sampleApp:101,102 -m "network problem resolved"session resume application_name [-t session_tag] [-m comment] [-u user_name] [-x password]
Resumes all sessions of an application or resumes sessions that match the specified session tag of an application.
- application_name
- Specifies the name of the application. The application name is the same as it appears in the
application profile. Enclose the application name in double quotation marks (" ") if it contains
spaces. Precede the application name with two dashes (--) if it starts with a dash.
If specified without one or more session IDs, all sessions of the application are resumed.
- -t session_tag
- Specifies the string that is used for identification purposes to control the session.
- -m comment
- Specifies a reason why this action was requested. The reason can comprise up to 64 alphanumeric or special characters, with the exception of control (Ctrl + key) and multi-byte characters. The description must be enclosed in double quotation marks (" ") if it contains spaces.
- -u user _name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the user name specified here overrides the user name entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password specified here overrides the password entered in soamlogon.
Resume sessions that match the session tag
soamcontrol session resume sampleApp -t myTag -m "network problem resolved"task kill application_name:session_ID:task_ID[,task_ID...] [-m comment] [-u user_name] [-x password]
Kills one or more specific tasks in a running or pending session.
- application_name
- Specifies the name of the application. The application name is the same as it appears in the application profile. Enclose the application name in double quotation marks (" ") if it contains spaces. Precede the application name with two dashes (--) if it starts with a dash.
- session_ID
- Specifies the IBM Spectrum Symphony-assigned ID of the session as reported by soamview session.
- task_ID
- Specifies the IBM Spectrum Symphony-assigned ID of the task as reported by soamview task.
- -m comment
- Specifies a reason why this action was requested. The reason can comprise up to 64 alphanumeric or special characters, with the exception of control (Ctrl + key) and multi-byte characters. The description must be enclosed in double quotation marks (" ") if it contains spaces.
- -u user_name
- Specifies the name of the user to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the user name specified here overrides the user name entered in soamlogon.
- -x password
- Specifies the user password to connect to IBM Spectrum Symphony for this command. If you are already logged on to IBM Spectrum Symphony using soamlogon, for this command only the password specified here overrides the password entered in soamlogon.
Kill specified tasks in a session
task kill sampleApp:101:201,202 -m "tasks hanging"