Setting | Description | ||||
---|---|---|---|---|---|
Maximum Number of Sessions to Return from Data Storage | The maximum number of persisted remote sessions to return when there is a request for remote sessions. The default value is 500 sessions. | ||||
Timeout to indicate that the RemoteAccessClient is not installed locally | The number of milliseconds to wait before generating a message that says the ThingWorx Remote Access Client (RAC) is not installed on the user's computer. The default value is 10 seconds (10,000 milliseconds). | ||||
Maximum Session Duration (in hours) | The maximum number of hours that a remote session can remain active. The default value is 24 hours, with a minimum value of 1 hour and a maximum value of 240 hours. | ||||
Inactive Session Timeout (in minutes) | The number of minutes that a remote session is allowed to remain inactive before it is timed out. The default value is 15 minutes, with a minimum value of 1 minute and a maximum value of 60 minutes. | ||||
Maximum Number of AutoLaunchConfigs to Return from Storage | The number of configuration entries for Auto Launch to retrieve from storage when the GetAutoLaunchConfigs service is run. The AutoLaunchConfig entries are stored in a ThingWorx Data Table created when you import the RAE. The storage is limited only by the amount of available disk space that the database has access to. For guidance on storing data in ThingWorx, refer to Storing Data in ThingWorx in this help center. | ||||
Enable Auto Launch | Whether the Auto Launch feature is enabled in the Remote Access Subsystem on this ThingWorx Platform. The check mark indicates that Auto Launch is enabled. To disable it globally, clear the check box. When Auto Launch is disabled, end users can click the Launch command shown in the user interface of the Remote Access Client (RAC) to start the application they want to use during the remote session. For example, an SSH terminal or VNC Viewer.
|
Modifying the configuration of the inactivity timeout, the maximum session duration, and the maximum number of AutoLaunchConfig entries to return, and enabling/disabling Auto Launch does not require a restart of the Remote Access Subsystem. |
The Remote Access Subsystem will throw exceptions if callers attempt to set values outside of the minimum and maximum value ranges from either ThingWorx Composer or the SetConfigurationTable service. |
Service | Description | Responsibilities |
---|---|---|
RegisterExternalRemoteAccessServer | Allows GAS to register itself. | GAS will show as "online" after this service is run. |
UnregisterExternalRemoteAccessServer | Allows GAS to unregister itself. | GAS will show as "offline" after this service is run. |
UpdateExternalRemoteAccessServerStatus | Allows GAS to send session count updates, remote session audit messages, and file transfer audit messages to the ThingWorx Platform. | The audit messages are available through the Audit Subsystem of the ThingWorx Platform. For more information about audit messages, refer to the topic, Querying Audit History for Remote Access. The session count updates appear as a change in the sessionCount property for the GAS Thing. |
Service | Description | Responsibilities | ||
---|---|---|---|---|
CleanupOldSessions | Called every 30 minutes (1800000 ms) by default, this sevice cleans up any sessions that have exceeded the maximum session duration by updating status to CLOSE_REQUESTED. To change the default, refer to RemoteAccessCleanupOldSessionsTimer Thing. | • Determine expirationTime (in milliseconds) by subtracting: System.currentTimeMillis - HOURS.toMillis(maxSessionDuration). • Find all Remote Sessions with a createdTime field that is less than or equal to expirationTime. • For each session returned, set status to CLOSE_REQUESTED and then set the terminationCause to "Remote session close was requested due to max session duration of %s hours" and then update the session by calling updateRemoteSession(session). | ||
TerminateInactiveSessions | Called every minute (60000 ms) by default, this service ends any inactive sessions and sets the status to TERMINATED. To change the default, refer to TerminateInactiveSessionsTimer Thing. | • Determine inactiveTime (in milliseconds) by subtracting: System.currentTimeMillis - MINUTES.toMillis(maxSessionDuration). • Find all Remote Sessions with a lastActivityTime field less than or equal to inactiveTime. • For each session returned, set the status to CLOSE_REQUESTED if it is not already set to CLOSE_REQUESTED. If the status is already CLOSE_REQUESTED, set the status to TERMINATED and then set the terminationCause to "Remote session was terminated due to session inactive timeout of %s minutes". Then, update the session. The CleanupOldSessionsTime runs and sets the sessions that exceed max_session_duration to CLOSE_REQUESTED. The UpdateSession service automatically refreshes the lastActivityTime when it updates the session.
|
The lastActivityTime property of a Thing is updated with each GAS status update and with status updates from the Remote Access Client (RAC). Any update from either GAS or RAC results in the lastActivityTime property being updated and the session does not time out. "Inactivity" to the ThingWorx Platform means only that the platform has not received a status update from either RAC or GAS. Inactivity does not mean that there are no bytes being transferred. |