Genesys Engage on-premises

 View Only

Discussion Thread View
  • 1.  Cleanup tool in linux for snapshot removal

    Posted 12-10-2020 12:13
    Dear Team,
    We are trying to set up the snapshot removal using cleanup tool in linux. And we are facing some concerns. Please help us.
    Do we want to create cleanuptool.ini file, And inside that do we want to give the timeline parameters.
    And how do we enable cleanup tool to delete file for hourly count. 
    Please looking forward for documentation or guidelines and suggestions.
    Thanks,
    Anandapriyan.R
    #Reporting/Analytics

    ------------------------------
    Anandapriyan Ravichandran
    Pointel (formerly Touch Point)
    ------------------------------


  • 2.  RE: Cleanup tool in linux for snapshot removal

    Posted 12-11-2020 01:53
    hi all,
    The following instruction will help.

    cleanuptool usage command

    Specify the directory for cleanuptool to cleanup, example:
    C:\Program Files\GCTI\PulseCol\Collector>cleanuptool -c cleanuptool.ini ./output

    Printout example:
    C:\Program Files\GCTI\PulseCol\Collector>cleanuptool -c cleanuptool.ini ./output
    Started processing of './output' at Thu Mar 10 09:53:32 2016 (timestamp=1457592812).
    Total: 12 files preserved, 15 files removed, 0 files failed to remove.
    Finished processing of './output' at Thu Mar 10 09:53:32 2016 (timestamp=1457592812).
    Operation took less than a second.

    To see what directories inside of output directory were cleaned up, please add –V flag. Example:
    C:\Program Files\GCTI\PulseCol\Collector>cleanuptool -c cleanuptool.ini -V ./output

    Note:
    In Linux, it will work in the same way, example:

    [root@mylab4 106]# ./cleanuptool -c cleanuptool.ini -V ./output

    ***********Preparation***********
    cleanuptool intervals

    By default, cleanuptool cleans all snapshots, which are older than 24 hours. If snapshots are newer, they will be cleaned according interval settings in cleanuptool.ini file. Original settings are:
    --------------------
    [general]
    active-intervals=1,2,3
    measure=minutes

    [intervals]
    1=A0-16:1
    2=A16-60:5
    3=A60-1440:20
    --------------------

    Meaning of the intervals:
    - First interval means, that in interval from current moment till 16 minutes from current moment - just every 1-minute snapshot file will be preserved (not cleaned up). So, if snapshots are being written every minute - nothing will be cleaned. If snapshots are created every 15 seconds – cleanuptool will save just a snapshot which is closer to the minute, and will delete the other 3 of 4 snapshots.
    - Second interval means, that in interval from 16 minutes (from current moment) till 60 minutes from current moment - just every 5-minute snapshot file will be preserved (not deleted). The rest will be deleted by cleanuptool.
    - Third interval has the same logic.

    ***********Steps to Implement***********
    Example of setting the intervals:

    a) To clean up all snapshots older than 24 hours and leave newer snapshots.
    cleanuptool.ini should look like this:

    [general]
    active-intervals=1
    measure=minutes

    [intervals]
    1=0-1440

    b) To clean all snapshots older than 12 hours:

    [general]
    active-intervals=1
    measure=minutes

    [intervals]
    1=0-720



    Supplemental Information

    ***********Warnings and Caveats***********
    Make sure the user that runs cleanuptool have permissions to execute and delete files.
    Customer may consider to backup the folder to cleanup before running the command.


    ***********Supplemental Information***********
    It is recommended to run cleanuptool hourly
    You can create script to run the command automatically and schedule the task ( cron for Linux / Task Scheduler for windows )

    ------------------------------
    GURCAN DESTEBAŞ
    Asseco SEE Bilisim Teknolojileri A.S.
    ------------------------------



  • 3.  RE: Cleanup tool in linux for snapshot removal

    Posted 12-11-2020 05:14
    Hi Team,
    Thanks for useful reply, One doubt is whether  we need to run the following command in linux terminal
    [root@mylab4 106]# ./cleanuptool -c cleanuptool.ini -V ./output Under root user. 
    And the output will be shown in  the command screen.
    And using cron -e to schedule the job for one hour, whether we need to add the following command

    0 * * * * ./cleanuptool –c cleanuptool.ini –V ./output
    And whether we need to start the crond using start crond.
    Please let us know your valuable suggestions.
    Thanks,
    Anandapriyan.R



    ------------------------------
    Anandapriyan Ravichandran
    Pointel (formerly Touch Point)
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources