5.4.2 Using the command to extract system log information
When you execute the jr3slget command (either manually or automatically from another program), you can select the system log information to be extracted from the SAP system as follows:
-
Extract all system log information that has been output so far on the day the command is executed.
-
Extract only the system log information that has been output since the last time the command was executed.
For details about the jr3slget command, see jr3slget.
- Note
-
If you specify values for the same parameter in both the environment parameters file and the jr3slget command, the value in the command takes effect.
The two extraction methods are explained below.
- Organization of this subsection
(1) Extracting all system log information that has been output so far on the day the command is executed
The following command specification extracts all system log information that has been output so far on the day the command is executed (this example assumes that values have been defined for the CONNECT and TARGET sections in the environment parameters file):
jr3slget
(2) Extracting only the system log information that has been output since the last time the command was executed
To extract only the system log information that has been output since the last time the command was executed, execute the command with the timestamp file specified in the -lasttime option. The timestamp file contains a history of the execution dates and times for the jr3slget command. When you execute the command repeatedly specifying the same timestamp file, you extract consecutive system log information without any duplication.
- Note
-
If the timestamp file specified in the -lasttime option does not exist when the command is executed for the first time, the command creates a new timestamp file, in which case no system log information is reported.
The following command specification extracts only the system log information that has been output since the last time the command was executed (this example assumes that values have been defined for the CONNECT and TARGET sections in the environment parameters file):
jr3slget -lasttime sltimestamp.txt