Difference between revisions of "RCUG RootCause Command Reference"

From OC Systems Wiki!
Jump to: navigation, search
m
m
Line 9: Line 9:
  
 
= RootCause Command Reference =
 
= RootCause Command Reference =
 +
----
  
----
+
The following commands are available from the command line after RootCause has been installed and the setup script in the RootCause installation directory has been executed (see <A HREF="rcc-7.html#MARKER-9-508">Chapter 4, "Getting Started"</A>). <A NAME=HEADING12-2></A><A NAME="UID-09command_rc.fm-998723"></A><DIV ID=MARKER-9-2009></DIV>
 +
<!--  <H2><A NAME=MARKER-9-2009></A>RootCause and Different Shells</H2>  -->
 +
== RootCause and Different Shells ==
  
The following commands are available from the command line after RootCause has been installed and the setup script in the RootCause installation directory has been executed (see <A HREF="rcc-7.html#MARKER-9-508">Chapter 4, "Getting Started"</A>). <A NAME=HEADING12-2></A><A NAME="UID-09command_rc.fm-998723"></A><DIV ID=MARKER-9-2009></DIV><H2><A NAME=MARKER-9-2009></A>RootCause and Different Shells</H2>
+
Different shells on Solaris have different capabilities. The following differences apply to the different shells:
Different shells on Solaris have different capabilities. The following differences apply to the different shells:<H4><A NAME=MARKER-2-2010></A>sh (<A NAME=MARKER-2-2011></A>Bourne shell):</H4>
+
<H4><A NAME=MARKER-2-2010></A>sh (<A NAME=MARKER-2-2011></A>Bourne shell):</H4>
The <CODE><A NAME=MARKER-2-2012></A>rootcause_on</CODE> and <CODE><A NAME=MARKER-2-2013></A>rootcause_off</CODE> commands are not available. Instead, you must use the dot commands:<PRE>  
+
The <CODE><A NAME=MARKER-2-2012></A>rootcause_on</CODE> and <CODE><A NAME=MARKER-2-2013></A>rootcause_off</CODE> commands are not available. Instead, you must use the dot commands:<PRE>  
 
. <A NAME=MARKER-2-2014></A>rootcause_enable  
 
. <A NAME=MARKER-2-2014></A>rootcause_enable  
 
. <A NAME=MARKER-2-2015></A>rootcause_disable  
 
. <A NAME=MARKER-2-2015></A>rootcause_disable  
</PRE><H4><A NAME=MARKER-2-2016></A>ksh (Korn shell)</H4>
+
</PRE>
You may use <CODE>rootcause on</CODE> and <CODE>rootcause off</CODE> instead of <CODE>rootcause_on</CODE>, and <CODE>rootcause_off</CODE>, because rootcause is defined as a shell function. Note that RootCause requires that <CODE>ksh</CODE> be installed, though you need not use it as your shell.  On Linux you may have to install <CODE>pdksh</CODE>.<H4><A NAME=MARKER-2-2017></A>csh (C shell)</H4>
+
<H4><A NAME=MARKER-2-2016></A>ksh (Korn shell)</H4>
rootcause_on and rootcause_off are aliases defined in your shell when you "source" setup.csh. C shell does not support shell functions, so "rootcause on" and "rootcause off" won't work.<H4><A NAME=MARKER-2-2018></A>bash</H4>
+
You may use <CODE>rootcause on</CODE> and <CODE>rootcause off</CODE> instead of <CODE>rootcause_on</CODE>, and <CODE>rootcause_off</CODE>, because rootcause is defined as a shell function. Note that RootCause requires that <CODE>ksh</CODE> be installed, though you need not use it as your shell.  On Linux you may have to install <CODE>pdksh</CODE>.
The setup script and shell functions for <CODE>ksh</CODE> work for <CODE>bash</CODE> as well. However, ksh is still needed for <A NAME=MARKER-2-2019></A>install_rootcause, <A NAME=MARKER-2-2020></A>rootcause_status, and other scripts.<A NAME=HEADING12-14></A><A NAME="UID-09command_rc.fm-976940"></A><H2> rootcause</H2>
+
<H4><A NAME=MARKER-2-2017></A>csh (C shell)</H4>
The <A NAME=MARKER-2-2021></A><CODE>rootcause</CODE> command is designed to run in a simple, intuitive manner when default file names are used. When run with no arguments, it gives version and license information. When run with rootcause -h, it shows the following commands, which are described in detail in this chapter.<DL>
+
rootcause_on and rootcause_off are aliases defined in your shell when you "source" setup.csh. C shell does not support shell functions, so "rootcause on" and "rootcause off" won't work.
 +
<H4><A NAME=MARKER-2-2018></A>bash</H4>
 +
The setup script and shell functions for <CODE>ksh</CODE> work for <CODE>bash</CODE> as well. However, ksh is still needed for <A NAME=MARKER-2-2019></A>install_rootcause, <A NAME=MARKER-2-2020></A>rootcause_status, and other scripts.<A NAME=HEADING12-14></A><A NAME="UID-09command_rc.fm-976940"></A>
 +
<!--  <H2> rootcause</H2> -->
 +
== rootcause ==
 +
 
 +
The <A NAME=MARKER-2-2021></A><CODE>rootcause</CODE> command is designed to run in a simple, intuitive manner when default file names are used. When run with no arguments, it gives version and license information. When run with rootcause -h, it shows the following commands, which are described in detail in this chapter.
 +
<DL>
 
<DT>'''<A HREF="#MARKER-9-2022">rootcause build</A>'''<DD> build traces/probes in workspace.
 
<DT>'''<A HREF="#MARKER-9-2022">rootcause build</A>'''<DD> build traces/probes in workspace.
 
<DT>'''<A HREF="#MARKER-9-2027">rootcause collect</A>'''<DD> collect agent workspace data for analysis.
 
<DT>'''<A HREF="#MARKER-9-2027">rootcause collect</A>'''<DD> collect agent workspace data for analysis.
Line 40: Line 50:
 
<DT>'''<A HREF="#MARKER-9-2127">rootcause xrun</A>'''<DD> run a command under rootcause in a separate window.</DL><A NAME=HEADING12-32></A><A NAME="UID-09command_rc.fm-973633"></A>
 
<DT>'''<A HREF="#MARKER-9-2127">rootcause xrun</A>'''<DD> run a command under rootcause in a separate window.</DL><A NAME=HEADING12-32></A><A NAME="UID-09command_rc.fm-973633"></A>
 
----
 
----
<H2><A NAME=MARKER-9-2022></A>rootcause build</H2>
+
<!--  <H2><A NAME=MARKER-9-2022></A>rootcause build</H2>  -->
The <CODE><A NAME=MARKER-2-2023></A>rootcause <A NAME=MARKER-2-2024></A>build</CODE> command updates a RootCause workspace without opening the GUI. This is useful for maintaining workspaces as part of a script-driven product development process. The location of a workspace is provided, along with paths to all relevant programs and modules whose locations or contents may have changed.  Note that a side-effect of this process may be to lose traces that no longer apply to a changed module.<H4> Syntax:</H4><PRE>  
+
== rootcause build ==
 +
 
 +
The <CODE><A NAME=MARKER-2-2023></A>rootcause <A NAME=MARKER-2-2024></A>build</CODE> command updates a RootCause workspace without opening the GUI. This is useful for maintaining workspaces as part of a script-driven product development process. The location of a workspace is provided, along with paths to all relevant programs and modules whose locations or contents may have changed.  Note that a side-effect of this process may be to lose traces that no longer apply to a changed module.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause build   
 
rootcause build   
 
['''-Fh'''] [ '''-x'''<EM>program_file</EM> | <EM>file</EM>.class | <EM>file</EM>.jar ]  
 
['''-Fh'''] [ '''-x'''<EM>program_file</EM> | <EM>file</EM>.class | <EM>file</EM>.jar ]  
 
['''-m'''<EM>module</EM>]*  
 
['''-m'''<EM>module</EM>]*  
 
['''-w'''] <EM>workspace</EM>.aws  
 
['''-w'''] <EM>workspace</EM>.aws  
 
+
</PRE>
</PRE><H4> Options:</H4><DL>
+
<H4> Options:</H4>
 +
<DL>
 
<DT>''''''-F''''''<DD> force the build even if the workspace is locked.
 
<DT>''''''-F''''''<DD> force the build even if the workspace is locked.
 
<DT>''''''-h''''''<DD> give this command's usage
 
<DT>''''''-h''''''<DD> give this command's usage
Line 55: Line 70:
 
<DT>''''''-w <EM>workspace</EM>'''.aws'''<DD>
 
<DT>''''''-w <EM>workspace</EM>'''.aws'''<DD>
 
an existing RootCause workspace.
 
an existing RootCause workspace.
<DT><DD></DL><H4> Examples:</H4><OL><LI>
+
<DT><DD></DL>
 +
<H4> Examples:</H4>
 +
<OL><LI>
 
Rebuild workspace pi_demo.aws<A NAME=MARKER-10-2025></A> against current modules in case they've changed:  
 
Rebuild workspace pi_demo.aws<A NAME=MARKER-10-2025></A> against current modules in case they've changed:  
 
rootcause build Pi.aws  
 
rootcause build Pi.aws  
Line 64: Line 81:
 
</OL><A NAME=HEADING12-48></A><A NAME="UID-09command_rc.fm-973690"></A>
 
</OL><A NAME=HEADING12-48></A><A NAME="UID-09command_rc.fm-973690"></A>
 
----
 
----
<H2><A NAME=MARKER-9-2027></A>rootcause collect</H2>
+
<!--  <H2><A NAME=MARKER-9-2027></A>rootcause collect</H2>  -->
The <CODE><A NAME=MARKER-2-2028></A>rootcause <A NAME=MARKER-2-2029></A>collect</CODE> command is executed on a <A NAME=MARKER-2-2030></A>remote computer where the <A NAME=MARKER-2-2031></A>RootCause Agent component has been installed to gather the RootCause data together into a single <CODE><A NAME=MARKER-2-2032></A>.clct</CODE> file to be transmitted to a computer where the RootCause GUI component has been installed for subsequent <A NAME=MARKER-2-2033></A>decollection and analysis. It examines the rootcause registry to determine the workspace for the applications<A NAME=MARKER-10-2034></A>, if no workspace is specified. Multiple applications<A NAME=MARKER-10-2035></A> and workspaces may be specified for collection.    If no arguments are supplied, the <A NAME=MARKER-2-2036></A>RootCause log and <A NAME=MARKER-2-2037></A>registry are collected.<H4> Syntax:</H4><PRE>  
+
== rootcause collect ==
 +
 
 +
The <CODE><A NAME=MARKER-2-2028></A>rootcause <A NAME=MARKER-2-2029></A>collect</CODE> command is executed on a <A NAME=MARKER-2-2030></A>remote computer where the <A NAME=MARKER-2-2031></A>RootCause Agent component has been installed to gather the RootCause data together into a single <CODE><A NAME=MARKER-2-2032></A>.clct</CODE> file to be transmitted to a computer where the RootCause GUI component has been installed for subsequent <A NAME=MARKER-2-2033></A>decollection and analysis. It examines the rootcause registry to determine the workspace for the applications<A NAME=MARKER-10-2034></A>, if no workspace is specified. Multiple applications<A NAME=MARKER-10-2035></A> and workspaces may be specified for collection.    If no arguments are supplied, the <A NAME=MARKER-2-2036></A>RootCause log and <A NAME=MARKER-2-2037></A>registry are collected.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause collect   
 
rootcause collect   
 
[-'''AFh'''] [ '''-o'''<EM>clct_file</EM> ] [ '''-f''' other_file ]  
 
[-'''AFh'''] [ '''-o'''<EM>clct_file</EM> ] [ '''-f''' other_file ]  
 
[ ['''-x''']  <EM>program_file</EM> | '''-c'''<EM>class</EM> | ['''-w'''] <EM>workspace</EM>.aws ]...  
 
[ ['''-x''']  <EM>program_file</EM> | '''-c'''<EM>class</EM> | ['''-w'''] <EM>workspace</EM>.aws ]...  
</PRE><H4> Options:</H4><DL>
+
</PRE>
 +
<H4> Options:</H4>
 +
<DL>
 
<DT>''''''-A''''''<DD> suppress generation and collection of <A HREF="rcc-6.html#MARKER-9-389">ADI file</A>s for native modules. This might be done to reduce the download size if you are sure the local and remote modules are identical.
 
<DT>''''''-A''''''<DD> suppress generation and collection of <A HREF="rcc-6.html#MARKER-9-389">ADI file</A>s for native modules. This might be done to reduce the download size if you are sure the local and remote modules are identical.
 
<DT>''''''-F''''''<DD> force overwriting of <EM>clct_file</EM>, if present.
 
<DT>''''''-F''''''<DD> force overwriting of <EM>clct_file</EM>, if present.
Line 79: Line 102:
 
<DT>''''''-c <EM>class</EM>''''''<DD> the registered Java class to which deployed workspace applies
 
<DT>''''''-c <EM>class</EM>''''''<DD> the registered Java class to which deployed workspace applies
 
<DT>''''''-w <EM>workspace</EM>''''''<DD>
 
<DT>''''''-w <EM>workspace</EM>''''''<DD>
the workspace contents to be collected if program or class is not known</DL><H4> Examples:</H4><OL><LI>
+
the workspace contents to be collected if program or class is not known</DL>
Collect the data logged in the workspace registered with program converter.exe and the workspace fred.aws, and places those two traces in the single file myserver.clct.  
+
<H4> Examples:</H4>
 +
<OL>
 +
<LI>Collect the data logged in the workspace registered with program converter.exe and the workspace fred.aws, and places those two traces in the single file myserver.clct.  
 
rootcause collect -x converter.exe -w fred.aws
 
rootcause collect -x converter.exe -w fred.aws
 
  -o myserver.clct  
 
  -o myserver.clct  
</OL><A NAME=HEADING12-64></A><A NAME="UID-09command_rc.fm-973736"></A>
+
</OL>
 +
<A NAME=HEADING12-64></A><A NAME="UID-09command_rc.fm-973736"></A>
 
----
 
----
<H2><A NAME=MARKER-10-2038></A><A NAME=MARKER-9-2039></A>rootcause config</H2>
+
<!--  <H2><A NAME=MARKER-10-2038></A><A NAME=MARKER-9-2039></A>rootcause config</H2>  -->
The <A NAME=MARKER-2-2040></A>rootcause config command reports current configuration information. With no arguments it shows the installation directory and license information.<H4> Syntax:</H4><PRE>  
+
== rootcause config ==
 +
 
 +
The <A NAME=MARKER-2-2040></A>rootcause config command reports current configuration information. With no arguments it shows the installation directory and license information.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause config [ '''-dhlLnRuvV''' ]  
 
rootcause config [ '''-dhlLnRuvV''' ]  
</PRE><H4> Options:</H4><DL>
+
</PRE>
 +
<H4> Options:</H4>
 +
<DL>
 
<DT>''''''-d''''''<DD> give installation directory (that is, the value of $<A NAME=MARKER-10-2041></A><A HREF="rcc-10.html#MARKER-9-979">APROBE</A><A NAME=MARKER-10-2042></A>)
 
<DT>''''''-d''''''<DD> give installation directory (that is, the value of $<A NAME=MARKER-10-2041></A><A HREF="rcc-10.html#MARKER-9-979">APROBE</A><A NAME=MARKER-10-2042></A>)
 
<DT>''''''-h''''''<DD> give this command's usage
 
<DT>''''''-h''''''<DD> give this command's usage
Line 97: Line 129:
 
<DT>''''''-u''''''<DD> give user directory ($<A NAME=MARKER-10-2047></A><A HREF="rcc-10.html#MARKER-9-982">APROBE_HOME</A><A NAME=MARKER-10-2048></A> or default).
 
<DT>''''''-u''''''<DD> give user directory ($<A NAME=MARKER-10-2047></A><A HREF="rcc-10.html#MARKER-9-982">APROBE_HOME</A><A NAME=MARKER-10-2048></A> or default).
 
<DT>''''''-v''''''<DD> give product version number.
 
<DT>''''''-v''''''<DD> give product version number.
<DT>''''''-V''''''<DD> give product version description (default).</DL><H4> Examples:</H4><OL><LI>
+
<DT>''''''-V''''''<DD> give product version description (default).</DL>
 +
<H4> Examples:</H4>
 +
<OL><LI>
 
Show the current installation information:  
 
Show the current installation information:  
 
$<A NAME=MARKER-10-2049></A> rootcause config
 
$<A NAME=MARKER-10-2049></A> rootcause config
Line 104: Line 138:
 
<A NAME=MARKER-10-2050></A>This product is licensed to 1111 OC Systems, Inc.
 
<A NAME=MARKER-10-2050></A>This product is licensed to 1111 OC Systems, Inc.
 
This license will expire on 31-dec-2006.
 
This license will expire on 31-dec-2006.
</OL><A NAME=HEADING12-81></A><A NAME="UID-09command_rc.fm-973510"></A>
+
</OL>
 +
<A NAME=HEADING12-81></A>
 +
<A NAME="UID-09command_rc.fm-973510"></A>
 
----
 
----
<H2><A NAME=MARKER-9-2051></A>rootcause decollect</H2>
+
<!--  <H2><A NAME=MARKER-9-2051></A>rootcause decollect</H2>  -->
The <A NAME=MARKER-2-2052></A>rootcause decollect command unpackas a '''.clct''' file built by the <A HREF="#MARKER-9-2027">rootcause collect</A> command. This function is also performed by the <A HREF="rcc-11.html#MARKER-9-1430">Decollect</A> operation in the RootCause GUI (see <A HREF="rcc-11.html#MARKER-9-1528">"Decollect Data Dialog"</A>).
+
== rootcause decollect ==
The result of this operation is a directory tree whose root directory has suffix '''.dclct'''.<H4> Syntax:</H4><PRE>  
+
 
rootcause decollect ['''-F'''] ['''-o'''<EM>directory</EM>] <EM>clct_file</EM></PRE><H4> Options:</H4><DL>
+
The <A NAME=MARKER-2-2052></A>rootcause decollect command unpackas a '''.clct''' file built by the <A HREF="#MARKER-9-2027">rootcause collect</A> command. This function is also performed by the <A HREF="rcc-11.html#MARKER-9-1430">Decollect</A> operation in the RootCause GUI (see <A HREF="rcc-11.html#MARKER-9-1528">"Decollect Data Dialog"</A>).
 +
 
 +
The result of this operation is a directory tree whose root directory has suffix '''.dclct'''.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 +
rootcause decollect ['''-F'''] ['''-o'''<EM>directory</EM>] <EM>clct_file</EM></PRE>
 +
<H4> Options:</H4>
 +
<DL>
 
<DT>''''''-F''''''<DD> force delete of <EM>directory</EM>, if present
 
<DT>''''''-F''''''<DD> force delete of <EM>directory</EM>, if present
 
<DT>''''''-o<EM> directory</EM>''''''<DD> extract into <EM>directory</EM> (default: <EM>clct_file_name</EM>.dclct)
 
<DT>''''''-o<EM> directory</EM>''''''<DD> extract into <EM>directory</EM> (default: <EM>clct_file_name</EM>.dclct)
<DT>'''<EM>clct_file</EM>'''<DD>  collect file that was built by <A HREF="#MARKER-9-2027">rootcause collect</A></DL><H4> Examples:</H4><OL><LI>
+
<DT>'''<EM>clct_file</EM>'''<DD>  collect file that was built by <A HREF="#MARKER-9-2027">rootcause collect</A></DL>
 +
<H4> Examples:</H4>
 +
<OL><LI>
 
Decollect the data in <CODE>myserver.clct</CODE> into <CODE>myserver.dclct</CODE>  
 
Decollect the data in <CODE>myserver.clct</CODE> into <CODE>myserver.dclct</CODE>  
 
rootcause decollect myserver.clct  
 
rootcause decollect myserver.clct  
 
</OL><A NAME=HEADING12-93></A><A NAME="UID-09command_rc.fm-974261"></A>
 
</OL><A NAME=HEADING12-93></A><A NAME="UID-09command_rc.fm-974261"></A>
 
----
 
----
<H2><A NAME=MARKER-9-2053></A>rootcause deploy</H2>
+
<!--  <H2><A NAME=MARKER-9-2053></A>rootcause deploy</H2>  -->
The <A NAME=MARKER-2-2054></A>rootcause deploy command packages a <A HREF="rcc-6.html#MARKER-9-482">workspace</A> for use in a <A HREF="rcc-6.html#MARKER-9-456">remote</A> (<A HREF="rcc-6.html#MARKER-9-399">agent</A>) environment. This function is also performed by the <A HREF="rcc-11.html#MARKER-9-1429">Deploy</A> operation in the RootCause GUI (see <A HREF="rcc-11.html#MARKER-9-1520">"Deploy Dialog"</A>). The result of this operation is a zip file with suffix '''.dply'''.  '''Note''' that this command does not verify the workspace is already built. If you're not sure, do <A HREF="#MARKER-9-2022">rootcause build</A> first.<H4> Syntax:</H4><PRE>  
+
== rootcause deploy ==
 +
 
 +
The <A NAME=MARKER-2-2054></A>rootcause deploy command packages a <A HREF="rcc-6.html#MARKER-9-482">workspace</A> for use in a <A HREF="rcc-6.html#MARKER-9-456">remote</A> (<A HREF="rcc-6.html#MARKER-9-399">agent</A>) environment. This function is also performed by the <A HREF="rcc-11.html#MARKER-9-1429">Deploy</A> operation in the RootCause GUI (see <A HREF="rcc-11.html#MARKER-9-1520">"Deploy Dialog"</A>). The result of this operation is a zip file with suffix '''.dply'''.  '''Note''' that this command does not verify the workspace is already built. If you're not sure, do <A HREF="#MARKER-9-2022">rootcause build</A> first.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause deploy   
 
rootcause deploy   
 
['''-Fh'''][ ['''-x'''] <EM>program_file</EM> | ['''-c'''<EM>class</EM>] ['''-w''']<EM>workspace</EM>.aws ]  
 
['''-Fh'''][ ['''-x'''] <EM>program_file</EM> | ['''-c'''<EM>class</EM>] ['''-w''']<EM>workspace</EM>.aws ]  
 
['''-l'''<EM>license_file</EM>] ['''-m'''<EM>module</EM>]['''-o'''<EM>dply_file</EM>]  
 
['''-l'''<EM>license_file</EM>] ['''-m'''<EM>module</EM>]['''-o'''<EM>dply_file</EM>]  
</PRE><H4> Options:</H4><DL>
+
</PRE>
 +
<H4> Options:</H4>
 +
<DL>
 
<DT>''''''-c <EM>class</EM>''''''<DD> the Java class registered with the workspace you wish to deploy.
 
<DT>''''''-c <EM>class</EM>''''''<DD> the Java class registered with the workspace you wish to deploy.
 
<DT>''''''-F''''''<DD> force overwriting of <EM>dply_file</EM>, if present.
 
<DT>''''''-F''''''<DD> force overwriting of <EM>dply_file</EM>, if present.
Line 133: Line 184:
 
the program registered with the workspace you wish to deploy.
 
the program registered with the workspace you wish to deploy.
 
<DT>''''''-w <EM>workspace</EM>'''.aws'''<DD>
 
<DT>''''''-w <EM>workspace</EM>'''.aws'''<DD>
an existing, <EM>built</EM> RootCause workspace.</DL><H4> Examples:</H4><OL><LI>
+
an existing, <EM>built</EM> RootCause workspace.</DL>
 +
<H4> Examples:</H4>
 +
<OL><LI>
 
Deploy workspace pi_demo.aws<A NAME=MARKER-10-2057></A>.  
 
Deploy workspace pi_demo.aws<A NAME=MARKER-10-2057></A>.  
 
rootcause deploy pi_demo.aws<A NAME=MARKER-10-2058></A>.  
 
rootcause deploy pi_demo.aws<A NAME=MARKER-10-2058></A>.  
Line 141: Line 194:
 
</OL><A NAME=HEADING12-111></A><A NAME="UID-09command_rc.fm-973769"></A>
 
</OL><A NAME=HEADING12-111></A><A NAME="UID-09command_rc.fm-973769"></A>
 
----
 
----
<H2><A NAME=MARKER-9-2063></A>rootcause format</H2>
+
<!--  <H2><A NAME=MARKER-9-2063></A>rootcause format</H2>  -->
The rootcause format command runs <A HREF="rcc-6.html#MARKER-9-400">apformat</A> on the data collected in the specified workspace. This produces output similar to that produced by <A HREF="rcc-11.html#MARKER-9-1743">Save As Text</A> in the RootCause GUI. By default <CODE>rootcause format</CODE> operates on the most current process. Because it formats all the data it can take a while for large amounts of data. You can use the -O option in conjunction with the apformat "-n" option to limit it to specific APD files, as shown in Example 3 below.<H4> Syntax:</H4><PRE>  
+
== rootcause format ==
 +
 
 +
The rootcause format command runs <A HREF="rcc-6.html#MARKER-9-400">apformat</A> on the data collected in the specified workspace. This produces output similar to that produced by <A HREF="rcc-11.html#MARKER-9-1743">Save As Text</A> in the RootCause GUI. By default <CODE>rootcause format</CODE> operates on the most current process. Because it formats all the data it can take a while for large amounts of data. You can use the -O option in conjunction with the apformat "-n" option to limit it to specific APD files, as shown in Example 3 below.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause format   
 
rootcause format   
 
['''-hlr''']['''-p'''<EM>PID</EM>]['''-O''' "<EM>options</EM>"]['''-t'''<EM>tmpdir</EM>]  
 
['''-hlr''']['''-p'''<EM>PID</EM>]['''-O''' "<EM>options</EM>"]['''-t'''<EM>tmpdir</EM>]  
 
['''-w'''] <EM>workspace</EM>.aws  
 
['''-w'''] <EM>workspace</EM>.aws  
</PRE><H4> Options:</H4><DL>
+
</PRE>
 +
<H4> Options:</H4>
 +
<DL>
 
<DT>''''''-h''''''<DD> give this command's usage
 
<DT>''''''-h''''''<DD> give this command's usage
 
<DT>''''''-l''''''<DD> list the <A HREF="rcc-6.html#MARKER-9-393">APD ring</A>s (<A HREF="rcc-6.html#MARKER-9-444">Process Data Set</A>s) in the workspace, but don't format anything. The newest data set is listed first.
 
<DT>''''''-l''''''<DD> list the <A HREF="rcc-6.html#MARKER-9-393">APD ring</A>s (<A HREF="rcc-6.html#MARKER-9-444">Process Data Set</A>s) in the workspace, but don't format anything. The newest data set is listed first.
Line 155: Line 214:
 
<DT>''''''-t <EM>tmpdir</EM>''''''<DD>  specifies the directory where intermediate files are to be produced. These can get very large--up to 10 times the size of the APD files depending on the formatting--and this can be used to avoid disk-space restrictions where the workspace resides.
 
<DT>''''''-t <EM>tmpdir</EM>''''''<DD>  specifies the directory where intermediate files are to be produced. These can get very large--up to 10 times the size of the APD files depending on the formatting--and this can be used to avoid disk-space restrictions where the workspace resides.
 
<DT>''''''-w<EM> workspace</EM>'''.aws'''<DD>
 
<DT>''''''-w<EM> workspace</EM>'''.aws'''<DD>
the RootCause workspace containing the data to be formatted.</DL><H4><A NAME=MARKER-9-2064></A>Examples:</H4><OL><LI>
+
the RootCause workspace containing the data to be formatted.</DL>
 +
<H4><A NAME=MARKER-9-2064></A>Examples:</H4>
 +
<OL><LI>
 
Format the newest data set in pi_demo.aws<A NAME=MARKER-10-2065></A> the file <CODE>pi_demo<A NAME=MARKER-10-2066></A>.txt</CODE>.  
 
Format the newest data set in pi_demo.aws<A NAME=MARKER-10-2065></A> the file <CODE>pi_demo<A NAME=MARKER-10-2066></A>.txt</CODE>.  
 
rootcause format<CODE> pi_demo.aws<A NAME=MARKER-10-2067></A> > pi_demo<A NAME=MARKER-10-2068></A>.txt
 
rootcause format<CODE> pi_demo.aws<A NAME=MARKER-10-2067></A> > pi_demo<A NAME=MARKER-10-2068></A>.txt
Line 166: Line 227:
 
Run <A HREF="rcc-6.html#MARKER-9-400">apformat</A> directly on the newest data file for process 11785 in pi_demo.aws<A NAME=MARKER-10-2073></A>.  
 
Run <A HREF="rcc-6.html#MARKER-9-400">apformat</A> directly on the newest data file for process 11785 in pi_demo.aws<A NAME=MARKER-10-2073></A>.  
 
rootcause format -r -O "-n 0" -p<CODE> 11785 pi_demo.aws<A NAME=MARKER-10-2074></A>
 
rootcause format -r -O "-n 0" -p<CODE> 11785 pi_demo.aws<A NAME=MARKER-10-2074></A>
</CODE></OL><A NAME=HEADING12-132></A><A NAME="UID-09command_rc.fm-973882"></A>
+
</CODE>
 +
</OL>
 +
<A NAME=HEADING12-132></A>
 +
<A NAME="UID-09command_rc.fm-973882"></A>
 
----
 
----
<H2><A NAME=MARKER-9-2075></A>rootcause log</H2>
+
<!--  <H2><A NAME=MARKER-9-2075></A>rootcause log</H2>  -->
The <CODE><A NAME=MARKER-2-2076></A>rootcause log</CODE> command provides information about the RootCause Log, and allows its maximum <A NAME=MARKER-2-2077></A>size to be changed.<H4> Syntax:</H4><PRE>  
+
== rootcause log ==
 +
 
 +
The <CODE><A NAME=MARKER-2-2076></A>rootcause log</CODE> command provides information about the RootCause Log, and allows its maximum <A NAME=MARKER-2-2077></A>size to be changed.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause log ['''-hlnsFZ''' | '''-s'''<EM>size</EM> ]  
 
rootcause log ['''-hlnsFZ''' | '''-s'''<EM>size</EM> ]  
</PRE><H4> Options:</H4><DL>
+
</PRE>
 +
<H4> Options:</H4>
 +
<DL>
 
<DT>''''''-F''''''<DD> force -s size or -Z operation without confirmation
 
<DT>''''''-F''''''<DD> force -s size or -Z operation without confirmation
 
<DT>''''''-h''''''<DD> give command-line help
 
<DT>''''''-h''''''<DD> give command-line help
Line 178: Line 248:
 
<DT>''''''-s''''''<DD> list the log file size to standard output
 
<DT>''''''-s''''''<DD> list the log file size to standard output
 
<DT>''''''-s <EM>size</EM>''''''<DD> set the maximum size of the log to <EM>size</EM> bytes (size > 1000)
 
<DT>''''''-s <EM>size</EM>''''''<DD> set the maximum size of the log to <EM>size</EM> bytes (size > 1000)
<DT>''''''-Z''''''<DD> clear the contents of the log file</DL><H4><A NAME=MARKER-9-2078></A>Examples:</H4><OL><LI>
+
<DT>''''''-Z''''''<DD> clear the contents of the log file</DL>
 +
<H4><A NAME=MARKER-9-2078></A>Examples:</H4>
 +
<OL><LI>
 
Write the contents of the log to standard output:  
 
Write the contents of the log to standard output:  
 
rootcause log  
 
rootcause log  
Line 187: Line 259:
 
<A NAME=HEADING12-150></A><A NAME="UID-09command_rc.fm-973824"></A>
 
<A NAME=HEADING12-150></A><A NAME="UID-09command_rc.fm-973824"></A>
 
----
 
----
<H2><A NAME=MARKER-9-2079></A>rootcause merge</H2>
+
<!--  <H2><A NAME=MARKER-9-2079></A>rootcause merge</H2>  -->
The <CODE><A NAME=MARKER-2-2080></A>rootcause merge</CODE> command merges two <A HREF="rcc-6.html#MARKER-9-482">workspace</A>s to create a new, third workspace. It works by copying the first <EM>primary</EM> workspace to the third <EM>result</EM> workspace, then adding compatible traces and UALs from the second <EM>secondary</EM> workspace. A <A HREF="rcc-6.html#MARKER-9-440">module</A> must exist in both the <EM>primary</EM> and <EM>secondary</EM> workspaces in order that traces for that module appear in the <EM>result</EM> workspace.  
+
== rootcause merge ==
There is no GUI operation equivalent to rootcause merge.  You can use it in conjunction with the GUI by:<UL><LI>
+
 
 +
The <CODE><A NAME=MARKER-2-2080></A>rootcause merge</CODE> command merges two <A HREF="rcc-6.html#MARKER-9-482">workspace</A>s to create a new, third workspace. It works by copying the first <EM>primary</EM> workspace to the third <EM>result</EM> workspace, then adding compatible traces and UALs from the second <EM>secondary</EM> workspace. A <A HREF="rcc-6.html#MARKER-9-440">module</A> must exist in both the <EM>primary</EM> and <EM>secondary</EM> workspaces in order that traces for that module appear in the <EM>result</EM> workspace.  
 +
 
 +
There is no GUI operation equivalent to rootcause merge.  You can use it in conjunction with the GUI by:<UL><LI>
 
Using <EM>Workspace->Close</EM> to close your current workspace<LI>
 
Using <EM>Workspace->Close</EM> to close your current workspace<LI>
 
Applying <CODE>rootcause merge</CODE> from the command line<LI>
 
Applying <CODE>rootcause merge</CODE> from the command line<LI>
 
Using <EM>Workspace->Open</EM> on the result workspace.</UL>
 
Using <EM>Workspace->Open</EM> on the result workspace.</UL>
'''Note: '''The <A HREF="#MARKER-9-2022">rootcause build</A> and <A HREF="#MARKER-9-2107">rootcause register</A> operations must be applied to the <EM>result</EM> workspace before the result workspace can be used to trace an application. <H4> Syntax:</H4><PRE>  
+
'''Note: '''The <A HREF="#MARKER-9-2022">rootcause build</A> and <A HREF="#MARKER-9-2107">rootcause register</A> operations must be applied to the <EM>result</EM> workspace before the result workspace can be used to trace an application.  
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause merge ['''-Fh'''] <EM>primary</EM>.aws <EM>secondary</EM>.aws <EM>result</EM>.aws  
 
rootcause merge ['''-Fh'''] <EM>primary</EM>.aws <EM>secondary</EM>.aws <EM>result</EM>.aws  
</PRE><H4> Options:</H4><DL>
+
</PRE>
 +
<H4> Options:</H4>
 +
<DL>
 
<DT>''''''-F''''''<DD> force <EM>result.aws</EM> to be overwritten if it exists
 
<DT>''''''-F''''''<DD> force <EM>result.aws</EM> to be overwritten if it exists
 
<DT>''''''-h''''''<DD> give command-line help
 
<DT>''''''-h''''''<DD> give command-line help
Line 202: Line 281:
 
<DT>'''<EM>secondary</EM>.aws'''<DD>
 
<DT>'''<EM>secondary</EM>.aws'''<DD>
 
The secondary workspace, from which additional traces and UALS are added to the result workspace.
 
The secondary workspace, from which additional traces and UALS are added to the result workspace.
<DT>'''<EM>result</EM>.aws'''<DD> The new workspace that is created.</DL><H4> Examples:</H4><OL><LI>
+
<DT>'''<EM>result</EM>.aws'''<DD> The new workspace that is created.</DL>
 +
<H4> Examples:</H4>
 +
<OL><LI>
 
Merge traces in file_ops.aws into pi_demo.aws to produce pi_demo2.aws and make pi_demo2.aws the new workspace for tracing pi_demo<A NAME=MARKER-10-2081></A>  
 
Merge traces in file_ops.aws into pi_demo.aws to produce pi_demo2.aws and make pi_demo2.aws the new workspace for tracing pi_demo<A NAME=MARKER-10-2081></A>  
 
rootcause merge file_ops.aws pi_demo.aws pi_demo2.aws
 
rootcause merge file_ops.aws pi_demo.aws pi_demo2.aws
Line 209: Line 290:
 
</OL><A NAME=HEADING12-168></A><A NAME="UID-09command_rc.fm-973825"></A>
 
</OL><A NAME=HEADING12-168></A><A NAME="UID-09command_rc.fm-973825"></A>
 
----
 
----
<H2><A NAME=MARKER-10-2083></A><A NAME=MARKER-9-2084></A>rootcause new</H2>
+
<!--  <H2><A NAME=MARKER-10-2083></A><A NAME=MARKER-9-2084></A>rootcause new</H2>  -->
The <A NAME=MARKER-2-2085></A>rootcause new command creates a new <A HREF="rcc-6.html#MARKER-9-482">workspace</A>. Generally this is done through the RootCause GUI using the <A HREF="rcc-11.html#MARKER-9-1362">New</A> menu item or <A HREF="rcc-11.html#MARKER-9-1730">Open Associated Workspace</A>; (see <A HREF="rcc-11.html#MARKER-9-1434">"New Workspace Dialog"</A>). The result of this operation is the named workspace, initialized to do default tracing. If the '''-r''' option is used, the workspace is also registered with the specified program or Java class.<H4> Syntax:</H4><PRE>  
+
== rootcause new ==
 +
 
 +
The <A NAME=MARKER-2-2085></A>rootcause new command creates a new <A HREF="rcc-6.html#MARKER-9-482">workspace</A>. Generally this is done through the RootCause GUI using the <A HREF="rcc-11.html#MARKER-9-1362">New</A> menu item or <A HREF="rcc-11.html#MARKER-9-1730">Open Associated Workspace</A>; (see <A HREF="rcc-11.html#MARKER-9-1434">"New Workspace Dialog"</A>). The result of this operation is the named workspace, initialized to do default tracing. If the '''-r''' option is used, the workspace is also registered with the specified program or Java class.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause new  
 
rootcause new  
 
['''-Fhr''']['''-c'''<EM>class</EM>] '''-x'''<EM>program_file</EM>  ['''-w''']<EM>workspace</EM>.aws ]  
 
['''-Fhr''']['''-c'''<EM>class</EM>] '''-x'''<EM>program_file</EM>  ['''-w''']<EM>workspace</EM>.aws ]  
</PRE><H4> Options:</H4><DL>
+
</PRE>
 +
<H4> Options:</H4>
 +
<DL>
 
<DT>''''''-c <EM>class</EM>''''''<DD> the Java class registered with the workspace you wish to deploy.
 
<DT>''''''-c <EM>class</EM>''''''<DD> the Java class registered with the workspace you wish to deploy.
 
<DT>''''''-F''''''<DD> force overwriting of <EM>workspace.aws</EM> if it exists.
 
<DT>''''''-F''''''<DD> force overwriting of <EM>workspace.aws</EM> if it exists.
Line 221: Line 308:
 
the executable program or Java<CODE> .class</CODE> or <CODE>.jar</CODE> file the workspace will be used to trace (as on the <A HREF="#MARKER-9-2101">rootcause open</A> command).
 
the executable program or Java<CODE> .class</CODE> or <CODE>.jar</CODE> file the workspace will be used to trace (as on the <A HREF="#MARKER-9-2101">rootcause open</A> command).
 
<DT>''''''-w<EM> workspace</EM>'''.aws'''<DD>
 
<DT>''''''-w<EM> workspace</EM>'''.aws'''<DD>
the new workspace to be created.</DL><H4> Examples:</H4><OL><LI>
+
the new workspace to be created.</DL>
 +
<H4> Examples:</H4>
 +
<OL><LI>
 
Create and register a new workspace for pi_demo.exe<A NAME=MARKER-10-2086></A>.  
 
Create and register a new workspace for pi_demo.exe<A NAME=MARKER-10-2086></A>.  
 
rootcause new -r -x pi_demo.exe<A NAME=MARKER-10-2087></A> -w pi_demo.aws<A NAME=MARKER-10-2088></A>.  
 
rootcause new -r -x pi_demo.exe<A NAME=MARKER-10-2087></A> -w pi_demo.aws<A NAME=MARKER-10-2088></A>.  
 
</OL><A NAME=HEADING12-182></A><A NAME="UID-09command_rc.fm-973929"></A>
 
</OL><A NAME=HEADING12-182></A><A NAME="UID-09command_rc.fm-973929"></A>
 
----
 
----
 +
<!--  <H2><A NAME=MARKER-9-2089></A>rootcause_<A NAME=MARKER-10-2090></A>off</H2>  -->
 
== rootcause_off ==
 
== rootcause_off ==
<H2><A NAME=MARKER-9-2089></A>rootcause_<A NAME=MARKER-10-2090></A>off</H2>
+
 
Use the <CODE><A NAME=MARKER-2-2091></A>rootcause_<A NAME=MARKER-10-2092></A>off</CODE> command to disable rootcause interception of processes on your machine.<H4> Syntax:</H4><PRE>  
+
Use the <CODE><A NAME=MARKER-2-2091></A>rootcause_<A NAME=MARKER-10-2092></A>off</CODE> command to disable rootcause interception of processes on your machine.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause<CODE>_<A NAME=MARKER-10-2093></A></CODE>off  
 
rootcause<CODE>_<A NAME=MARKER-10-2093></A></CODE>off  
</PRE><H4></H4><H4></H4><A NAME=HEADING12-188></A><A NAME="UID-09command_rc.fm-976801"></A>
+
</PRE>
 +
<H4></H4>
 +
<H4></H4>
 +
<A NAME=HEADING12-188></A><A NAME="UID-09command_rc.fm-976801"></A>
 
----
 
----
 +
<!--  <H2><A NAME=MARKER-9-2094></A>rootcause_<A NAME=MARKER-10-2095></A>on</H2>  -->
 
== rootcause_on ==
 
== rootcause_on ==
<H2><A NAME=MARKER-9-2094></A>rootcause_<A NAME=MARKER-10-2095></A>on</H2>
+
 
Use the <CODE><A NAME=MARKER-2-2096></A>rootcause_<A NAME=MARKER-10-2097></A>on</CODE> command to start the inspection and interception of processes on your machine to determine if they should be traced with rootcause.<H4> Syntax:</H4><PRE><CODE>rootcause_<A NAME=MARKER-10-2098></A>on<A NAME=MARKER-10-2099></A></CODE></PRE><A NAME=HEADING12-192></A><A NAME="UID-09command_rc.fm-949424"></A>
+
Use the <CODE><A NAME=MARKER-2-2096></A>rootcause_<A NAME=MARKER-10-2097></A>on</CODE> command to start the inspection and interception of processes on your machine to determine if they should be traced with rootcause.
 +
<H4> Syntax:</H4>
 +
<PRE>
 +
<CODE>rootcause_<A NAME=MARKER-10-2098></A>on<A NAME=MARKER-10-2099></A></CODE></PRE><A NAME=HEADING12-192></A><A NAME="UID-09command_rc.fm-949424"></A>
 
----
 
----
<H2><A NAME=MARKER-10-2100></A><A NAME=MARKER-9-2101></A>rootcause open</H2>
+
<!--  <H2><A NAME=MARKER-10-2100></A><A NAME=MARKER-9-2101></A>rootcause open</H2>  -->
The <CODE><A NAME=MARKER-2-2102></A>rootcause <A NAME=MARKER-2-2103></A>open</CODE> command starts the <A NAME=MARKER-2-2104></A>RootCause GUI. If the application class specified on the command line is registered, the GUI will automatically set the workspace from the registry entry for the application. If the application is not registered, the GUI will prompt for a new workspace name and register the application. If no arguments are specified, the current RootCause Log file is opened.<H4> Syntax:</H4><PRE>  
+
== rootcause open ==
 +
 
 +
The <CODE><A NAME=MARKER-2-2102></A>rootcause <A NAME=MARKER-2-2103></A>open</CODE> command starts the <A NAME=MARKER-2-2104></A>RootCause GUI. If the application class specified on the command line is registered, the GUI will automatically set the workspace from the registry entry for the application. If the application is not registered, the GUI will prompt for a new workspace name and register the application. If no arguments are specified, the current RootCause Log file is opened.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause open   
 
rootcause open   
 
[['''-x'''] <EM>program_file</EM>]  
 
[['''-x'''] <EM>program_file</EM>]  
 
['''-c'''<EM>classname</EM>] [['''-w'''] <EM>workspace</EM>.aws]  
 
['''-c'''<EM>classname</EM>] [['''-w'''] <EM>workspace</EM>.aws]  
 
[ ['''-d'''] <EM>dir</EM>.dclct | ['''-z'''] <EM>file</EM>.clct ]  
 
[ ['''-d'''] <EM>dir</EM>.dclct | ['''-z'''] <EM>file</EM>.clct ]  
</PRE><H4> Options:</H4><DL>
+
</PRE>
 +
<H4> Options:</H4>
 +
<DL>
 
<DT>'''<EM>program_file</EM>'''<DD>
 
<DT>'''<EM>program_file</EM>'''<DD>
 
the executable program file, or the the <CODE>.class</CODE> or <CODE>.jar</CODE> file containing your Java application's main entry
 
the executable program file, or the the <CODE>.class</CODE> or <CODE>.jar</CODE> file containing your Java application's main entry
Line 249: Line 354:
 
a new or existing RootCause workspace
 
a new or existing RootCause workspace
 
<DT>'''<EM>dir</EM>.dclct'''<DD> a directory created by the RootCause <EM><A HREF="rcc-11.html#MARKER-9-1430">Decollect</A></EM> operation
 
<DT>'''<EM>dir</EM>.dclct'''<DD> a directory created by the RootCause <EM><A HREF="rcc-11.html#MARKER-9-1430">Decollect</A></EM> operation
<DT>'''<EM>file</EM>.clct'''<DD> a file created by the <CODE>rootcause collect</CODE> command</DL><H4> Examples:</H4><OL><LI>
+
<DT>'''<EM>file</EM>.clct'''<DD> a file created by the <CODE>rootcause collect</CODE> command</DL>
 +
<H4> Examples:</H4>
 +
<OL><LI>
 
Start the RootCause GUI and examine the RootCause Log file in a Trace Display window.  
 
Start the RootCause GUI and examine the RootCause Log file in a Trace Display window.  
 
rootcause open  
 
rootcause open  
Line 263: Line 370:
 
</OL><A NAME=HEADING12-211></A><A NAME="UID-09command_rc.fm-949448"></A>
 
</OL><A NAME=HEADING12-211></A><A NAME="UID-09command_rc.fm-949448"></A>
 
----
 
----
<H2><A NAME=MARKER-9-2107></A>rootcause register</H2>
+
<!--  <H2><A NAME=MARKER-9-2107></A>rootcause register</H2>  -->
The <CODE><A NAME=MARKER-2-2108></A>rootcause <A NAME=MARKER-2-2109></A>register</CODE> command provides the interface to the RootCause <A NAME=MARKER-2-2110></A>registry. The GUI will allow you to add or delete the current workspace from the registry, but you must use the register command to otherwise manipulate the registry. It is likely that, over time, more GUI support will be added to manipulate the registry, but on computers where only the <A NAME=MARKER-2-2111></A>RootCause Agent is installed, there is no GUI and the <CODE>register</CODE> command must be used.<H4> Syntax:</H4><PRE>  
+
== rootcause register ==
 +
 
 +
The <CODE><A NAME=MARKER-2-2108></A>rootcause <A NAME=MARKER-2-2109></A>register</CODE> command provides the interface to the RootCause <A NAME=MARKER-2-2110></A>registry. The GUI will allow you to add or delete the current workspace from the registry, but you must use the register command to otherwise manipulate the registry. It is likely that, over time, more GUI support will be added to manipulate the registry, but on computers where only the <A NAME=MARKER-2-2111></A>RootCause Agent is installed, there is no GUI and the <CODE>register</CODE> command must be used.
 +
<H4> Syntax:</H4>
 +
<PRE>  
 
rootcause register [<EM>subcommand</EM> ] <EM>options</EM>  [<EM>deploy_file</EM>]  
 
rootcause register [<EM>subcommand</EM> ] <EM>options</EM>  [<EM>deploy_file</EM>]  
</PRE><H4> Description:</H4><H4><EM>subcommand</EM></H4>
+
</PRE>
The <EM>subcommand</EM> flag designates the operation to be performed:<DL>
+
<H4> Description:</H4>
 +
<H4><EM>subcommand</EM></H4>
 +
The <EM>subcommand</EM> flag designates the operation to be performed:
 +
<DL>
 
<DT>''''''-a''''''<DD> add a new entry in the registry (default)
 
<DT>''''''-a''''''<DD> add a new entry in the registry (default)
 
<DT>''''''-d''''''<DD> delete an entry from the registry
 
<DT>''''''-d''''''<DD> delete an entry from the registry
Line 279: Line 393:
 
<DT>''''''-s'''<CODE>verbose</CODE>'''<DD> enable/disable verbose mode with -e <CODE>on</CODE>/<CODE>off</CODE> (on by default)
 
<DT>''''''-s'''<CODE>verbose</CODE>'''<DD> enable/disable verbose mode with -e <CODE>on</CODE>/<CODE>off</CODE> (on by default)
 
With verbose mode on, all processes are recorded in the log; with verbose off, only traced applications are recorded.
 
With verbose mode on, all processes are recorded in the log; with verbose off, only traced applications are recorded.
<DT>''''''-Z''''''<DD> clear entire registry contents, including '''-s''' settings, returning them to their default values.</DL><H4><EM>options</EM></H4><DL>
+
<DT>''''''-Z''''''<DD> clear entire registry contents, including '''-s''' settings, returning them to their default values.</DL>
 +
<H4><EM>options</EM></H4>
 +
<DL>
 
<DT>''' Options further qualifying the above are:'''<DD>
 
<DT>''' Options further qualifying the above are:'''<DD>
 
<DT>''''''-c'''<EM>classname</EM>'''<DD> probe Java commands naming main class <EM>classname</EM>
 
<DT>''''''-c'''<EM>classname</EM>'''<DD> probe Java commands naming main class <EM>classname</EM>
Line 289: Line 405:
 
<DT>''''''-w'''<EM>dir</EM>.aws'''<DD> file is workspace to use
 
<DT>''''''-w'''<EM>dir</EM>.aws'''<DD> file is workspace to use
 
<DT>''''''-x'''<EM>file</EM>'''<DD> file is executable to probe
 
<DT>''''''-x'''<EM>file</EM>'''<DD> file is executable to probe
<DT>'''<EM>deploy_file</EM>'''<DD> is a <CODE>.dply</CODE> file to unpack into a registered workspace</DL><H4> Examples:</H4><OL><LI>
+
<DT>'''<EM>deploy_file</EM>'''<DD> is a <CODE>.dply</CODE> file to unpack into a registered workspace</DL>
 +
<H4> Examples:</H4>
 +
<OL><LI>
 
List the registry name and contents:  
 
List the registry name and contents:  
 
rootcause register -l  
 
rootcause register -l  
Line 306: Line 424:
 
This would be the typical command used on a remote computer where only the <A NAME=MARKER-2-2114></A>RootCause Agent component was installed in order to implement a <A NAME=MARKER-2-2115></A>.dply file generated by the RootCause GUI component. After this command is issued, you would merely execute rootcause_on in the context of the shell<A NAME=MARKER-10-2116></A> and run the application.  
 
This would be the typical command used on a remote computer where only the <A NAME=MARKER-2-2114></A>RootCause Agent component was installed in order to implement a <A NAME=MARKER-2-2115></A>.dply file generated by the RootCause GUI component. After this command is issued, you would merely execute rootcause_on in the context of the shell<A NAME=MARKER-10-2116></A> and run the application.  
 
rootcause register -x  
 
rootcause register -x  
/opt/frobco/bin/frobit
+
/opt/frobco/bin/frobit
 
<A NAME=MARKER-10-2117></A> frobit.dply  
 
<A NAME=MARKER-10-2117></A> frobit.dply  
 
<A NAME=MARKER-10-2118></A></UL></OL><A NAME=HEADING12-255></A><A NAME="UID-09command_rc.fm-974040"></A>
 
<A NAME=MARKER-10-2118></A></UL></OL><A NAME=HEADING12-255></A><A NAME="UID-09command_rc.fm-974040"></A>
 
----
 
----
<H2><A NAME=MARKER-9-2119></A>rootcause run</H2>
+
<!--  <H2><A NAME=MARKER-9-2119></A>rootcause run</H2>  -->
Use <CODE><A NAME=MARKER-2-2120></A>rootcause run</CODE> before your command to cause it to be <A HREF="rcc-6.html#MARKER-9-458">run with rootcause on</A>, independent of the current <A HREF="#MARKER-9-2129">rootcause status</A>.  The command specified will be run in the current window exactly as if it were not preceded by rootcause run. This is equivalent to  
+
== rootcause run ==
 +
 
 +
Use <CODE><A NAME=MARKER-2-2120></A>rootcause run</CODE> before your command to cause it to be <A HREF="rcc-6.html#MARKER-9-458">run with rootcause on</A>, independent of the current <A HREF="#MARKER-9-2129">rootcause status</A>.  The command specified will be run in the current window exactly as if it were not preceded by rootcause run. This is equivalent to  
 
rootcause<CODE>_<A NAME=MARKER-10-2121></A></CODE>on
 
rootcause<CODE>_<A NAME=MARKER-10-2121></A></CODE>on
 
<EM>command
 
<EM>command
 
</EM>rootcause<CODE>_<A NAME=MARKER-10-2122></A></CODE>off
 
</EM>rootcause<CODE>_<A NAME=MARKER-10-2122></A></CODE>off
<H4> Syntax:</H4><PRE><CODE>rootcause run</CODE><EM>command</EM></PRE><H4> Options:</H4><DL>
+
<H4> Syntax:</H4>
<DT>'''<EM>command</EM>'''<DD> any shell command</DL><H4> Example:</H4><OL><LI>
+
<PRE>
 +
<CODE>rootcause run</CODE><EM>command</EM></PRE>
 +
<H4> Options:</H4>
 +
<DL>
 +
<DT>'''<EM>command</EM>'''<DD> any shell command
 +
</DL>
 +
<H4> Example:</H4>
 +
<OL><LI>
 
Run the pi_demo<A NAME=MARKER-10-2123></A> application with rootcause on:  
 
Run the pi_demo<A NAME=MARKER-10-2123></A> application with rootcause on:  
 
rootcause run $APROBE/demo/RootCause/C++/pi_demo  
 
rootcause run $APROBE/demo/RootCause/C++/pi_demo  
</OL><H4><A NAME=MARKER-10-2124></A><A NAME=MARKER-10-2125></A></H4><A NAME=HEADING12-266></A><A NAME="UID-09command_rc.fm-976908"></A>
+
</OL>
 +
<H4><A NAME=MARKER-10-2124></A><A NAME=MARKER-10-2125></A></H4>
 +
<A NAME=HEADING12-266></A>
 +
<A NAME="UID-09command_rc.fm-976908"></A>
 
----
 
----
<H2><A NAME=MARKER-10-2126></A><A NAME=MARKER-9-2127></A>rootcause xrun</H2>
+
<A NAME=MARKER-10-2126></A><A NAME=MARKER-9-2127></A>
Identical to <A HREF="#MARKER-9-2119">rootcause run</A>, but the <EM>command</EM> is run in a separate window. This is used by the <A HREF="rcc-11.html#MARKER-9-1428">Run</A> button in the RootCause GUI.<H4> Syntax:</H4><PRE><CODE><A NAME=MARKER-2-2128></A>rootcause xrun</CODE><EM>command</EM></PRE><H4></H4><A NAME=HEADING12-271></A><A NAME="UID-09command_rc.fm-976931"></A>
+
<!--  <H2>rootcause xrun</H2>  -->
 +
== rootcause xrun ==
 +
 
 +
Identical to <A HREF="#MARKER-9-2119">rootcause run</A>, but the <EM>command</EM> is run in a separate window. This is used by the <A HREF="rcc-11.html#MARKER-9-1428">Run</A> button in the RootCause GUI.
 +
<H4> Syntax:</H4>
 +
<PRE><CODE><A NAME=MARKER-2-2128></A>rootcause xrun</CODE><EM>command</EM></PRE>
 +
<H4></H4>
 +
<A NAME=HEADING12-271></A>
 +
<A NAME="UID-09command_rc.fm-976931"></A>
 
----
 
----
<H2><A NAME=MARKER-9-2129></A>rootcause status</H2>
+
<A NAME=MARKER-9-2129></A>
  Use the <CODE><A NAME=MARKER-2-2130></A>rootcause status</CODE> command to show whether rootcause tracing is currently enabled or disabled.<H4> Syntax:</H4><PRE>  
+
<!--  <H2>rootcause status</H2>  -->
 +
== rootcause status ==
 +
 
 +
<A NAME=MARKER-2-2130></A>
 +
Use the <CODE>rootcause status</CODE> command to show whether rootcause tracing is currently enabled or disabled.
 +
<!--  <H4> Syntax:</H4> -->
 +
==== Syntax: ====
 +
<PRE>  
 
rootcause status  
 
rootcause status  
 
</PRE>
 
</PRE>
<A NAME="LINK-09command_rc.fm-lastpage"></A></DIV><DIV>
+
<A NAME="LINK-09command_rc.fm-lastpage"></A>
 +
<!--  </DIV><DIV>  -->
 
--------
 
--------
 
Copyright 2006-2017 OC Systems, Inc.</div>
 
Copyright 2006-2017 OC Systems, Inc.</div>
  
 
[[RCUG_7_Selected_Topics|Next]] [[RCUG_RootCause_GUI_Reference|Previous]] [[RCUG_Index|Index]] [[RCUG_Top|Top]]
 
[[RCUG_7_Selected_Topics|Next]] [[RCUG_RootCause_GUI_Reference|Previous]] [[RCUG_Index|Index]] [[RCUG_Top|Top]]
 
  
 
[[Category:RCUG]]
 
[[Category:RCUG]]

Revision as of 04:43, 24 November 2017

Next Previous Index Top

RootCause User Guide

RootCause Command Reference


The following commands are available from the command line after RootCause has been installed and the setup script in the RootCause installation directory has been executed (see <A HREF="rcc-7.html#MARKER-9-508">Chapter 4, "Getting Started"</A>). <A NAME=HEADING12-2></A><A NAME="UID-09command_rc.fm-998723"></A>

RootCause and Different Shells

Different shells on Solaris have different capabilities. The following differences apply to the different shells:

<A NAME=MARKER-2-2010></A>sh (<A NAME=MARKER-2-2011></A>Bourne shell):

The <A NAME=MARKER-2-2012></A>rootcause_on and <A NAME=MARKER-2-2013></A>rootcause_off commands are not available. Instead, you must use the dot commands:
 
. <A NAME=MARKER-2-2014></A>rootcause_enable 
. <A NAME=MARKER-2-2015></A>rootcause_disable 

<A NAME=MARKER-2-2016></A>ksh (Korn shell)

You may use rootcause on and rootcause off instead of rootcause_on, and rootcause_off, because rootcause is defined as a shell function. Note that RootCause requires that ksh be installed, though you need not use it as your shell. On Linux you may have to install pdksh.

<A NAME=MARKER-2-2017></A>csh (C shell)

rootcause_on and rootcause_off are aliases defined in your shell when you "source" setup.csh. C shell does not support shell functions, so "rootcause on" and "rootcause off" won't work.

<A NAME=MARKER-2-2018></A>bash

The setup script and shell functions for ksh work for bash as well. However, ksh is still needed for <A NAME=MARKER-2-2019></A>install_rootcause, <A NAME=MARKER-2-2020></A>rootcause_status, and other scripts.<A NAME=HEADING12-14></A><A NAME="UID-09command_rc.fm-976940"></A>

rootcause

The <A NAME=MARKER-2-2021></A>rootcause command is designed to run in a simple, intuitive manner when default file names are used. When run with no arguments, it gives version and license information. When run with rootcause -h, it shows the following commands, which are described in detail in this chapter.

<A HREF="#MARKER-9-2022">rootcause build</A>
build traces/probes in workspace.
<A HREF="#MARKER-9-2027">rootcause collect</A>
collect agent workspace data for analysis.
<A HREF="#MARKER-9-2039">rootcause config</A>
show current configuration information.
<A HREF="#MARKER-9-2051">rootcause decollect</A>
unpack collected workspace data for analysis.
<A HREF="#MARKER-9-2053">rootcause deploy</A>
package a workspace for remote deployment.
<A HREF="#MARKER-9-2063">rootcause format</A>
format data in workspace.
<A HREF="#MARKER-9-2075">rootcause log</A>
perform operations on rootcause log file.
<A HREF="#MARKER-9-2079">rootcause merge</A>
merge two workspaces to create a third.
<A HREF="#MARKER-9-2084">rootcause new</A>
create a new workspace.
<A HREF="#MARKER-9-2089">rootcause_off</A>
disable rootcause intercept of applications.
<A HREF="#MARKER-9-2094">rootcause_on</A>
enable rootcause intercept of applications.
<A HREF="#MARKER-9-2101">rootcause open</A>
start the RootCause GUI.
<A HREF="#MARKER-9-2107">rootcause register</A>
register an application with a workspace.
<A HREF="#MARKER-9-2119">rootcause run</A>
run any command under rootcause.
<A HREF="#MARKER-9-2129">rootcause status</A>
show if rootcause is enabled.
<A HREF="#MARKER-9-2127">rootcause xrun</A>
run a command under rootcause in a separate window.
<A NAME=HEADING12-32></A><A NAME="UID-09command_rc.fm-973633"></A>

rootcause build

The <A NAME=MARKER-2-2023></A>rootcause <A NAME=MARKER-2-2024></A>build command updates a RootCause workspace without opening the GUI. This is useful for maintaining workspaces as part of a script-driven product development process. The location of a workspace is provided, along with paths to all relevant programs and modules whose locations or contents may have changed. Note that a side-effect of this process may be to lose traces that no longer apply to a changed module.

Syntax:

 
rootcause build  
['''-Fh'''] [ '''-x'''<EM>program_file</EM> | <EM>file</EM>.class | <EM>file</EM>.jar ] 
['''-m'''<EM>module</EM>]* 
['''-w'''] <EM>workspace</EM>.aws 

Options:

'-F'
force the build even if the workspace is locked.
'-h'
give this command's usage
'-x program_file'
the executable program, or the .class or .jar file containing your Java application's main entry. This is the same as the argument to <A HREF="rcc-11.html#MARKER-9-1376">Reset Program</A> in the GUI.
'-m module'
the path of a <A HREF="rcc-6.html#MARKER-9-416">dynamic module</A> that the program applies to. This is the same as the argument to <A HREF="rcc-11.html#MARKER-9-1386">Reset Dynamic Module</A> in the GUI.
'-w workspace'.aws
an existing RootCause workspace.

Examples:

  1. Rebuild workspace pi_demo.aws<A NAME=MARKER-10-2025></A> against current modules in case they've changed: rootcause build Pi.aws
  2. Update the RootCause self-analysis workspace for the current installation location:<A NAME=MARKER-10-2026></A>rootcause build -x $APROBE/lib/probeit.jar -m $APROBE/lib/libdebugInfo.so -w $APROBE/arca.aws
<A NAME=HEADING12-48></A><A NAME="UID-09command_rc.fm-973690"></A>

rootcause collect

The <A NAME=MARKER-2-2028></A>rootcause <A NAME=MARKER-2-2029></A>collect command is executed on a <A NAME=MARKER-2-2030></A>remote computer where the <A NAME=MARKER-2-2031></A>RootCause Agent component has been installed to gather the RootCause data together into a single <A NAME=MARKER-2-2032></A>.clct file to be transmitted to a computer where the RootCause GUI component has been installed for subsequent <A NAME=MARKER-2-2033></A>decollection and analysis. It examines the rootcause registry to determine the workspace for the applications<A NAME=MARKER-10-2034></A>, if no workspace is specified. Multiple applications<A NAME=MARKER-10-2035></A> and workspaces may be specified for collection. If no arguments are supplied, the <A NAME=MARKER-2-2036></A>RootCause log and <A NAME=MARKER-2-2037></A>registry are collected.

Syntax:

 
rootcause collect  
[-'''AFh'''] [ '''-o'''<EM>clct_file</EM> ] [ '''-f''' other_file ] 
[ ['''-x''']  <EM>program_file</EM> | '''-c'''<EM>class</EM> | ['''-w'''] <EM>workspace</EM>.aws ]... 

Options:

'-A'
suppress generation and collection of <A HREF="rcc-6.html#MARKER-9-389">ADI file</A>s for native modules. This might be done to reduce the download size if you are sure the local and remote modules are identical.
'-F'
force overwriting of clct_file, if present.
'-h'
give this command's usage
'-o clct_file'
the collect file to create (default: first_argument.clct)
'-f other_file'
any other file (not directory) to be added to the clct_file. You can also simply copy files or directories into the workspace.
'-x program_file'
the registered program to which deployed workspace applies
'-c class'
the registered Java class to which deployed workspace applies
'-w workspace'
the workspace contents to be collected if program or class is not known

Examples:

  1. Collect the data logged in the workspace registered with program converter.exe and the workspace fred.aws, and places those two traces in the single file myserver.clct. rootcause collect -x converter.exe -w fred.aws -o myserver.clct

<A NAME=HEADING12-64></A><A NAME="UID-09command_rc.fm-973736"></A>


rootcause config

The <A NAME=MARKER-2-2040></A>rootcause config command reports current configuration information. With no arguments it shows the installation directory and license information.

Syntax:

 
rootcause config [ '''-dhlLnRuvV''' ] 

Options:

'-d'
give installation directory (that is, the value of $<A NAME=MARKER-10-2041></A><A HREF="rcc-10.html#MARKER-9-979">APROBE</A><A NAME=MARKER-10-2042></A>)
'-h'
give this command's usage
'-l'
give license information
'-L'
give application log path ($<A NAME=MARKER-10-2043></A>APROBE_LOG<A NAME=MARKER-10-2044></A> or default location).
'-n'
give product name (Console or Agent).
'-R'
give application log path ($<A NAME=MARKER-10-2045></A>APROBE_REGISTRY<A NAME=MARKER-10-2046></A> or default location).
'-u'
give user directory ($<A NAME=MARKER-10-2047></A><A HREF="rcc-10.html#MARKER-9-982">APROBE_HOME</A><A NAME=MARKER-10-2048></A> or default).
'-v'
give product version number.
'-V'
give product version description (default).

Examples:

  1. Show the current installation information: $<A NAME=MARKER-10-2049></A> rootcause config RootCause Console 2.0.5 (030405) Installed in /app1/product/aprobe <A NAME=MARKER-10-2050></A>This product is licensed to 1111 OC Systems, Inc. This license will expire on 31-dec-2006.

<A NAME=HEADING12-81></A> <A NAME="UID-09command_rc.fm-973510"></A>


rootcause decollect

The <A NAME=MARKER-2-2052></A>rootcause decollect command unpackas a .clct file built by the <A HREF="#MARKER-9-2027">rootcause collect</A> command. This function is also performed by the <A HREF="rcc-11.html#MARKER-9-1430">Decollect</A> operation in the RootCause GUI (see <A HREF="rcc-11.html#MARKER-9-1528">"Decollect Data Dialog"</A>).

The result of this operation is a directory tree whose root directory has suffix .dclct.

Syntax:

 
rootcause decollect ['''-F'''] ['''-o'''<EM>directory</EM>] <EM>clct_file</EM>

Options:

'-F'
force delete of directory, if present
'-o directory'
extract into directory (default: clct_file_name.dclct)
clct_file
collect file that was built by <A HREF="#MARKER-9-2027">rootcause collect</A>

Examples:

  1. Decollect the data in myserver.clct into myserver.dclct rootcause decollect myserver.clct
<A NAME=HEADING12-93></A><A NAME="UID-09command_rc.fm-974261"></A>

rootcause deploy

The <A NAME=MARKER-2-2054></A>rootcause deploy command packages a <A HREF="rcc-6.html#MARKER-9-482">workspace</A> for use in a <A HREF="rcc-6.html#MARKER-9-456">remote</A> (<A HREF="rcc-6.html#MARKER-9-399">agent</A>) environment. This function is also performed by the <A HREF="rcc-11.html#MARKER-9-1429">Deploy</A> operation in the RootCause GUI (see <A HREF="rcc-11.html#MARKER-9-1520">"Deploy Dialog"</A>). The result of this operation is a zip file with suffix .dply. Note that this command does not verify the workspace is already built. If you're not sure, do <A HREF="#MARKER-9-2022">rootcause build</A> first.

Syntax:

 
rootcause deploy  
['''-Fh'''][ ['''-x'''] <EM>program_file</EM> | ['''-c'''<EM>class</EM>] ['''-w''']<EM>workspace</EM>.aws ] 
['''-l'''<EM>license_file</EM>] ['''-m'''<EM>module</EM>]['''-o'''<EM>dply_file</EM>] 

Options:

'-c class'
the Java class registered with the workspace you wish to deploy.
'-F'
force overwriting of dply_file, if present.
'-h'
give this command's usage
'-l license_file'
the agent license file to include in the deployed workspace (default $APROBE/licenses/<A NAME=MARKER-10-2055></A>agent_license.dat.
'-m module'
is a <A HREF="rcc-6.html#MARKER-9-440">module</A> (<A NAME=MARKER-10-2056></A><A HREF="rcc-6.html#MARKER-9-461">shared library</A>) for which an <A HREF="rcc-6.html#MARKER-9-389">ADI file</A> should be generated.
'-o dply_file'
the deploy file to create (default: workspace.clct)
'-x program_file'
the program registered with the workspace you wish to deploy.
'-w workspace'.aws
an existing, built RootCause workspace.

Examples:

  1. Deploy workspace pi_demo.aws<A NAME=MARKER-10-2057></A>. rootcause deploy pi_demo.aws<A NAME=MARKER-10-2058></A>.
  2. Deploy workspace for factor<A NAME=MARKER-10-2059></A> and module libFactor.so<A NAME=MARKER-10-2060></A> into Factor.dply. rootcause deploy -x /app/bin/factor<A NAME=MARKER-10-2061></A> -m <A NAME=MARKER-10-2062></A> -o Factor.dply
<A NAME=HEADING12-111></A><A NAME="UID-09command_rc.fm-973769"></A>

rootcause format

The rootcause format command runs <A HREF="rcc-6.html#MARKER-9-400">apformat</A> on the data collected in the specified workspace. This produces output similar to that produced by <A HREF="rcc-11.html#MARKER-9-1743">Save As Text</A> in the RootCause GUI. By default rootcause format operates on the most current process. Because it formats all the data it can take a while for large amounts of data. You can use the -O option in conjunction with the apformat "-n" option to limit it to specific APD files, as shown in Example 3 below.

Syntax:

 
rootcause format  
['''-hlr''']['''-p'''<EM>PID</EM>]['''-O''' "<EM>options</EM>"]['''-t'''<EM>tmpdir</EM>] 
['''-w'''] <EM>workspace</EM>.aws 

Options:

'-h'
give this command's usage
'-l'
list the <A HREF="rcc-6.html#MARKER-9-393">APD ring</A>s (<A HREF="rcc-6.html#MARKER-9-444">Process Data Set</A>s) in the workspace, but don't format anything. The newest data set is listed first.
'-r'
raw: just run apformat directly on the APD file (with options specified using -O) rather than using the workspace's formatting script.
'-p PID'
format data for the process given by <A HREF="rcc-6.html#MARKER-9-443">PID</A>
'-O "options"'
pass options to the apformat command. The options must be in quotes, and quotes in the options themselves must be preceded by a backslash.
'-t tmpdir'
specifies the directory where intermediate files are to be produced. These can get very large--up to 10 times the size of the APD files depending on the formatting--and this can be used to avoid disk-space restrictions where the workspace resides.
'-w workspace'.aws
the RootCause workspace containing the data to be formatted.

<A NAME=MARKER-9-2064></A>Examples:

  1. Format the newest data set in pi_demo.aws<A NAME=MARKER-10-2065></A> the file pi_demo<A NAME=MARKER-10-2066></A>.txt. rootcause format pi_demo.aws<A NAME=MARKER-10-2067></A> > pi_demo<A NAME=MARKER-10-2068></A>.txt
  2. List the <A HREF="rcc-6.html#MARKER-9-444">Process Data Set</A> in workspace pi_demo.aws<A NAME=MARKER-10-2069></A>. $<A NAME=MARKER-10-2070></A> rootcause format -l pi_demo.aws<A NAME=MARKER-10-2071></A> /work/pi_demo.aws/pi_demo.apd.11991/pi_demo.apd /work/pi_demo.aws/pi_demo.apd.11785/pi_demo.apd <A NAME=MARKER-10-2072></A>
  3. Run <A HREF="rcc-6.html#MARKER-9-400">apformat</A> directly on the newest data file for process 11785 in pi_demo.aws<A NAME=MARKER-10-2073></A>. rootcause format -r -O "-n 0" -p 11785 pi_demo.aws<A NAME=MARKER-10-2074></A>

<A NAME=HEADING12-132></A> <A NAME="UID-09command_rc.fm-973882"></A>


rootcause log

The <A NAME=MARKER-2-2076></A>rootcause log command provides information about the RootCause Log, and allows its maximum <A NAME=MARKER-2-2077></A>size to be changed.

Syntax:

 
rootcause log ['''-hlnsFZ''' | '''-s'''<EM>size</EM> ] 

Options:

'-F'
force -s size or -Z operation without confirmation
'-h'
give command-line help
'-l'
list log file contents to standard output
'-n'
list the log file name to standard output
'-s'
list the log file size to standard output
'-s size'
set the maximum size of the log to size bytes (size > 1000)
'-Z'
clear the contents of the log file

<A NAME=MARKER-9-2078></A>Examples:

  1. Write the contents of the log to standard output: rootcause log
  2. Set the size of the log to 20000 bytes: rootcause log -s 20000

<A NAME=HEADING12-150></A><A NAME="UID-09command_rc.fm-973824"></A>


rootcause merge

The <A NAME=MARKER-2-2080></A>rootcause merge command merges two <A HREF="rcc-6.html#MARKER-9-482">workspace</A>s to create a new, third workspace. It works by copying the first primary workspace to the third result workspace, then adding compatible traces and UALs from the second secondary workspace. A <A HREF="rcc-6.html#MARKER-9-440">module</A> must exist in both the primary and secondary workspaces in order that traces for that module appear in the result workspace.

There is no GUI operation equivalent to rootcause merge. You can use it in conjunction with the GUI by:
  • Using Workspace->Close to close your current workspace
  • Applying rootcause merge from the command line
  • Using Workspace->Open on the result workspace.

Note: The <A HREF="#MARKER-9-2022">rootcause build</A> and <A HREF="#MARKER-9-2107">rootcause register</A> operations must be applied to the result workspace before the result workspace can be used to trace an application.

Syntax:

 
rootcause merge ['''-Fh'''] <EM>primary</EM>.aws <EM>secondary</EM>.aws <EM>result</EM>.aws 

Options:

'-F'
force result.aws to be overwritten if it exists
'-h'
give command-line help
primary.aws
The primary workspace, on which the result workspace is based.
secondary.aws
The secondary workspace, from which additional traces and UALS are added to the result workspace.
result.aws
The new workspace that is created.

Examples:

  1. Merge traces in file_ops.aws into pi_demo.aws to produce pi_demo2.aws and make pi_demo2.aws the new workspace for tracing pi_demo<A NAME=MARKER-10-2081></A> rootcause merge file_ops.aws pi_demo.aws pi_demo2.aws rootcause build pi_demo2.aws rootcause register -F -x pi_demo<A NAME=MARKER-10-2082></A> -w pi_demo2.aws
<A NAME=HEADING12-168></A><A NAME="UID-09command_rc.fm-973825"></A>

rootcause new

The <A NAME=MARKER-2-2085></A>rootcause new command creates a new <A HREF="rcc-6.html#MARKER-9-482">workspace</A>. Generally this is done through the RootCause GUI using the <A HREF="rcc-11.html#MARKER-9-1362">New</A> menu item or <A HREF="rcc-11.html#MARKER-9-1730">Open Associated Workspace</A>; (see <A HREF="rcc-11.html#MARKER-9-1434">"New Workspace Dialog"</A>). The result of this operation is the named workspace, initialized to do default tracing. If the -r option is used, the workspace is also registered with the specified program or Java class.

Syntax:

 
rootcause new 
['''-Fhr''']['''-c'''<EM>class</EM>] '''-x'''<EM>program_file</EM>  ['''-w''']<EM>workspace</EM>.aws ] 

Options:

'-c class'
the Java class registered with the workspace you wish to deploy.
'-F'
force overwriting of workspace.aws if it exists.
'-h'
give this command's usage
'-r'
register the new workspace with the specified program or Java class
'-x program_file'
the executable program or Java .class or .jar file the workspace will be used to trace (as on the <A HREF="#MARKER-9-2101">rootcause open</A> command).
'-w workspace'.aws
the new workspace to be created.

Examples:

  1. Create and register a new workspace for pi_demo.exe<A NAME=MARKER-10-2086></A>. rootcause new -r -x pi_demo.exe<A NAME=MARKER-10-2087></A> -w pi_demo.aws<A NAME=MARKER-10-2088></A>.
<A NAME=HEADING12-182></A><A NAME="UID-09command_rc.fm-973929"></A>

rootcause_off

Use the <A NAME=MARKER-2-2091></A>rootcause_<A NAME=MARKER-10-2092></A>off command to disable rootcause interception of processes on your machine.

Syntax:

 
rootcause<CODE>_<A NAME=MARKER-10-2093></A></CODE>off 

<A NAME=HEADING12-188></A><A NAME="UID-09command_rc.fm-976801"></A>


rootcause_on

Use the <A NAME=MARKER-2-2096></A>rootcause_<A NAME=MARKER-10-2097></A>on command to start the inspection and interception of processes on your machine to determine if they should be traced with rootcause.

Syntax:

<CODE>rootcause_<A NAME=MARKER-10-2098></A>on<A NAME=MARKER-10-2099></A></CODE>
<A NAME=HEADING12-192></A><A NAME="UID-09command_rc.fm-949424"></A>

rootcause open

The <A NAME=MARKER-2-2102></A>rootcause <A NAME=MARKER-2-2103></A>open command starts the <A NAME=MARKER-2-2104></A>RootCause GUI. If the application class specified on the command line is registered, the GUI will automatically set the workspace from the registry entry for the application. If the application is not registered, the GUI will prompt for a new workspace name and register the application. If no arguments are specified, the current RootCause Log file is opened.

Syntax:

 
rootcause open  
[['''-x'''] <EM>program_file</EM>] 
['''-c'''<EM>classname</EM>] [['''-w'''] <EM>workspace</EM>.aws] 
[ ['''-d'''] <EM>dir</EM>.dclct | ['''-z'''] <EM>file</EM>.clct ] 

Options:

program_file
the executable program file, or the the .class or .jar file containing your Java application's main entry
classname
the main class name. This is required if classname is not the same as file
workspace.aws
a new or existing RootCause workspace
dir.dclct
a directory created by the RootCause <A HREF="rcc-11.html#MARKER-9-1430">Decollect</A> operation
file.clct
a file created by the rootcause collect command

Examples:

  1. Start the RootCause GUI and examine the RootCause Log file in a Trace Display window. rootcause open
  2. Start the RootCause GUI to open new or existing workspace converter.aws. rootcause open converter.aws
  3. Start the RootCause GUI to open a new or existing workspace for program converter.exe rootcause open converter.exe
  4. <A NAME=MARKER-10-2105></A>Start the RootCause GUI to unpack (<A NAME=MARKER-2-2106></A>decollect) the collected rootcause data in pi_demo.clct. rootcause open pi_demo.clct
<A NAME=HEADING12-211></A><A NAME="UID-09command_rc.fm-949448"></A>

rootcause register

The <A NAME=MARKER-2-2108></A>rootcause <A NAME=MARKER-2-2109></A>register command provides the interface to the RootCause <A NAME=MARKER-2-2110></A>registry. The GUI will allow you to add or delete the current workspace from the registry, but you must use the register command to otherwise manipulate the registry. It is likely that, over time, more GUI support will be added to manipulate the registry, but on computers where only the <A NAME=MARKER-2-2111></A>RootCause Agent is installed, there is no GUI and the register command must be used.

Syntax:

 
rootcause register [<EM>subcommand</EM> ] <EM>options</EM>  [<EM>deploy_file</EM>] 

Description:

subcommand

The subcommand flag designates the operation to be performed:

'-a'
add a new entry in the registry (default)
'-d'
delete an entry from the registry
'-h'
give command help
'-k'
return 0 iff specified args are already registered & enabled
'-l'
lists all registry contents
'-lr'
list registry name only
'-lw'
list workspace name only
'-lx'
list only registered program<A NAME=MARKER-10-2112></A> only
'-s'debug
enable/disable debug mode with -eon/off (off by default)
'-s'verbose
enable/disable verbose mode with -e on/off (on by default) With verbose mode on, all processes are recorded in the log; with verbose off, only traced applications are recorded.
'-Z'
clear entire registry contents, including -s settings, returning them to their default values.

options

Options further qualifying the above are:
'-c'classname
probe Java commands naming main class classname
'-e'on | off
off specifies 'disabled' (default: on)
'-F'
force without confirmation
'-j'dir
dir is root of JRE containing java exe to probe
'-m'file
file is a module required for deploy_file consistency checking
'-r'file
file is registry file to use
'-w'dir.aws
file is workspace to use
'-x'file
file is executable to probe
deploy_file
is a .dply file to unpack into a registered workspace

Examples:

  1. List the registry name and contents: rootcause register -l
  2. Delete the registry entry for driver.exe: rootcause register -d -x /build/bin/driver
  3. <A NAME=MARKER-10-2113></A>Turn off recording of all processes in the RootCause log: rootcause register -s verbose -e off
  4. The following command will do the following all in one step:
    • register the program
    • create the workspace (if it does not exist)
    • deploy the trace into the workspace; and
    • check it's consistency with the modules to be traced This would be the typical command used on a remote computer where only the <A NAME=MARKER-2-2114></A>RootCause Agent component was installed in order to implement a <A NAME=MARKER-2-2115></A>.dply file generated by the RootCause GUI component. After this command is issued, you would merely execute rootcause_on in the context of the shell<A NAME=MARKER-10-2116></A> and run the application. rootcause register -x /opt/frobco/bin/frobit <A NAME=MARKER-10-2117></A> frobit.dply <A NAME=MARKER-10-2118></A>
<A NAME=HEADING12-255></A><A NAME="UID-09command_rc.fm-974040"></A>

rootcause run

Use <A NAME=MARKER-2-2120></A>rootcause run before your command to cause it to be <A HREF="rcc-6.html#MARKER-9-458">run with rootcause on</A>, independent of the current <A HREF="#MARKER-9-2129">rootcause status</A>. The command specified will be run in the current window exactly as if it were not preceded by rootcause run. This is equivalent to rootcause_<A NAME=MARKER-10-2121></A>on command rootcause_<A NAME=MARKER-10-2122></A>off

Syntax:

<CODE>rootcause run</CODE><EM>command</EM>

Options:

command
any shell command

Example:

  1. Run the pi_demo<A NAME=MARKER-10-2123></A> application with rootcause on: rootcause run $APROBE/demo/RootCause/C++/pi_demo

<A NAME=MARKER-10-2124></A><A NAME=MARKER-10-2125></A>

<A NAME=HEADING12-266></A> <A NAME="UID-09command_rc.fm-976908"></A>


<A NAME=MARKER-10-2126></A><A NAME=MARKER-9-2127></A>

rootcause xrun

Identical to <A HREF="#MARKER-9-2119">rootcause run</A>, but the command is run in a separate window. This is used by the <A HREF="rcc-11.html#MARKER-9-1428">Run</A> button in the RootCause GUI.

Syntax:

<CODE><A NAME=MARKER-2-2128></A>rootcause xrun</CODE><EM>command</EM>

<A NAME=HEADING12-271></A> <A NAME="UID-09command_rc.fm-976931"></A>


<A NAME=MARKER-9-2129></A>

rootcause status

<A NAME=MARKER-2-2130></A> Use the rootcause status command to show whether rootcause tracing is currently enabled or disabled.

Syntax:

 
rootcause status 

<A NAME="LINK-09command_rc.fm-lastpage"></A>


Copyright 2006-2017 OC Systems, Inc.

Next Previous Index Top