OpenTP1 Version 7 Operation

[Contents][Index][Back][Next]

3.6.2 Command log

Organization of this subsection
(1) Command log output format
(2) Acquiring command logs
(3) Notes

(1) Command log output format

When you execute an OpenTP1 operation command, information such as the times of command execution and termination are output to cmdlog1 and cmdlog2 in $DCDIR/spool/cmdlog, cmdlog1 and cmdlog2 wrap around when the size of data exceeds 1 MB.

You can use an editor such as vi to view cmdlog1 and cmdlog2. Because the times when a command starts and ends are output in a command log, you can measure the length of time required to execute the command.

Information is output in the following format:

> AAAA BBBB C DDDD/DD/DD EE:EE:EE.EEEEEE FFFFFFFF : GGGGGGGG : HHHHHHH

>
Command log record start identifier. This symbol indicates the beginning of a line in the command log.

AAAA
Process ID of the executed command, in one-byte numerics

BBBB
User ID of the person who executed the command

C
Message sequence number in the process (sequence number of the command log information that is output by the executed command process). This is a one-byte number from 0 to 65,535. If the number exceeds 65,535, numbering starts again at 0.

DDDD/DD/DD
Date when information is output to the command log in the YYYY/MM/DD format, in one-byte numerics

EE:EE:EE.EEEEEE
Time when information is output to the command log in the HH:MM:SS.mmmmmm format, in one-byte numerics. mmmmmm indicates a value in microseconds.

FFFFFFFF
Command line information at the time the command was executed. A command executed internally in OpenTP1 may be output here.

GGGGGGGG
Identification information, which is one of the following:
start
Information on starting the command.
end
Information on termination of the command.
info
Maintenance information generated during command execution

HHHHHHH
Maintenance information for the command

(2) Acquiring command logs

To acquire command logs for MCF-related operation commands, you need to assign a value to an environment variable. For details of which commands require the environment variable to be set, see Table 12-1. To set the environment variable:

(3) Notes

Note the following regarding the acquisition of command logs for MCF-related operation commands: