Layer7 API Management

  • 1.  cronjob scripts

    Broadcom Employee
    Posted Feb 20, 2019 06:30 AM

    Hi i have installed and executing the scripts on gateway via cronjobs for daily audit purge script but the log files or not deleting 

    here are the scripts 

    0 2 * * * bash /opt/SecureSpan/Gateway/runtime/bin/audit_purge.sh > /tmp/auditPurge.log 2>&1
    0 3 * * * bash /opt/SecureSpan/Gateway/runtime/bin/manage_binlogs.sh -f > /tmp/manage_binlogs.log 2>&1

     

    1. how to check these scripts are called by crontab or not, if not what are the steps need to perform

    2.if the scripts has been called by cronjob still its failing to delete the log files  what might be the reason.

     

    Thanks,

    Surya



  • 2.  Re: cronjob scripts
    Best Answer

    Broadcom Employee
    Posted Feb 20, 2019 05:20 PM

    1. check /var/log/cron*, or /var/log/messages

    2. ls -l /tmp/*.log to check last modified date time of the log file

    3. your configuration is to overwrite the log files, not deleting the log files.



  • 3.  Re: cronjob scripts

    Posted Apr 10, 2019 12:20 AM

    Hi,

    May I ask how to set a cron job for gateway 9.4?

    I tried to run command "crontab -e" but no this command.

     

    Thanks.



  • 4.  Re: cronjob scripts

    Broadcom Employee
    Posted Apr 10, 2019 06:44 PM

    What's the form factor of your gateway?

    The appliance gateway should have this command.



  • 5.  Re: cronjob scripts

    Posted Apr 10, 2019 10:57 PM

    Hi Mark,

    I used v9.4 ova to deploy gateway.

    I created another thread for this question.

    https://communities.ca.com/thread/241823026-how-to-add-a-new-cron-job-in-gateway-v94

     

    Thanks for your response.



  • 6.  Re: cronjob scripts

    Broadcom Employee
    Posted Feb 21, 2019 02:30 PM

    Thanks Zhijun for the quick respone