Top
Systemwalker Service Quality Coordinator Installation Guide
Systemwalker

6.7.2 Changing the retention period of log data (Troubleshoot)

To change the log data (Troubleshoot) retention period specified at installation time, it is necessary to change the retention period in the following definition file.

Note

Before changing the log data ("Troubleshoot" directory) retention period, verify that there is sufficient space on the disk by referring to "2.2.1.2 How to estimate the amount of space required for the log data ("Troubleshoot" directory)".


Procedure

  1. Stop the service or daemon and confirm that it has stopped normally

    Stop the service or daemon by referring to "A.8 How to Start and Stop Resident Processes". Also check that the relevant resident processes have stopped correctly.


  2. Save the files in the "Troubleshoot" directory

    Move the files in the "Troubleshoot" directory to another location, or delete them if they are no longer necessary.


  3. Edit template.dat

    Windows

    <Variable file storage directory>\control\template.dat

    UNIX

    /etc/opt/FJSVssqc/template.dat


    Specify the retention period in days (an integer between 1 and 30) as the value of retention period [CYCLENUM1] in the above definition file. The default is "7" days.


    Sample definition

    Windows

    [TRS]

    DCAID="TRS"

    EXECUTESTYLE1=ON

    INTERVAL1=5

    CYCLENUM1=7

    OUTDIR1=%WORKING_DIRECTORY\Troubleshoot1

    SWITCHTIME=00:00

    UNIX

    [TRS]

    DCAID="TRS"

    EXECUTESTYLE1=ON

    INTERVAL1=5

    CYCLENUM1=7

    OUTDIR1=%VARIABLE_DIRECTORY/Troubleshoot1

    SWITCHTIME=00:00


  4. Apply the policy

    To apply this change, execute "sqcSetPolicy".

    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 sqcSetPolicy.


  5. 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.