:DISCONNECT
Script statement: Disconnects a connection to the AE system
Syntax
:DISCONNECT Connection, Name
Syntax |
Description/Format |
---|---|
Connection |
Type of connection Allowed values: "USER", "HOST" and "HOSTGROUP" |
Name |
Name of a user, user group, agent or agent group |
This script statement can be used to disconnect connections to the AE system.
Users or user groups must belong to the same client as the object in whose script this script statement is used. an Automic Web Interface message informs the user that the connection to the Automation Engine has been interrupted and that logging on again is required. This does not result in an error if there were no active connections to the AE system. If users or user groups are invalid, script processing is aborted and an error message is sent.
:DISCONNECT used in combination with "HOST" or "HOSTGROUP" does not terminate the agent but ends the connection temporarily. The agent reconnects to the Automation Engine as soon as the next signal which checks the agents is sent. Disconnecting an agent connection is useful when a new communication process starts and the agents rearrange. Use the :TERMINATE script statement to end an agent.
Instead of specifying individual agents, you can also indicate an agent group. The termination then applies to all agents that belong to this group.
This script statement can only be processed if the user or agent is authorized to "cancel" processes.
Example
This example disconnects the user "SMITH/AE" from the AE system.
:DISCONNECT "USER", "SMITH/AE"
The agent WIN01 is disconnected from the AE system.
:DISCONNECT "HOST", "WIN01"
Below, all database agents are disconnected.
:DISCONNECT "HOSTGROUP", "HOSTG_DB_UNIX"
See also: