Configuring a cronjob requires you to create an executable shell script on your firewall. Afterwards, you must schedule the script for execution.
Before You Begin
Create a script directory where to store the script in. Then, create a script that fulfills the task that the firewall must process periodically. Finally, store the script in the script directory.
Step 1. Schedule the Script for Execution
In this example, the script must be executed every day at 09:00.
- Log into your firewall on box level.
- Go to Configuration > Box > Advanced Configuration > System Scheduler.
- In the left menu, click Daily Schedule.
- Click Lock.
- In the Intraday Schedule section, click +.
- Enter the name for your intraday schedule, i.e.,
- Click OK. The Intraday Schedule window opens.
- Enter a description for your schedule, i.e.,
MyScript at 09:00.
- Click the green +.
- Enter the full path name, including the name of the script.
- From the Hourly Schedule list, select list.
- For the Hourly List, enter the number for the hour, i.e.,
- Click OK.
- Click Send Changes.
- Click Activate.
Step 2 (optional). Check the Result of the Cronjob
- Go to SSH and log into your firewall as user 'root'.
- Enter the Unix command in the shell:
cat /var/log/cat /phion0/logs/box_System_cron.log