This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Scheduled reboot?

Hi all.  I have several HA clusters (active/passive) of UTM 425's, and I've noticed that they really benefit from a daily reboot, or switchover from master to slave unit, more precisely.  Is there a way to schedule this?  They run Linux, so I automatically thought of a cron job, but is that possible?
TIA,
Brian


This thread was automatically locked due to age.
Parents
  • To cause a failover every morning at 4:30AM, add the following to /etc/crontab-static (should survive everything but a factory reset or re-install from ISO):

    30 4 * * * root /usr/local/bin/ha_daemon -c takeover


    To reboot instead, use:

    30 4 * * * root /usr/local/bin/reboot


    Next, make the same changes as root on the Slave.  To gain access to the command  line on the Slave:

    ha_utils ssh


    Finally, to force the config daemon to rewrite /etc/crontab including the new line, change one of the settings on the 'Configuration' tab in 'Management >> Up2Date', [Apply], change it back and [Apply].

    Cheers - Bob
    PS I share teched's curiosity.
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • To cause a failover every morning at 4:30AM, add the following to /etc/crontab-static (should survive everything but a factory reset or re-install from ISO):

    30 4 * * * root /usr/local/bin/ha_daemon -c takeover


    To reboot instead, use:

    30 4 * * * root /usr/local/bin/reboot


    Next, make the same changes as root on the Slave.  To gain access to the command  line on the Slave:

    ha_utils ssh


    Finally, to force the config daemon to rewrite /etc/crontab including the new line, change one of the settings on the 'Configuration' tab in 'Management >> Up2Date', [Apply], change it back and [Apply].

    Cheers - Bob
    PS I share teched's curiosity.
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
No Data