Sun Management Center 3.6.1 User's Guide

CLI Log File

To record CLI commands in a log file, set the log parameter to the name of the file in which to record the commands. To pass the log file to CLI in batch mode for execution, set the logmode parameter to detailed, command, or from n. For more details, see log and logmore in Predefined Parameters and Flags.

The log file has the following format:

DATE & TIME;duration or message;command and parameters

Example 20–2 Partial CLI Log File

The following example is an excerpt of the log of the command sequence from which the previous getLoadedModules command output was obtained.

Fri Dec 21 14:15:12 PST 2001;0 second;set o=\
/home/examples/output.3c23b455
Fri Dec 21 14:15:23 PST 2001;0 second;set f=plain
Fri Dec 21 14:15:45 PST 2001;0 second;set a=smtg-dev21
Fri Dec 21 14:16:08 PST 2001;== START OF THREAD ==;getLoadedModules
Fri Dec 21 14:16:08 PST 2001;2 seconds;getLoadedModules
Fri Dec 21 14:16:12 PST 2001;9 seconds;print
Fri Dec 21 14:21:28 PST 2001;== START OF THREAD ==;getAgentPort
Fri Dec 21 14:21:28 PST 2001;0 second;getAgentPort
Fri Dec 21 14:21:31 PST 2001;0 second;print
Fri Dec 21 14:22:01 PST 2001;0 second;exit