× Discuss about Archiving, Close of Business, Delivery Setup, Security Management System, Global Processing etc…

trace activity at jshell prompt

  • kda
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 5 months ago #15300 by kda
trace activity at jshell prompt was created by kda
Dear all

at jshell prompt, can we trace all activity there

Thanks

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
11 years 5 months ago #15302 by jpb
Replied by jpb on topic trace activity at jshell prompt
Check the download area in TCSP

Please Log in or Create an account to join the conversation.

  • kda
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 5 months ago #15303 by kda
Replied by kda on topic trace activity at jshell prompt
Dear TCSP

I can't get you

Thanks

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
11 years 5 months ago #15304 by jpb
Replied by jpb on topic trace activity at jshell prompt
1. go to www.temenos.com
2. click on 'Customer Support Portal'
3. click 'Sign In' or 'Register' if you don't have an account
4. sign on
5. click 'T24 clients'
6. in the lower left corner find Tool&Utilities and click 'Temenos Store'
7. under Monitoring find "User Admin Info Gatherer" and click on the picture

Attachments:

Please Log in or Create an account to join the conversation.

  • yoshan
  • Visitor
  • Visitor
11 years 5 months ago #15329 by yoshan
Replied by yoshan on topic trace activity at jshell prompt
All,

I tried to implement it on my support environment and I'm getting following error. Pls advise.
jsh ~ -->create-trigger –a –o jutil_ctrl PREWRITE jShell.Audit.Trigger
Called as:
create-trigger {-adto} filename {triggername|*} subroutine_name_to_call
Supported options are:
-a Amend flag - trigger subroutine can amend the record
-d Debug flag - trigger subroutine can be debugged
-t Terminate flag - trigger subroutine can terminate the update
-o Overwrite any existing definition
** Error [ 201 ] **
Unable to open file –a


Thank you,

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
11 years 5 months ago - 11 years 5 months ago #15332 by jpb
Replied by jpb on topic trace activity at jshell prompt
Make sure you are in the correct directory when creating the trigger !
cd $JBCRELEASEDIR/tmp

If you want to use the routine from TMN be aware that there is a bug when a SELECT-LIST ist used.
The list will be lost resulting in strange behaviour.
Change the routine e.g.:
*
    IF UNASSIGNED(c$f.jBase.jed.audit.log) THEN
        c$f.jBase.jed.audit.log = ""
    END
*
* save the selection list, it's blasted by "who am i"
*
    ListActive   = 0
    JedLogSelect = ""

    IF SYSTEM(11) GT 0 THEN
       ListActive   = 1
       LOOP
       WHILE READNEXT RecId DO
           JedLogSelect<-1> = RecId
       REPEAT
    END
...
...
*
    IF ListActive = 1 THEN
        FORMLIST JedLogSelect
    END
*
    RETURN
*-----------------------------
END

You can also change to get hold of more commands
add the sign-on name from T24 (filled when the session was used to run classic) like LogName := " - ":@USER.ROOT
include the content of the selectlist with
IF ListActive = 1 THEN
RjBASEJedLog<jedlogger.datapart> := " " : CHANGE(JedLogSelect,@FM," ")
END

and so on . . .
Last edit: 11 years 5 months ago by jpb.
The following user(s) said Thank You: yoshan, armin

Please Log in or Create an account to join the conversation.

  • yoshan
  • Visitor
  • Visitor
11 years 5 months ago #15335 by yoshan
Replied by yoshan on topic trace activity at jshell prompt
Hey,
Thank you for the information provided. I have checked the paths and still couldn't able to start the trigger.

jsh ~ -->cd $JBCRELEASEDIR/tmp
jsh /jbase/tmp -->sh
$ ls -al |grep jutil
-rwxrwxr-x 1 t24dm tafc 245760 Jan 09 17:24 jutil_ctrl
-rwxrwxr-x 1 t24dm tafc 8192 Sep 08 2012 jutil_ctrl]D
$ create-trigger –a –o jutil_ctrl PREWRITE jShell.Audit.Trigger
Called as:
create-trigger {-adto} filename {triggername|*} subroutine_name_to_call
Supported options are:
-a Amend flag - trigger subroutine can amend the record
-d Debug flag - trigger subroutine can be debugged
-t Terminate flag - trigger subroutine can terminate the update
-o Overwrite any existing definition
** Error [ 201 ] **
Unable to open file –a
$

Thank you,

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
11 years 5 months ago #15337 by jpb
Replied by jpb on topic trace activity at jshell prompt
Correct directory - wrong shell ?!?
The following user(s) said Thank You: yoshan

Please Log in or Create an account to join the conversation.

  • yoshan
  • Visitor
  • Visitor
11 years 5 months ago #15340 by yoshan
Replied by yoshan on topic trace activity at jshell prompt
Nope even in jshell it won't work.

jsh /jbase/tmp -->create-trigger –a –o jutil_ctrl PREWRITE jShell.Audit.Trigger
Called as:
create-trigger {-adto} filename {triggername|*} subroutine_name_to_call
Supported options are:
-a Amend flag - trigger subroutine can amend the record
-d Debug flag - trigger subroutine can be debugged
-t Terminate flag - trigger subroutine can terminate the update
-o Overwrite any existing definition
** Error [ 201 ] **
Unable to open file –a
jsh /jbase/tmp -->

Please Log in or Create an account to join the conversation.

  • yoshan
  • Visitor
  • Visitor
11 years 5 months ago #15341 by yoshan
Replied by yoshan on topic trace activity at jshell prompt
found it...Document specify command in lowercase and it shuld be uppercase. Thanks JPB for your support.

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
11 years 5 months ago #15344 by jpb
Replied by jpb on topic trace activity at jshell prompt
Interesting behaviour, normally upper- and lowercase commands should be identical, which release do you use ?

In R11 :
jsh R11/bin -->ls -l CREATE-TRIGGER
-r-xr-xr-x 2 1680 other 20616 May 11 2012 CREATE-TRIGGER
jsh R11/bin -->ls -l create-trigger
-r-xr-xr-x 2 1680 other 20616 May 11 2012 create-trigger
The following user(s) said Thank You: yoshan

Please Log in or Create an account to join the conversation.

  • yoshan
  • Visitor
  • Visitor
11 years 5 months ago #15347 by yoshan
Replied by yoshan on topic trace activity at jshell prompt
We are using R9.

Please Log in or Create an account to join the conversation.

  • kda
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 5 months ago #15367 by kda
Replied by kda on topic trace activity at jshell prompt
Hi all
Yes we found it trace only at jshell prompt, what about at $ prompt which we change it by jsh->sh ====> $
We want to trace as well at $ prompt, Please guide

Thanks

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
11 years 5 months ago #15370 by jpb
Replied by jpb on topic trace activity at jshell prompt
There are tons of articles about this in the net, e.g. administratosphere.wordpress.com/2011/05/20/logging-every-shell-command/

Please Log in or Create an account to join the conversation.

  • yoshan
  • Visitor
  • Visitor
11 years 5 months ago #15371 by yoshan
Replied by yoshan on topic trace activity at jshell prompt
You can use shell history(.Sh_History) to trace the shell activities.

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
11 years 5 months ago #15377 by jpb
Replied by jpb on topic trace activity at jshell prompt
There is also a .bash_history, but these files can't be used the same way as jutil_ctrl as they are files and neither jBASE hashed file nor directory and so you can't assign a (jBase-)trigger.
Just looking into the file you don't know who launched the command and when.

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #17071 by premat_mil
Replied by premat_mil on topic trace activity at jshell prompt
I know this is an old post, but I'm trying to setup a jed logger and I don't have any jutil_ctrl file in my tmp folder.

Followed every step in the temenos guide, couldn't find any jutil file.

Advise ?

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
10 years 3 months ago #17094 by jpb
Replied by jpb on topic trace activity at jshell prompt
Which tmp directory did you search?
Should be under your $JBCRELEASEDIR.
The following user(s) said Thank You: premat_mil

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #17156 by premat_mil
Replied by premat_mil on topic trace activity at jshell prompt
Thank you, my $JBCRELEASEDIR was not properly defined. I've managed to configure the trigger and the log is working.

But something is happening, with the trigger defined I'm not being able to JED more than one records at once, i.e.:

SELECT XXX LIKE XXX

>JED XXX

Usually it should jed all of them, but it's asking for record name.
Anyone experienced this issue ?

Thank you.

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
10 years 3 months ago #17161 by jpb
Replied by jpb on topic trace activity at jshell prompt
See above at my earlier post #15332
The following user(s) said Thank You: premat_mil

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds