To move log data ("Troubleshoot" directory) to a different location, it is necessary to change the log data output path in the definition file named "template.dat".
Procedure
Stop and confirm the service or daemon
Stop the service or daemon, refer to "A.8 How to Start and Stop Resident Processes" section for more information. Also check that the resident processes have stopped correctly.
Edit template.dat
Windows
Variable file directory\control\template.dat |
UNIX
/etc/opt/FJSVssqc/template.dat |
Change the log data output path [OUTDIR1] in the above definition file to a selected directory. (The following example is for Windows.)
Sample definition
Windows
[TRS] DCAID="TRS" EXECUTESTYLE1=ON INTERVAL1=5 CYCLENUM1=7 OUTDIR1=%WORKING_DIRECTORY\Troubleshoot1 SWITCHTIME=00:00 |
"%WORKING_DIRECTORY"is a macro that points to the location "variable file storage directory\spool", which was specified at the time of installation.
UNIX
[TRS] DCAID="TRS" EXECUTESTYLE1=ON INTERVAL1=5 CYCLENUM1=7 OUTDIR1= %VARIABLE_DIRECTORY/Troubleshoot1 SWITCHTIME=00:00 |
"%VARIABL_DIRECTORY" is a macro that points to the variable file storage directory specified during installation.
Point
With this procedure, old log files will be left unchanged in the old directory, and new log files will be created in the new directory. Delete the old log files if they are no longer required.
Apply the policy
Execute the sqcSetPolicy command to apply the change.
Windows
<Installation directory>\bin\sqcSetPolicy.exe [-h <host name>] [-p <IP address>] |
UNIX
/opt/FJSVssqc/bin/sqcSetPolicy.sh [-h <host name>] [-p <IP address>] |
Refer to "sqcSetPolicy (Policy Application Command)" in the Reference Guide for details on SetPolicy.
Start and confirm the service or daemon
Start the service or daemon, refer to "A.8 How to Start and Stop Resident Processes" section for more information. Also check that the resident processes have started correctly.