Legacy ID:KA356179
The SYSOUT and exit code for jobs are stored in files on the remote host. The files
reside in the user home directory of the job’s owner, in the directory specified by
RJX_SYSOUT_DIR.
There are two temporary files created on the Remote Host (in the sysout directory) should not be deleted. These files are automatically removed to Control-M/Agent when the
jobs end and the network connection is available or restored. The two files are:
Windows:
mem_<5-digit_number>_1.dat
00001_.cmd
For more information about RJX_SYSOUT_DIR, see “Control-M/Agent parameters” on page 517 of the Admin Guide.
RJX_SYSOUT_DIR - (AgentLess Temporary Directory)
A directory to store temporary files. These files are automatically removed to Control-M/Agent when the jobs end and the network connection is available or restored.
Default: period (.), which means that the files are stored in the user home directory of the job’s owner in the remote host. (which is the directory you specify when you create the WMI Sysout directory)
For Window machine RJX_SYSOUT_DIR setting is located in the registry.
Browse to HKLM\Software\BMC Software\Control-M/Agent\Win
Locate the string called: RJX_SYSOUT_DIR
The following explains how a sysout is being handled when a job is being executed using Agentless:
1) When a job completes its execution on a remote host in agentless mode, the job’s output (Sysout) is moved by default to the host of the BMC Control M/Agent that has submitted the job. - - Alternatively, you can disable the Sysout transfer from the remote host to BMC Control-M/Agent in case Sysout analysis is not required.
2) If the job’s Sysout is very large, and Sysout analysis is required, consider using a conventional agent instead to avoid overloading the network traffic.
3) The decision on whether to use the agentless technology or conventional agent should be taken in this case based on the network bandwidth capacity and load.
There is a parameter setting called RJX_KEEP_SYSOUT which determines if the SYSOUT file is to be deleted from remote host computers.
Valid values: Y, N
Default: N (delete files)
On windows machine:
You will need to add this value to the registry if you want to change to "Y"
Path: HKEY_LOCAL_MACHINE\SOFTWARE\BMC Software\CONTROL-M/Agent\WIN
On Unix machine:
Agent OS.dat file add RJX_KEEP_SYSOUT Y
In short, the sysout files on the remote agent should be removed after job completed successfully and the files are transfered to the agent successfully .
If you see those sysout files, mostly like there is a problem (ie network issue, invalid permission to write/access to the sysout remote agent or if RJX_KEEP_SYSOUT is set to "Y" )