Script function: Reads AE system information.
[
SYS_INFO(component, VERSION, [ type ], [component name])
Syntax |
Description/Format |
---|---|
component |
The component whose version should be retrieved. Allowed values: "SERVER" and "INITIALDATA" |
VERSION |
This keyword causes the |
Type |
This specifies the part of the version that should be read. Allowed values: |
Component name |
The name of the agent whose version should be retrieved. |
Return Codes |
---|
The "20291" - The specified agent could not be found. |
This script function retrieves the version of the
To read the version of an agent, set the value "AGENT" in the parameter component and specify the agent's name in the parameter Component name.
A
The following example reads the version of the
:SET &VERSION# = SYS_INFO(SERVER, VERSION)
The second example retrieves the version of the AE database's initial data.
:SET &VERSION# = SYS_INFO(INITIALDATA, VERSION)
The third example reads the version of the agent WIN01:
:SET &VERSION# = SYS_INFO(AGENT, VERSION,,"WIN01")
The fourth example retrieves the individual parts of the
: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#"
Example of an output in the activation report:
2013-05-07 16:16:52 - U0020408
2013-05-07 16:16:52 - U0020408
2013-05-07 16:16:52 - U0020408
2013-05-07 16:16:52 - U0020408
2013-05-07 16:16:52 - U0020408
[
SYS_INFO(MQPWP, BUSY, Period)
SYS_INFO(Message queue, COUNT)
SYS_INFO(Message queue, LENGTH, Period)
Syntax |
Description/Format |
---|---|
Message queue |
The message queue about which information should be retrieved. Allowed values: "MQPWP", "MQWP", "MQDWP", "MQOWP" and "MQRWP" "MQPWP" - The message queue of the primary work process. |
BUSY |
Supplies the |
COUNT | Supplies the number of queued messages. |
LENGTH | Supplies the average time it will take to process the message queue. |
Period |
The period that is used to calculate the workload or average processing time. Allowed values: "01", "10" and "60" "01" - The last minute. |
Return Codes |
---|
"20876" - The message queue does not exist. BUSY: COUNT: LENGTH: |
This script function retrieves data about message queues.
You can retrieve the
The first example retrieves the
:IF SYS_INFO(MQPWP, BUSY, "10") > 80
: SEND_MSG SMITH,AE,"Workload of
:ENDIF
The second example reads the number of messages found in the dialog-process queue.
:SET &NUMBER# = SYS_INFO(MQDWP, COUNT)
The third example supplies the current processing time of the work processes' message queue during the last hour.
:SET &DURATION# = SYS_INFO(MQWP, LENGTH, "60")
See also:
System Conditions and Handling
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function