Cisco Support Community
Step-by-Step Configuration and Troubleshooting Best Practices for the NGFW, NGIPS and AMP Technologies A Visual Guide to the Cisco Firepower Threat Defense (FTD)
Community Member

Setting up crond on 5.1 appliance

Greetings all. I have a 4215 appliance running 5.1(p1). I want to create and run scheduled tasks via crond. This is what I've tried,

1. As root, create a /var/spool/cron/crontabs directory.

2. As root, add a scheduled task via 'crontab -e'. I can see 'cron.update' and 'root' files created in /var/spool/cron/crontabs.

3. Add '/usr/sbin/crond &' to /etc/rc.d/rc.local (also tried to create Sxxcron script in /etc/init.d/)

As long as my sensor is not rebooted, crond runs my tasks as scheduled. The minute I reboot, /var/spool/cron/crontabs disappears and my cron job vanishes.

What's the correct way to set up crond + scheduled taks and keep them persistent across reboot? Thank you.

Community Member

Re: Setting up crond on 5.1 appliance

Wanted to add one note...

Upon reboot, crond is not restarted from either rc.local or my Sxxcron script in /etc/init.d. So, curious to know how to start crond upon reboot.


Re: Setting up crond on 5.1 appliance

In the old version (4.1) we used to do some of that stuff. 5.x required too many modifications, so we decided against it. We now use perl to perform all the required tasks remotely (logging in via the service account). Have you considered this approach?

CreatePlease to create content