Skip to content

Scheduling

Scheduling

In order to arrange or plan an event to take place at a particular time we've created Scheduling, it will allow to use the POSIX local format, the execution will be made by an agent.

To configure an schedule click on Operations and then click on schedule, to do a new schedule click on the new button.

Provide a description, interval pattern and click on the ok button.

The POSIX cron format is the below:

Field Possible Values Syntax Description
a - Minute 0-59 7 * * The cron job is initiated every time the system clock shows 7 in the minute’s position.
b - Hour 0-23 0 7 * * * The cron job runs any time the system clock shows 7am (7pm would be coded as 19).
c - Day 0-31 0 0 7 * * The day of the month is 7 which means that the job runs every 7th day of the month.
d - Month 0 = none and 12 = December 0 0 0 7 * The numerical month is 7 which determines that the job runs only in July.

In addition to running the agents manually with their "Run" button, you can also schedule them to run periodically. This can be done from the web if you have our Corporate/Pro version:

or with simple cronjobs using faraday-cli if you are using the Community version

create an script.sh with this contents:

#!/bin/bash
echo '{"target": "www.google.com"}' | faraday-cli agent run -a 1 -e nmap --stdin

Edit your crontab using the bellow command

crontab -e 
1 0 * * 0 /pathtoyourscript/script.sh > /dev/null 2>&1