dbTalk Databases Forums  

Building a custom runner to log all accesses to the 4gi/4go

comp.databases.informix comp.databases.informix


Discuss Building a custom runner to log all accesses to the 4gi/4go in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
informix@southriver.com.au
 
Posts: n/a

Default Building a custom runner to log all accesses to the 4gi/4go - 08-21-2005 , 10:11 AM






Hi,

We are reengineering our existing informix 4gl environment and to
determine which code is actually being run we would like to audit code
being run by our users.

Is it possible to build a custom runner to perform this task? And if so
what function do I need to put our audit code in to ensure that it is
called on every entry through to the 4gi's?

Or do we need to update our 4gls and or put a shell script around
fglgo?

Thanks

R


Reply With Quote
  #2  
Old   
david@smooth1.co.uk
 
Posts: n/a

Default Re: Building a custom runner to log all accesses to the 4gi/4go - 08-21-2005 , 06:51 PM







I don't know about a runner but
auditing each function call will just
slow down the system massively
and use lots of disc space.

You need to talk to the users and remove things they do not use.

End of year reports won't show up
in what people run now but are still needed!


Reply With Quote
  #3  
Old   
Jonathan Leffler
 
Posts: n/a

Default Re: Building a custom runner to log all accesses to the 4gi/4go - 08-21-2005 , 11:58 PM



informix (AT) southriver (DOT) com.au wrote:
Quote:
We are reengineering our existing informix 4gl environment and to
determine which code is actually being run we would like to audit code
being run by our users.

Is it possible to build a custom runner to perform this task? And if so
what function do I need to put our audit code in to ensure that it is
called on every entry through to the 4gi's?

Or do we need to update our 4gls and or put a shell script around
fglgo?
Are you referring to tracking the applications at the program level -
this program is run frequently, this program is run seldom, this program
hasn't been run since the last 29th February - or at a more detailed level?

David responded in terms appropriate to a more detailed level; my
immediate reaction had been to the program level. On rereading your
post, I'm not sure which you had in mind.

If you are referring to the application level, you could create a custom
runner - though I'd be more likely to create a wrapper program that is
used and does the logging before invoking the real runner than try
hacking into the standard runner's main program to do logging.

Alternatively, and depending on your local coding standards, you could
rely on the standard startup code that sorts out local issues - such as
always starting a log file - and use that as a way of detecting which
programs are run when. Of course, if you don't have any standard
startup code, then you have to retrofit such code. A shell script
around fglgo would also work; that is also routine for me (it sets the
environment, etc).

If you are thinking of monitoring within a program, then you'll have to
devise appropriate changes to your I4GL code.

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler (AT) earthlink (DOT) net, jleffler (AT) us (DOT) ibm.com
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/


Reply With Quote
  #4  
Old   
Mike Aubury
 
Posts: n/a

Default Re: Building a custom runner to log all accesses to the 4gi/4go - 08-22-2005 , 02:56 AM




Doubt it will help - but in Aubit4GL there is a function which is called
whenever a 4GL function is called (A4GLSTK_pushFunction) - you can easily add
a piece of code in there to log when functions are being called (being
OpenSource) and use the 4gl map (4glpc --map ...) to get the line numbers and
filenames etc...

The map file also dumps all the tables, columns, windows, cursors etc that it
sees..


On Sunday 21 August 2005 16:11, informix (AT) southriver (DOT) com.au wrote:
Quote:
Hi,

We are reengineering our existing informix 4gl environment and to
determine which code is actually being run we would like to audit code
being run by our users.

Is it possible to build a custom runner to perform this task? And if so
what function do I need to put our audit code in to ensure that it is
called on every entry through to the 4gi's?

Or do we need to update our 4gls and or put a shell script around
fglgo?

Thanks

R
--
Mike Aubury
sending to informix-list


Reply With Quote
  #5  
Old   
informix@southriver.com.au
 
Posts: n/a

Default Re: Building a custom runner to log all accesses to the 4gi/4go - 08-22-2005 , 08:23 AM



Thanks all for the direction. The retrofiting of standard startup code
is underway. But we are looking for some quick wins in identifying used
programs.

But as you identified Jonathan what we really want to identify is:
tracking the applications at the program level - eg. (this program is
run frequently, this program is run seldom, this program hasn't been
run since the last 29th February).

I will be proceeding with some sort of fglgo wrapper and park the
custom runner idea for the present.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.