Forum Discussion

Joern_Oltmann's avatar
Joern_Oltmann
Icon for Nimbostratus rankNimbostratus
Jan 07, 2020

Crontab entry LTM Version 15.x not running

Hi @all,

I updated out LTM BIG-IP VE from Ver. 13.x to 15.x.

But now my cron entry for backup the Certs and ucs files are not running anymore.

In Ver. 13 I had a file located under /etc/cron.d/f5backup with the following content:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=test@abc.de
HOME=/var/tmp
2 0 * * * root /bin/bash /root/create_backup_bigip_v11.sh 1>/var/tmp/create_backup.log 2>&1

But on Ver. 15.x the cronjob is not running

Also an entry with crontab -e is not working

2 0 * * * /root/create_backup_bigip_v11.sh

Someone an idea?

4 Replies

  • Does the crond service run? Try: systemctl status crond

    What does logging show? Try: journalctl -u crond.service

    • Joern_Oltmann's avatar
      Joern_Oltmann
      Icon for Nimbostratus rankNimbostratus
      Hi Nils, ups you are right the cron was not running ☹ But where should I put my cronjob? In the /etc/cron.d directory like in Ver. 13.x or directly in the crontab? Another question, how setup the cron daemon to run at startup? Thanks for the hint about cron running or not ☺ Joern Von: DevCentral Community Antworten an: Reply to DevCentral <0-1uqb5lh5rbnjoh.1rs1y8b7vmj96b5p.v837wuo38g2obvbt@m59xqeapnfh7v5nz.sylntfjh1l1263lb.0-hxqveae.na84.chatter.salesforce.com> Datum: Dienstag, 7. Januar 2020 um 11:52 An: "Oltmann, Jörn" Betreff: Niels van Sluis answered you: Crontab entry LTM Version 15.x not running Does the crond service run? Try: systemctl status crond What does logging show? Try: journalctl -u crond.service [https://devcentral.f5.com/ncsphoto/hmpm0h2mcimBkWKO762KIOOFQtgZMJk1MUi6nOmUOybQy58Gu1TG2fefJ-o6JSgX?fromEmail=1]<> Niels van Sluis<> Does the crond service run? Try: systemctl status crond What does logging show? Try: journalctl -u crond.service [cid:image001.png@01D5C552.69DF4E10] or reply to this email Replying to [https://devcentral.f5.com/img/userprofile/default_profile_45_v2.png?fromEmail=1]<> Joern Oltmann<> asked a question. Tuesday, January 7, 2020 2:38 AM<> Crontab entry LTM Version 15.x not running Hi @all, I updated out LTM BIG-IP VE from Ver. 13.x to 15.x. But now my cron entry for backup the Certs and ucs files are not running anymore. In Ver. 13 I had a file located under /etc/cron.d/f5backup with the following content: SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=test@abc.de HOME=/var/tmp 2 0 * * * root /bin/bash /root/create_backup_bigip_v11.sh 1>/var/tmp/create_backup.log 2>&1 But on Ver. 15.x the cronjob is not running Also an entry with crontab -e is not working 2 0 * * * /root/create_backup_bigip_v11.sh Someone an idea? [https://devcentral.f5.com/ncsphoto/hmpm0h2mcimBkWKO762KIOOFQtgZMJk1MUi6nOmUOybQy58Gu1TG2fefJ-o6JSgX?fromEmail=1]<> Niels van Sluis<> Does the crond service run? Try: systemctl status crond What does logging show? Try: journalctl -u crond.service Tuesday, January 7, 2020 2:52 AM<> You're receiving emails when someone "Comments on my posts." To change or turn off DevCentral email, log in<> as joern.oltmann@visable.com.dc2user. Are notifications about this post getting annoying? Reply to this email with the word " mute ". devcentral.f5.com | Seattle, WA Corporate HQ 401 Elliott Avenue West Seattle, WA 98119 [DevCentral]
      • Niels_van_Sluis's avatar
        Niels_van_Sluis
        Icon for MVP rankMVP

        Hi Joern,

         

        The crond should be started automaticaly. You can verify if it is enabled with the command 'systemctl status crond.service'. For example see the image below, and notice the 2nd line. The crond.service is enabled, and the vendor preset is enabled.

         

        It seems that you can use the /etc/cron.d directory or the root crontab directly.