Sei sulla pagina 1di 3

Deutsch English

AutomicBlog.com About
a technical Automic Fan Blog Log in

Welcome to my blog!
 
Jan. 20, 2015 at 14:31
Welcome to my Automic-
Tech-Blog
Historical Usage / Workload Data  
I was asked multiple times where the Usage data can be found inside the database. The System Here you can find technical
Overview shows only the past 24 hours, how can I see yesterday's usage, or last week's usage? articles on Automic Operations
Manager (versions 6.00 and 8.00)
The disappointing answer is: This data is not stored in the database at all. and the Automic Auomation
The good news is: There are AE-Script functions to retrieve the data. Engine (version 9.00).  I describe
automation approaches, helpful
You might be tempted to store the data you collect with these script functions in a custom data SQL queries, and experiences
container, e.g. a VARA. Resist this temptation and keep on reading - there is an elegant alternative! with administration of a Automic
OM system and its components.
Script Functions
I hope you find interesting
The relevant script functions regarding usage / workload are: articles, and I'm looking forward
to your comments.
SYS_BUSY_01() One last small note:
SYS_BUSY_10() I have no direct connection to
SYS_BUSY_60() Automic or the Automic Software
SYS_INFO( […] ) GmbH other than being a User of
their software.
Check out the documentation to learn more about these functions.  
The links point to the public documentation of the Automation Engine version 10.0.3
Name: Philipp Elmer
AV
From: Austria
Since Automation Engine version 9, there is the table AV (Archive Values) in the AE database. It contains the Automic-User since:
object variables and their values for each statistics entry, so since version 9 you can see all object variables for Summer 2006
each historical run.  
 
We will store usage data in object variables by recurring running a SCRI object with the above mentioned script I'm a freelancer and started in
functions. December 2000 as a Unix
Reporting on the data can then be done by SQL-querying the object variables values. operator. My job always included
some form of batch-processing,
SCRI
process-automation and
Example for the recurring SCRI: scheduling.
Before working with Automic, I
:PSET &LOAD_01# = SYS_BUSY_01() already scheduled with cron ;-) ,
:PSET &LOAD_10# = SYS_BUSY_10() Maestro and Control-M.
:PSET &LOAD_60# = SYS_BUSY_60()
:PSET &COUNT_PWP# = SYS_INFO(MQPWP,COUNT)
Categories
:PSET &COUNT_WP# = SYS_INFO(MQWP,COUNT)
Automation
:PSET &COUNT_DWP# = SYS_INFO(MQDWP,COUNT) 
Administration
It fetches Automation Engine load data about the last 1, 10 and 60 minutes, and the current amount of queue SQL
entries for PWP, WP and DWP. Guest Articles

Put the commands in a SCRI and execute it recurring, e.g. every 10 minutes.
Subscribe
You can then find the data in AV.
Latest entries (RSS)
SQL Automatisierungen (RSS)
The table AV contains object variable names and values for each RunID, in the table AH you can find client Administration (RSS)
name, object name, timestamps, etc. SQL (RSS)
The query to get a first overview about the collected data:
Search
select AH_TIMESTAMP1, AV_VName, AV_Value
from AH
inner join AV on AH_IDNR = AV_AH_Idnr
--!Modify Client and SCRI-Name according to your system!
where AH_CLIENT = 1
and AH_NAME = 'SCRI_WORKLOAD' Links
order by AH_TIMESTAMP1; Official Automic Site
Websites with Plone
Example output:

AH_TIMESTAMP1 AV_VName AV_Value

2015-01-19 16:01:57.000 &COUNT_DWP# 0

2015-01-19 16:01:57.000 &COUNT_PWP# 1

2015-01-19 16:01:57.000 &COUNT_WP# 18

2015-01-19 16:01:57.000 &LOAD_01# 15

2015-01-19 16:01:57.000 &LOAD_10# 11

2015-01-19 16:01:57.000 &LOAD_60# 15

2015-01-19 16:02:07.000 &COUNT_DWP# 1

2015-01-19 16:02:07.000 &COUNT_PWP# 1

2015-01-19 16:02:07.000 &COUNT_WP# 21

2015-01-19 16:02:07.000 &LOAD_01# 8

2015-01-19 16:02:07.000 &LOAD_10# 4

2015-01-19 16:02:07.000 &LOAD_60# 4

… … …

Note: Timestamps are in UTC!

For quick visualization Excel is a helpful tool. It could even fetch data fro ODBC sources by using SQL itself.

Of course, professional reporting tools are also able to use SQL based data sources.

For visualization it can be useful to modify the query so that each variable has its own column:

select AH_TIMESTAMP1,
MAX(CASE AV_VName WHEN '&LOAD_01#' THEN AV_Value END) as 'LOAD_01',
MAX(CASE AV_VName WHEN '&LOAD_10#' THEN AV_Value END) as 'LOAD_10',
MAX(CASE AV_VName WHEN '&LOAD_60#' THEN AV_Value END) as 'LOAD_60',
MAX(CASE AV_VName WHEN '&COUNT_DWP#' THEN AV_Value END) as 'COUNT_DWP',
MAX(CASE AV_VName WHEN '&COUNT_PWP#' THEN AV_Value END) as 'COUNT_PWP',
MAX(CASE AV_VName WHEN '&COUNT_WP#' THEN AV_Value END) as 'COUNT_WP'
from AH
inner join AV on AH_IDNR = AV_AH_Idnr
--!Modify Client and Name according to your system!
where AH_CLIENT = 1
and AH_NAME = 'SCRI_WORKLOAD'
group by AH_TIMESTAMP1
order by AH_TIMESTAMP1;

Example output:

AH_TIMESTAMP1 LOAD_01 LOAD_10 LOAD_60 COUNT_DWP COUNT_PWP COUNT_WP

2015-01-19 16:01:57.000 15 11 15 0 1 18

2015-01-19 16:02:07.000 8 4 4 1 1 21

2015-01-19 16:05:07.000 4 19 15 0 1 48

2015-01-19 16:08:09.000 7 14 18 1 1 26

2015-01-19 16:11:10.000 44 20 25 0 1 19

2015-01-19 16:14:10.000 15 11 15 0 1 18

… … … … … … …
 

Example excel sheet:

Categories: Administration, SQL

Last modified on 22. January 2015 at 13:42

No comments for this entry

Potrebbero piacerti anche