View Source

h1. {anchor:GBRKD} commadmin debug log
The {{commadmin debug log}} command creates a Delegated Administrator server log that contains debug statements generated by the Delegated Administrator servlets installed on the Web container.

If the log file already exists, the new debug statements are appended to the end of the existing file. If the log file does not exist, a new file is created.

NOTE: This sets the debug mode on Delegated Administrator Server. This is useful for analyzing problems that affect the Delegated Adminstrator Console and the Delegate Administrator Utility. For analyzing problems with the Delegate Administrator Utility (commadmin) client itself, use the "-v" flag, and capture the command output.

h2. {anchor:GBRJO} Syntax

{panel}
{{commadmin debug log –D _login_ –n _domain_ –w _password_ –t [ on|off ] –f}} _{{path and file name_}}
{panel}

h2. {anchor:GBRJE} Options

The following options are mandatory:

||Option||Description||
|{{-D}} _login_|The user ID of the Top-Level Administrator.|
|{{-n}} _domain_|The domain of the Top-Level Administrator.|
|{{-t [ on\|off ]}}|Toggles between turning on the debug log and turning it off. \\
\\The value {{on}} causes the server to start writing debug statements to the log.
\\The value {{off}} causes the server to stop writing debug statements to the log.\\
|
|{{-w}} _password_|The password of the Top-Level Administrator.|

The following option is non-mandatory:

||Option ||Description ||
|-f _path and file name_|The full path where the log will be created, including the file name of the log.\\
\\The _path_ must be one of the following two directories:\\
\\ {{/tmp/}}\\
\\ {{/var/tmp/}}\\
\\The _file name_ can be any file name.\\
\\If the {{-f}} option is not specified, the default value is {{/tmp/commcli.log}}.|

h2. {anchor:GBRJJ} Example

To create a new debug log, enter:

{panel}
{{commadmin debug log –D paul –n sesta.com –w bolton \}}
{{–t on –f /tmp/debug.log}}
{panel}
To turn off logging to an existing log file, enter:
{panel}
{{commadmin debug log –D paul –n sesta.com –w bolton \}}
{{–t off}}
{panel}

You do not have to specify the file name when you turn off the log.

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact