Server Operations

Server Operations

Overview

Universal Controller provides a set of server operations that help you maintain and administer your Controller installation. Many of the operations, as noted, should be run only by Technical Support or upon request by Technical Support.

Running a Server Operation



Step 1

From the Administration navigation pane, select Configuration > Server Operations. The Server Operations list displays.
 

Step 2

Select an operation from the drop-down list and click Run.

Server Operation Completion

When a server operation has been run and completed, the Controller issues an INFO-level log message.

For example:

2018-03-31-09:24:58:957 -0400 INFO [http-8080-exec-4] Running Server Operation: Bulk Export

2018-03-31-09:25:12:357 -0400 INFO [http-8080-exec-4] Server Operation completed: Bulk Export in 1 Minute 37 Seconds

Server Operation Status

The status for a completed Server Operation is either Success or Failed. The Audit Status field for Server Operations can have one of the following values: Invoked, Failed, or Success.

All Server Operations can fail if the user invoking the Server Operation does not have sufficient permission or if the Server Operation is limited to one execution per node and it is already running.

Most Server Operations will complete successfully; however, if errors occur executing the Server Operation, the Audit Status field is set to Failed, and error messages may be added to the Additional Information field.

The Server Operation duration message will be added to the Audit Additional Information field regardless of the Server Operation status. For example:

Server Operation 'LDAP Refresh' completed in 0 Seconds at 2018-06-11 12:46:01 -0400

Server Operation Timeout

For potentially long running server operations, such as Bulk Import and Bulk Export, we set a request timeout of 30 minutes.

However, some browsers may timeout earlier, regardless. In the case where a server operation has timed out, you will see an error similar to the following in the Console:

"No response from 'Bulk Import' server operation; check server log for details."

In the case of a request timeout, the server operation will continue to run on the server. You will have to confirm completion of the server operation from either the server log, uc.log, or from the Audits list.

View the log for the start and completion of the server operation, as well as any warnings/errors logged in between.

2018-03-31-09:24:58:957 -0400 INFO [http-bio-8080-exec-4] Running Server Operation: Bulk Import ... 2018-03-31-09:25:12:357 -0400 INFO [http-bio-8080-exec-4] Server Operation completed: Bulk Import in 11 Minutes 57 Seconds

Alternatively, you can view the server operation audit record; however, the log usually provides the most detailed information.

Server Operations Descriptions

The following table describes and, where appropriate, provides links for each server operation.
 

Script

Description and Links

Script

Description and Links

Bulk Export

Exports all current record definitions, without versions, when migrating data to a new Universal Controller deployment.

Bulk Export Activity

Exports all current Activity data from multiple Universal Controller database tables.
 

Note

In order to run this server operation, the Bulk Export Activity Permitted Universal Controller system property must be set to true.

 
If you choose to run this server operation, the following confirmation pop-up displays:
 

Bulk Export Audit

Exports all current Audit records when migrating data to a new Universal Controller deployment.

Bulk Export History

Exports all current History records when migrating data to a new Universal Controller deployment.
 
If you choose to run this server operation, the following confirmation pop-up displays:
 

Bulk Export with Versions

Exports all current records along with older (non-current) versions of record definitions when migrating data to updated software.

Bulk Import

Imports all data from an exported file when migrating data to updated software.

Clear Server Cache

Clears the internal server cache. You can use this operation if you are experiencing unexpected behavior with the Controller system. For example, Technical Support may ask you to first run this operation to clear the server cache, then clear your browser cache.

Database Information

Displays the following information for the Controller database:

  • Type: MYSQL

  • Database Name: db_name

  • Database Product Name: MySQL

  • Database Product Version: 8.0.11

  • Driver Name: MySQL Connector/J

  • Driver Version: mysql-connector-java-8.0.12 (Revision: 24766725dc6e017025532146d94c6e6c488fb8f1)

  • Configured JDBC URL: jdbc:mysql://hostname:port/

  • Adjusted JDBC URL: jdbc:mysql://hostname:port/db_name?useUnicode=true&serverTimezone=US/Eastern&socketTimeout=1800000

  • Connection Pool: Server (0/3)

  • Connection Pool: Reserved (0/3)

  • Connection Pool: Client (0/5)

Database Table Counts

Displays the following information for Universal Controller database tables:

  • Largest table

  • Number of tables

  • Number of rows

  • Number of rows in each table

See Universal Controller Database Tables, below, for a description of all tables.

Disable Task Instance Business Service Normalization

Disables normalization of Business Service membership for all:

  • New Task Instance and History records.

  • Existing Task Instance and History records if it is still in progress.

All previously normalized Business Service membership records will not be removed until they qualify for Activity or History purge.

Also, the Task Instance Normalize Business Service Membership property will be set to Disabled.

Enable Task Instance Business Service Normalization

Commence normalization of Business Service membership for all existing Task Instance and History records, and begin normalizing Business Service membership for all new Task Instance and History records.

Note

When deciding on enabling Business Service normalization, it should be noted that there is trade-off between the query performance on Task Instance/History Lists and the added insertion of normalization data at Task Instance/History record creation time.

If the Controller is restarted and the Task Instance Normalize Business Service Membership property is Enabled/Normalizing, the Controller will resume normalization of Business Service membership for all existing Task Instance and History records.

Generate Server UUIDs Cache

For use only by Technical Support personnel or when you are requested to run it by Technical Support.

Health Check

Displays information about the current instance of the Controller.

Inspect Events

For use only by Technical Support personnel or when you are requested to run it by Technical Support.

Inspect Universal Events

Limits the number of events displayed by the Inspect Events server operation.

The events will display with the latest events first; that is, ordered by created time descending.

Default is 1000.

Inspect Output Message Queue

For use only by Technical Support personnel or when you are requested to run it by Technical Support.

Inspect Subscriptions

For use only by Technical Support personnel or when you are requested to run it by Technical Support.

Inspect Timers

For use only by Technical Support personnel or when you are requested to run it by Technical Support.

LDAP Refresh

If LDAP is configured for this installation, it refreshes every 24 hours. This server operation forces a refresh. The refresh writes all Controller log entries to the user interface as well as to the Controller log, and the response will not be returned until the process completes. If you estimate the refresh could take a considerable amount of time, we recommend you use LDAP Refresh (Asynchronous).

LDAP Refresh (Asynchronous)

If LDAP is configured for this installation, it refreshes every 24 hours. This server operation forces a refresh. The refresh is performed in the background and sends Controller log entries to the Controller log.

List/Download Logs

Lists (and optionally lets you download) any existing UC log files for the Controller node that this operation is executed on.
 
The list identifies the name, last modification date, size of each log file, and - when you hover over the log file entry on the list - an icon that lets you download that file.
 


 
The icons at the bottom of the list let you perform the following:

  • Download selected log files.

  • Select all log files.

  • Deselect all log files.

(You also can select / deselect all log files by clicking the Name checkbox at the top of the list.)

Load Demonstration Definitions

Loads base demonstration data into your database (for example: workflows, tasks, triggers).

Memory Usage

Displays a summary of Controller memory usage.

Overdue Timers Delete

Deletes any overdue timers, as listed by the Overdue Timers List operation.

Overdue Timers List

Lists any timers that are overdue (normally, no timers should be overdue).

Pause Cluster Node

Pauses the Controller, which prevents it from processing tasks and events. If an event or task is already running when you run this operation, the event or task will complete. The Controller remains in a paused state until you run the Resume Cluster Node operation.

Purge All Non-Default Users And Groups

Purges all non-default Users and Groups and their associated data. There is one default User: Administrator (ops.admin). There are two default Groups: Administrator Group and Everything Group.
 
This server operation will also clear the following fields:

  • Manager field for the Administrator user if it references a non-default user.

  • Manager field for the Administrator Group and/or Everything Group if it references a non-default user.

  • Parent field for the Administrator Group and/or Everything Group if it references a non-default group.

The following is recommended before running this server operation:

  • Disable any triggers that are currently enabled by a non-default user.

  • Unassign the Execution User for any triggers that are currently assigned a non-default user as the Execution User.

  • Complete any active task instances that are currently assigned a non-default user as the Execution User.

Note

To run this server operation, the Purge All Non-Default Users And Groups Permitted Universal Controller System Property must be set to true.

 
If you choose to run this server operation, the following confirmation pop-up displays:
 

Purge History

Purges all records from the History table (ops_history).
 
Any time a task instance goes into an end status (Cancelled, Failed, Skipped, Finished, Success), a copy of it is written to the History table. You can view your History table by selecting Automation Center > Task Instances > History from the navigation pane.
 

Note

If you do not need to keep or back up your task instance history, we recommend that you run this operation periodically; otherwise, make sure you schedule a routine Data Backup/Purge for history by selecting Administration > Data Backup/Purge from the navigation pane. Executing a Data Backup/Purge of an extremely large History table can seriously degrade Controller system performance.

Purge Instances

Purges everything in the All Task Instances table (ops_exec), which contains all system activity, including task instances in any status (including end statuses). Records in the All Task Instances table (ops_exec) remain there until they are purged.
 

Warning

Running this operation will purge any live data; that is, task instances that have not completed.

Purge Logs and Cache

Sends a request to all active Agents to purge their logs and cache.

Purge Versions

Purges versions of records in excess of the maximum specified by the System Default Maximum Versions Universal Controller system property.

Refresh System Default List Layouts

For Controller upgrades only; resets system defaults list layouts.
 
You may be asked to run this server operation by Technical Support.

Reset All Agent Cluster Task Counts

Resets the current number of tasks currently being run by all Agent clusters to 0 (see Resetting the Current Task Count).

Reset All Agent Task Counts

Resets the current number of tasks currently being run by all Agents to 0 (see Resetting the Current Task Count).

Restart Cluster Node

Stops and restarts the Controller within the running Tomcat server. The Controller is effectively shut down and started up without stopping and starting Tomcat.
 

Note:

Restart Cluster Node will cause a failover to occur if it is executed on the Active node while another node is running as Passive.

Restore System Default List Layouts

Restores all lists to their default layouts.

Resume Cluster Node

Resumes the Controller after it has been paused using the Pause Cluster Node operation, or paused by the Start Server Paused Universal Controller property on startup.

Roll Log

Renames the existing log to a timestamped log and opens a new log file.

Run Garbage Collection

Runs the "garbage collector." The gc method suggests that the Java Virtual Machine expend effort toward recycling unused objects in order to make the memory they currently occupy available for quick re-use. When control returns from the method call, the Java Virtual Machine has made a best effort to reclaim space from all discarded objects.

Server Information

Displays the following categories of information about the Universal Controller server:

  • Node

  • License

  • Server Deployment

  • Database Information

  • Memory Information

System Properties

Displays all properties of the operating system on which the Controller is running.
 
You may be asked to run this server operation by Technical Support.

Temporary Property Change

Allows for the temporary setting of specific Universal Controller properties to be used for diagnosing problems. This operation and setting of properties should be performed only under the guidance of Stonebranch support.

Thread List

Captures information about internal Controller system processes.
 
You may be asked to run this server operation by Technical Support.

Thread List by CPU

Captures information about internal Controller system processes.
 
You may be asked to run this server operation by Technical Support.

Thread Stack Trace

Captures information about internal Controller system processes.
 
You may be asked to run this server operation by Technical Support.

Universal Controller Database Tables

The following table identifies and describes all Universal Controller database tables, which are listed if you run the Database Table Counts server operation, above.

The tables are in alphabetical order according to Table Name.

See Reportable Tables for a list of these database tables that are available for creating Report Details.
 

Table

Table Name

Description

Table

Table Name

Description

Abort Actions

ops_abort_action

Contains details about Abort actions.

Abort Actions Versions

ops_abort_action_v

Contains details about previous versions of Abort actions. New versions of Abort Action records are created when a task record is updated.

All Agents

ops_agent

Displays a list of Agents Overview.

All Agent Clusters

ops_agent_cluster

Contains details about Agent Clusters.

All Agent Clusters Versions

ops_agent_cluster_v

Contains details about previous versions of Agent Clusters.

All Agents Mapping

ops_agent_mapping

Shows all the agents connected to one or more Promotion Targets (as retrieved using the Refresh Target Agents button).

Linux/Unix Agents Mapping

ops_agent_mapping_unix

Shows the mapping specifications between local Linux/Unix agents and Linux/Unix agents on a Promotion Target (as retrieved using the Refresh Target Agents button).

Windows Agents Mapping

ops_agent_mapping_windows

Shows the mapping specifications between local Windows agents and Windows agents on a Promotion Target (as retrieved using the Refresh Target Agents button).

z/OS Agents Mapping

ops_agent_mapping_zos

Shows the mapping specifications between local z/OS agents and z/OS agents on a Promotion Target (as retrieved using the Refresh Target Agents button).

Applications

ops_application

Shows a list of Application Resources.

Applications Versions

ops_application_v

Contains details about previous versions of Application resources.

Audits

ops_audit

Contains details of events being written to the Audit history.

Backups

ops_backup

Contains Backup and Purge records.

Bundles

ops_bundle

Contains all Bundles records.

Bundles and Agent Clusters

ops_bundle_agent_cluster_join

Shows relationship information between Bundles and Agent Clusters; that is, which agent clusters belong to which bundles.

Bundles and Applications

ops_bundle_application_join

Shows relationship information between Bundles and Application resources; that is, which Application resources belong to which bundles.

Bundles and Calendars

ops_bundle_calendar_join

Contains relationship information between Bundles and Calendars; that is, which Calendars belong to which Bundles.