Sun Java System Delegated Administrator 6.4 Administration Guide

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.

Syntax

commadmin debug log -D login -n domain -w password -t [ on|off ] -f path and file name

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.

If you specify -t on to turn on debug logging to an existing log file, the new debug statements are appended to the end of the existing file.

-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.

Example

To create a new debug log, enter:


commadmin debug log -D paul -n sesta.com -w bolton \
-t on -f /tmp/debug.log

To turn off logging to an existing log file, enter:


commadmin debug log -D paul -n sesta.com -w bolton \
-t off

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