SYS_INFO

Use the SYS_INFO script function to retrieve version information from the Automation Engine, or information about a message queue.

Version Information

The VERSION keyword lets you retrieve the version of the following:

Syntax

SYS_INFO (component, VERSION, [ type ], [component name]

Parameters

Return Codes

The script function has the following return codes when you use the VERSION keyword:

Examples

The following example reads the version of the Automation Engine:

:SET  &VERSION# = SYS_INFO(SERVER, VERSION)

The following example retrieves the version of the AE database's initial data:

:SET  &VERSION# = SYS_INFO(INITIALDATA, VERSION)

  The following example reads the version of the Agent WIN01:

:SET  &VERSION# = SYS_INFO(AGENT, VERSION,,"WIN01")

The following example retrieves the parts of the Automation Engine version (major version, minor version, service pack version, and build number) as well as the complete version number, and writes them individually in the activation report:

:SET  &VERSION# = SYS_INFO(SERVER, VERSION,MAJOR)
:PRINT "Automation Engine - Major Version: &VERSION#"
:SET  &VERSION# = SYS_INFO(SERVER, VERSION,MINOR)
:PRINT "Automation Engine - Minor Version: &VERSION#"

:SET  &VERSION# = SYS_INFO(SERVER, VERSION,PATCH)
:PRINT "Automation Engine - Service Pack: &VERSION#"
:SET  &VERSION# = SYS_INFO(SERVER, VERSION,RELEASE_IDENTIFIER)
:PRINT "Automation Engine - Build: &VERSION#"
:SET  &VERSION# = SYS_INFO(SERVER, VERSION,ALL)
:PRINT "Automation Engine - Version: &VERSION#"

The output in the activation report would look like this:

2019-01-07 14:03:32 - U00020408 Automation Engine - Major Version: 12

2019-01-07 14:03:32 - U00020408 Automation Engine - Minor Version: 3

2019-01-07 14:03:32 - U00020408 Automation Engine - Service Pack: 0

2019-01-07 14:03:32 - U00020408 Automation Engine - Build: +low.build.20821

2019-01-07 14:03:32 - U00020408 Automation Engine - Version: 12.3.0+low.build.20821

Workload

Message queue parameters let you retrieve the following information:

Syntax

SYS_INFO (MQPWP, BUSY, period)
SYS_INFO (message queue, COUNT)
SYS_INFO (message queue, LENGTH, period)

Return Codes

The script function returns the following values when you specify these keywords:

The script function has the following return codes when you use the message queue parameters:

Examples

The following example retrieves the workload of the Automation Engine during the last 10 minutes. If the workload exceeds 80%, a message is sent to a user.

:IF SYS_INFO(MQPWP, BUSY, "10") > 80
:   
SEND_MSG SMITH,AE,"Workload of Automation Engine is above 80%"  
:
ENDIF

The following example reads the number of messages found in the dialog process queue.

:SET &NUMBER# = SYS_INFO(MQDWP, COUNT)

The following example returns the average processing time of the work process message queue during the last hour, and prints the value in the activation report.

:SET &DURATION# = SYS_INFO(MQWP, LENGTH, "60")

:PRINT "Current average processing time: &DURATION#"

Under normal conditions, this script would retrieve a value of 0, and write the following line in the activation report:

2019-01-08 13:10:01 - U00020408 Current average processing time: 0000000000000000

See also:

seealso

Script Elements for System Conditions and Settings