Difference between revisions of "RCUG 4 Getting Started"

From OC Systems Wiki!
Jump to: navigation, search
m
m
Line 1: Line 1:
  
<!--  <div><div>  -->
 
  
 
[[RCUG_5_RootCause_Demo|Next]] [[RCUG_3_Terminology_and_Concepts|Previous]] [[RCUG_Index|Index]] [[RCUG_Top|Top]]
 
[[RCUG_5_RootCause_Demo|Next]] [[RCUG_3_Terminology_and_Concepts|Previous]] [[RCUG_Index|Index]] [[RCUG_Top|Top]]
Line 6: Line 5:
 
'''RootCause User Guide'''
 
'''RootCause User Guide'''
  
<!--  </div>  -->
 
  
 
= Getting Started =
 
= Getting Started =
  
 
----
 
----
 
<!--  </div><div><div>  -->
 
 
<!-- header -->      {{FULLPAGENAME}}
 
 
  
 
rcc-7
 
rcc-7
  
  
<!--
+
<DIV ID="UID-04start_rc.fm-949488"></DIV>  -->
<DIV>
 
<A NAME=HEADING7></A>
 
 
 
<DIV>
 
<P><A HREF=rcc-8.html>[Next]</A>
 
<A HREF=rcc-6.html>[Previous]</A>
 
<A HREF=rcc-1.html>[Top]</A>
 
<A HREF=rcc-3.html>[Contents]</A>
 
<A HREF=rcc-14.html>[Index]</A></P>  -->
 
 
 
<P>RootCause</P>
 
 
 
<!--  </DIV>
 
<A NAME="LINK-04start_rc.fm-firstpage"></A>
 
<A NAME=HEADING7-0></A>
 
<A NAME="UID-04start_rc.fm-949487"></A>
 
<H1>  <A NAME=MARKER-9-508></A> Getting Started</H1>  -->
 
 
 
----  <!--  <HR>  -->
 
 
 
<!--  <A NAME=HEADING7-1></A>
 
<A NAME="UID-04start_rc.fm-949488"></A>  -->
 
  
<!-- <A NAME=MARKER-9-509></A>  -->
+
<!-- <DIV ID=MARKER-9-509></DIV>  -->
 
== The Setup Script ==
 
== The Setup Script ==
<!-- <A NAME=MARKER-10-510></A>  -->
+
<!-- <DIV ID=MARKER-10-510></DIV>  -->
  
 
Installation of RootCause from CD-ROM or compressed file is covered in  
 
Installation of RootCause from CD-ROM or compressed file is covered in  
 
[[RCUG_2_Installing_RootCause|Chapter 2, &quot;Installing RootCause&quot;]].
 
[[RCUG_2_Installing_RootCause|Chapter 2, &quot;Installing RootCause&quot;]].
<!--  []<A HREF="rcc-5.html#MARKER-9-205">Chapter 2, &quot;Installing RootCause&quot;</A>.  -->
+
<!--  [][["rcc-5.html#MARKER-9-205">Chapter 2, &quot;Installing RootCause&quot;</DIV>.  -->
  
<!--  <A NAME=MARKER-10-511></A>
+
<!--  <DIV ID=MARKER-10-511></DIV>
 
After installation, but each time before you run RootCause, you will need to execute its setup script. This will set the necessary environment variables (e.g. APROBE, PATH, etc.).  This is typically done by each user's login script because it usually needs to be done only once per login session.
 
After installation, but each time before you run RootCause, you will need to execute its setup script. This will set the necessary environment variables (e.g. APROBE, PATH, etc.).  This is typically done by each user's login script because it usually needs to be done only once per login session.
  
Line 68: Line 39:
  
 
You must execute this  
 
You must execute this  
<!-- <A NAME=MARKER-2-512></A>  -->
+
<!-- <DIV ID=MARKER-2-512></DIV>  -->
 
setup script in your shell every time you log in or otherwise reinitialize your environment.  Therefore it is a good idea to put the appropriate command above in your <code>~/.profile</code> (for Korn or Bourne shells) or <code>~/.login file</code> (for C shell).  See  
 
setup script in your shell every time you log in or otherwise reinitialize your environment.  Therefore it is a good idea to put the appropriate command above in your <code>~/.profile</code> (for Korn or Bourne shells) or <code>~/.login file</code> (for C shell).  See  
<A HREF="rcc-12.html#MARKER-9-2009">"RootCause and Different Shells"</A>  
+
[["rcc-12.html#MARKER-9-2009">"RootCause and Different Shells"</DIV>  
 
for information about other shells.</P>
 
for information about other shells.</P>
  
 
This script defines the <code>APROBE</code> environment variable and appends  
 
This script defines the <code>APROBE</code> environment variable and appends  
 
<CODE>$APROBE/bin</CODE> to your  
 
<CODE>$APROBE/bin</CODE> to your  
<!-- <A NAME=MARKER-2-513></A>  -->
+
<!-- <DIV ID=MARKER-2-513></DIV>  -->
 
'''PATH''' environment variable.  It also sets defaults for both  
 
'''PATH''' environment variable.  It also sets defaults for both  
<!--  <A NAME=MARKER-2-514></A>  -->
+
<!--  <DIV ID=MARKER-2-514></DIV>  -->
 
'''APROBE_REGISTRY''' and  
 
'''APROBE_REGISTRY''' and  
<!--  <A NAME=MARKER-2-515></A>  -->
+
<!--  <DIV ID=MARKER-2-515></DIV>  -->
 
'''APROBE_LOG''' environment variables.  If the registry does not exist, the setup script will create a default one.
 
'''APROBE_LOG''' environment variables.  If the registry does not exist, the setup script will create a default one.
  
Line 99: Line 70:
  
 
<!--   
 
<!--   
<A NAME=HEADING7-17></A>
+
<DIV ID=HEADING7-17></DIV>
<A NAME="UID-04start_rc.fm-949707"></A>  -->
+
<DIV ID="UID-04start_rc.fm-949707"></DIV>  -->
  
 
== The RootCause Process ==
 
== The RootCause Process ==
Line 108: Line 79:
  
 
<LI><P>Run your application in the normal way, but with RootCause enabled in its environment, for example:</P>
 
<LI><P>Run your application in the normal way, but with RootCause enabled in its environment, for example:</P>
<A NAME=MARKER-2-516></A>rootcause<A NAME=MARKER-10-517></A>_on
+
<DIV ID=MARKER-2-516></DIV>rootcause<DIV ID=MARKER-10-517></DIV>_on
 
<BR>my_app_driver arg1 arg2
 
<BR>my_app_driver arg1 arg2
<BR><A NAME=MARKER-10-518></A>
+
<BR><DIV ID=MARKER-10-518></DIV>
<A NAME=MARKER-2-519></A>rootcause<A NAME=MARKER-10-520></A>_off
+
<DIV ID=MARKER-2-519></DIV>rootcause<DIV ID=MARKER-10-520></DIV>_off
  
 
<P>This will record information about the application in the  
 
<P>This will record information about the application in the  
<A HREF="rcc-10.html#MARKER-9-963">RootCause Log</A> file.</P>
+
[["rcc-10.html#MARKER-9-963">RootCause Log</DIV> file.</P>
  
 
<P>NOTE: On AIX, you must use "apaudit my_app_driver" in the above command instead of just "my_app_driver" to allow RootCause to log and trace your application.  See  
 
<P>NOTE: On AIX, you must use "apaudit my_app_driver" in the above command instead of just "my_app_driver" to allow RootCause to log and trace your application.  See  
<A HREF="#MARKER-9-532">Enabling RootCause for an AIX Application</A>  
+
[["#MARKER-9-532">Enabling RootCause for an AIX Application</DIV>  
 
below.</P>
 
below.</P>
  
 
<LI><P>Start the RootCause Console GUI with the  
 
<LI><P>Start the RootCause Console GUI with the  
<A NAME=MARKER-2-521></A>
+
<DIV ID=MARKER-2-521></DIV>
<code><A HREF="rcc-12.html#MARKER-9-2101">rootcause open</A></CODE>  
+
<code>[["rcc-12.html#MARKER-9-2101">rootcause open</DIV></CODE>  
 
command. This will open the  
 
command. This will open the  
<A HREF="rcc-11.html#MARKER-9-1321">Workspace Browser</A>  
+
[["rcc-11.html#MARKER-9-1321">Workspace Browser</DIV>  
 
and the  
 
and the  
<A HREF="rcc-11.html#MARKER-9-1725">Trace Display</A>  
+
[["rcc-11.html#MARKER-9-1725">Trace Display</DIV>  
 
showing the contents of the  
 
showing the contents of the  
<A NAME=MARKER-2-522></A>
+
<DIV ID=MARKER-2-522></DIV>
 
RootCause log file.</P>
 
RootCause log file.</P>
  
 
<LI><P>Use  
 
<LI><P>Use  
 
<EM>
 
<EM>
<A NAME=MARKER-2-523></A>
+
<DIV ID=MARKER-2-523></DIV>
<A HREF="rcc-11.html#MARKER-9-1730">Open Associated Workspace</A>
+
[["rcc-11.html#MARKER-9-1730">Open Associated Workspace</DIV>
 
</EM>  
 
</EM>  
 
on the application program listed in the RootCause log display, and approve the creation of the new workspace.</P>
 
on the application program listed in the RootCause log display, and approve the creation of the new workspace.</P>
Line 140: Line 111:
 
<LI><P>Click  
 
<LI><P>Click  
 
<EM>
 
<EM>
<A HREF="rcc-11.html#MARKER-9-1426">Setup</A>
+
[["rcc-11.html#MARKER-9-1426">Setup</DIV>
 
</EM>  
 
</EM>  
 
and define the probes for the application by choosing what you want to trace in the  
 
and define the probes for the application by choosing what you want to trace in the  
<A NAME=MARKER-2-524></A>
+
<DIV ID=MARKER-2-524></DIV>
<A HREF="rcc-11.html#MARKER-9-1531">Trace Setup Dialog</A>.  
+
[["rcc-11.html#MARKER-9-1531">Trace Setup Dialog</DIV>.  
 
Note that RootCause writes the probes to separate files, so the application itself remains totally unmodified.</P>
 
Note that RootCause writes the probes to separate files, so the application itself remains totally unmodified.</P>
  
 
<LI><P>Execute the application as you normally would, but with rootcause "on", as in step 1 above. The application need not be executed from the RootCause GUI, although there is a convenience  
 
<LI><P>Execute the application as you normally would, but with rootcause "on", as in step 1 above. The application need not be executed from the RootCause GUI, although there is a convenience  
 
<EM>
 
<EM>
<A HREF="rcc-11.html#MARKER-9-1428">Run</A>
+
[["rcc-11.html#MARKER-9-1428">Run</DIV>
 
</EM>  
 
</EM>  
 
button to do so. This makes it very simple to use RootCause, even if the application is deeply embedded in a complex system.</P>
 
button to do so. This makes it very simple to use RootCause, even if the application is deeply embedded in a complex system.</P>
Line 155: Line 126:
 
<LI><P>Click the  
 
<LI><P>Click the  
 
<EM>
 
<EM>
<A HREF="rcc-11.html#MARKER-9-1431">Index</A>
+
[["rcc-11.html#MARKER-9-1431">Index</DIV>
 
</EM>  
 
</EM>  
 
button to bring up the index of data that was logged for the newest process in the workspace, and double-click on an item there to format the trace data collected by the probes, or you can use the  
 
button to bring up the index of data that was logged for the newest process in the workspace, and double-click on an item there to format the trace data collected by the probes, or you can use the  
 
<EM>
 
<EM>
<A HREF="rcc-11.html#MARKER-9-1432">Examine</A>
+
[["rcc-11.html#MARKER-9-1432">Examine</DIV>
 
</EM>  
 
</EM>  
 
button to directly select the data file(s) you wish to view.</P>
 
button to directly select the data file(s) you wish to view.</P>
  
 
<LI><P>In the  
 
<LI><P>In the  
<A HREF="rcc-11.html#MARKER-9-1725">Trace Display</A>  
+
[["rcc-11.html#MARKER-9-1725">Trace Display</DIV>  
 
window that appears is a call tree. Here you can:</P>
 
window that appears is a call tree. Here you can:</P>
  
Line 170: Line 141:
 
<LI><P>Use the  
 
<LI><P>Use the  
 
<EM>
 
<EM>
<A HREF="rcc-11.html#MARKER-9-1795">Find</A>
+
[["rcc-11.html#MARKER-9-1795">Find</DIV>
 
</EM>  
 
</EM>  
 
button to search for specific functions or events in the data.</P>
 
button to search for specific functions or events in the data.</P>
Line 176: Line 147:
 
<LI><P>Select a node in the event tree and right-click to bring up the  
 
<LI><P>Select a node in the event tree and right-click to bring up the  
 
<EM>
 
<EM>
<A HREF="rcc-11.html#MARKER-9-1826">Trace Display Popup Menu</A>
+
[["rcc-11.html#MARKER-9-1826">Trace Display Popup Menu</DIV>
 
</EM>,  
 
</EM>,  
 
from which you can disable traces and perform other operations.</P>
 
from which you can disable traces and perform other operations.</P>
  
 
<LI><P>Select a  
 
<LI><P>Select a  
<A NAME=MARKER-2-525></A>
+
<DIV ID=MARKER-2-525></DIV>
 
SYN_
 
SYN_
<A NAME=MARKER-10-526></A>
+
<DIV ID=MARKER-10-526></DIV>
 
CALL_COUNTS node and use  
 
CALL_COUNTS node and use  
<A HREF="rcc-11.html#MARKER-9-1761">Show Associated Table</A>  
+
[["rcc-11.html#MARKER-9-1761">Show Associated Table</DIV>  
 
to view and navigate to the function
 
to view and navigate to the function
<A NAME=MARKER-10-527></A>s  
+
<DIV ID=MARKER-10-527></DIV>s  
 
in the data file(s).</P>
 
in the data file(s).</P>
  
 
<LI><P>Select a  
 
<LI><P>Select a  
<A NAME=MARKER-2-528></A>
+
<DIV ID=MARKER-2-528></DIV>
 
LOAD_SHED
 
LOAD_SHED
<A NAME=MARKER-2-529></A>
+
<DIV ID=MARKER-2-529></DIV>
<A NAME=MARKER-10-530></A>  
+
<DIV ID=MARKER-10-530></DIV>  
 
node and use  
 
node and use  
<A HREF="rcc-11.html#MARKER-9-1761">Show Associated Table</A>  
+
[["rcc-11.html#MARKER-9-1761">Show Associated Table</DIV>  
 
to view the table of all function
 
to view the table of all function
<A NAME=MARKER-10-531></A>s  
+
<DIV ID=MARKER-10-531></DIV>s  
 
for which tracing was disabled due to  
 
for which tracing was disabled due to  
<A HREF="rcc-6.html#MARKER-9-433">load shedding</A>  
+
[["rcc-6.html#MARKER-9-433">load shedding</DIV>  
 
during the run, and disable the tracing of these during subsequent runs.</P>
 
during the run, and disable the tracing of these during subsequent runs.</P>
  
Line 210: Line 181:
  
 
If you wish to run the probes on a remote computer, then there are additional steps to send a RootCause workspace to the remote computer before execution. These are discussed in detail in  
 
If you wish to run the probes on a remote computer, then there are additional steps to send a RootCause workspace to the remote computer before execution. These are discussed in detail in  
[]<A HREF="rcc-9.html#MARKER-9-873">Chapter 6, &quot;Deploying the RootCause Workspace&quot;</A>.
+
[][["rcc-9.html#MARKER-9-873">Chapter 6, &quot;Deploying the RootCause Workspace&quot;</DIV>.
  
 
This process is explored using a concrete example in the next chapter,  
 
This process is explored using a concrete example in the next chapter,  
[]<A HREF="rcc-8.html#MARKER-9-707">&quot;RootCause Demo&quot;</A>.
+
[][["rcc-8.html#MARKER-9-707">&quot;RootCause Demo&quot;</DIV>.
  
 
<!--   
 
<!--   
<A NAME=HEADING7-37></A>
+
<DIV ID=HEADING7-37></DIV>
<A NAME="UID-04start_rc.fm-958254"></A>  -->
+
<DIV ID="UID-04start_rc.fm-958254"></DIV>  -->
  
<!--  <A NAME=MARKER-9-532></A>  -->
+
<!--  <DIV ID=MARKER-9-532></DIV>  -->
 
== Enabling RootCause for an AIX Appli<B>c</B>ation ==
 
== Enabling RootCause for an AIX Appli<B>c</B>ation ==
  
<!-- <A NAME=MARKER-2-533></A>  -->
+
<!-- <DIV ID=MARKER-2-533></DIV>  -->
 
AIX provides no mechanism to cause a shared library to be automatically loaded into every application started. Therefore, the user must explicitly identify applications that are to be "intercepted" and recorded in the RootCause log, and subsequently traced using the process described in this document.
 
AIX provides no mechanism to cause a shared library to be automatically loaded into every application started. Therefore, the user must explicitly identify applications that are to be "intercepted" and recorded in the RootCause log, and subsequently traced using the process described in this document.
  
 
To run an executable under RootCause from the command line:
 
To run an executable under RootCause from the command line:
  
<!--  <A NAME=MARKER-2-534></A>  -->
+
<!--  <DIV ID=MARKER-2-534></DIV>  -->
 
<PRE>
 
<PRE>
 
$ rootcause run my_program -opt arg2
 
$ rootcause run my_program -opt arg2
Line 234: Line 205:
 
or
 
or
  
<!--  <A NAME=MARKER-2-535></A>  -->
+
<!--  <DIV ID=MARKER-2-535></DIV>  -->
 
<PRE>
 
<PRE>
 
$ rootcause on
 
$ rootcause on
Line 242: Line 213:
  
 
If it is not possible to directly invoke the application's executable from the command-line, you can simply rename the  
 
If it is not possible to directly invoke the application's executable from the command-line, you can simply rename the  
<A HREF="rcc-6.html#MARKER-9-425">executable</A>  
+
[["rcc-6.html#MARKER-9-425">executable</DIV>  
 
to have a <CODE>.exe</CODE> suffix, and replace it with a (soft-link to a) script which will invoke the real application.  For example:
 
to have a <CODE>.exe</CODE> suffix, and replace it with a (soft-link to a) script which will invoke the real application.  For example:
  
Line 251: Line 222:
  
 
The  
 
The  
<A NAME=MARKER-2-536></A>
+
<DIV ID=MARKER-2-536></DIV>
 
<code>run_with_apaudit</CODE>  
 
<code>run_with_apaudit</CODE>  
 
script simply re-invokes the program with apaudit as in the second example above.
 
script simply re-invokes the program with apaudit as in the second example above.
  
 
When we use the phrase  
 
When we use the phrase  
"<A HREF="rcc-6.html#MARKER-9-458">run with rootcause on</A>"  
+
"[["rcc-6.html#MARKER-9-458">run with rootcause on</DIV>"  
 
we refer to any of the above mechanisms.
 
we refer to any of the above mechanisms.
  
Line 262: Line 233:
  
 
<!--   
 
<!--   
<A NAME="LINK-04start_rc.fm-lastpage"></A>
+
<DIV ID="LINK-04start_rc.fm-lastpage"></DIV>
 
</DIV>
 
</DIV>
 
<DIV>  -->
 
<DIV>  -->
Line 269: Line 240:
  
 
<!--   
 
<!--   
<P><A HREF=rcc-8.html>[Next]</A>  
+
<P>[[rcc-8.html>[Next]</DIV>  
<A HREF=rcc-6.html>[Previous]</A>  
+
[[rcc-6.html>[Previous]</DIV>  
<A HREF=rcc-1.html>[Top]</A>  
+
[[rcc-1.html>[Top]</DIV>  
<A HREF=rcc-3.html>[Contents]</A>  
+
[[rcc-3.html>[Contents]</DIV>  
<A HREF=rcc-14.html>[Index]</A></P>
+
[[rcc-14.html>[Index]</DIV></P>
 
<P></P>
 
<P></P>
 
<ADDRESS>Copyright 2006  OC Systems, Inc.</ADDRESS>
 
<ADDRESS>Copyright 2006  OC Systems, Inc.</ADDRESS>

Revision as of 05:01, 15 September 2017


Next Previous Index Top

RootCause User Guide


Getting Started


rcc-7


-->

The Setup Script

Installation of RootCause from CD-ROM or compressed file is covered in Chapter 2, "Installing RootCause".

setup script in your shell every time you log in or otherwise reinitialize your environment. Therefore it is a good idea to put the appropriate command above in your ~/.profile (for Korn or Bourne shells) or ~/.login file (for C shell). See

[["rcc-12.html#MARKER-9-2009">"RootCause and Different Shells" for information about other shells.

This script defines the APROBE environment variable and appends $APROBE/bin to your PATH environment variable. It also sets defaults for both APROBE_REGISTRY and APROBE_LOG environment variables. If the registry does not exist, the setup script will create a default one.

The setup script also defines aliases that are not inherited by subsequent non-login shells you may open, such as with the xterm command. To ensure that these aliases are defined (specifically rootcause_on and rootcause_off), you may add the command:

. $APROBE/setup.kshrc

into your ~/.kshrc file if you are using Korn shell, or the command

source $APROBE/setup.cshrc

into your ~/.cshrc file if you are using C shell.

Now you're ready to run RootCause.


The RootCause Process

Using RootCause is typically an iterative process with the following pattern:

  1. Run your application in the normal way, but with RootCause enabled in its environment, for example:

    rootcause
    _on


    my_app_driver arg1 arg2


    rootcause
    _off

    This will record information about the application in the [["rcc-10.html#MARKER-9-963">RootCause Log file.

    NOTE: On AIX, you must use "apaudit my_app_driver" in the above command instead of just "my_app_driver" to allow RootCause to log and trace your application. See [["#MARKER-9-532">Enabling RootCause for an AIX Application below.

  2. Start the RootCause Console GUI with the

    [["rcc-12.html#MARKER-9-2101">rootcause open

    command. This will open the

    [["rcc-11.html#MARKER-9-1321">Workspace Browser

    and the

    [["rcc-11.html#MARKER-9-1725">Trace Display

    showing the contents of the

    RootCause log file.

  3. Use

    [["rcc-11.html#MARKER-9-1730">Open Associated Workspace

    on the application program listed in the RootCause log display, and approve the creation of the new workspace.

  4. Click [["rcc-11.html#MARKER-9-1426">Setup

    and define the probes for the application by choosing what you want to trace in the

    [["rcc-11.html#MARKER-9-1531">Trace Setup Dialog. Note that RootCause writes the probes to separate files, so the application itself remains totally unmodified.

  5. Execute the application as you normally would, but with rootcause "on", as in step 1 above. The application need not be executed from the RootCause GUI, although there is a convenience [["rcc-11.html#MARKER-9-1428">Run

    button to do so. This makes it very simple to use RootCause, even if the application is deeply embedded in a complex system.

  6. Click the [["rcc-11.html#MARKER-9-1431">Index

    button to bring up the index of data that was logged for the newest process in the workspace, and double-click on an item there to format the trace data collected by the probes, or you can use the

    [["rcc-11.html#MARKER-9-1432">Examine

    button to directly select the data file(s) you wish to view.

  7. In the [["rcc-11.html#MARKER-9-1725">Trace Display window that appears is a call tree. Here you can:

    • Use the [["rcc-11.html#MARKER-9-1795">Find

      button to search for specific functions or events in the data.

    • Select a node in the event tree and right-click to bring up the [["rcc-11.html#MARKER-9-1826">Trace Display Popup Menu

      ,

      from which you can disable traces and perform other operations.

    • Select a

      SYN_

      CALL_COUNTS node and use

      [["rcc-11.html#MARKER-9-1761">Show Associated Table

      to view and navigate to the function

      s in the data file(s).

    • Select a

      LOAD_SHED

      node and use

      [["rcc-11.html#MARKER-9-1761">Show Associated Table

      to view the table of all function

      s

      for which tracing was disabled due to

      [["rcc-6.html#MARKER-9-433">load shedding during the run, and disable the tracing of these during subsequent runs.

    • Save the output as Text or XML for off-line processing

  8. When you have completed analyzing the data and modifying the trace to tune the information collected, go back to step 4 to trace parameters or add probe actions, or return to step 2 to choose another program to trace.

If you wish to run the probes on a remote computer, then there are additional steps to send a RootCause workspace to the remote computer before execution. These are discussed in detail in

[][["rcc-9.html#MARKER-9-873">Chapter 6, "Deploying the RootCause Workspace".

This process is explored using a concrete example in the next chapter,

[][["rcc-8.html#MARKER-9-707">"RootCause Demo".


Enabling RootCause for an AIX Application

AIX provides no mechanism to cause a shared library to be automatically loaded into every application started. Therefore, the user must explicitly identify applications that are to be "intercepted" and recorded in the RootCause log, and subsequently traced using the process described in this document.

To run an executable under RootCause from the command line:

$ rootcause run my_program -opt arg2

or

$ rootcause on
$ apaudit my_program -opt arg2
$ rootcause off

If it is not possible to directly invoke the application's executable from the command-line, you can simply rename the

[["rcc-6.html#MARKER-9-425">executable

to have a .exe suffix, and replace it with a (soft-link to a) script which will invoke the real application. For example:

$ mv my_program my_program.exe
$ ln -s $APROBE/bin/run_with_apaudit my_program

The

run_with_apaudit script simply re-invokes the program with apaudit as in the second example above.

When we use the phrase

"[["rcc-6.html#MARKER-9-458">run with rootcause on"

we refer to any of the above mechanisms.

To enable automatic RootCause actions for Java applications (i.e., those normally run with the "java" command), you must do this for the native java executable. This is generally not necessary, since you can more easily change "java" to "apaudit java" at the point of invocation. However, if you want to enable RootCause in your central Java installation, you should contact OC Systems for assistance: different Java versions are configured differently.






Copyright 2006-2017 OC Systems, Inc.

Next Previous Index Top