Forum Discussion

Micka_61352's avatar
Micka_61352
Icon for Nimbostratus rankNimbostratus
Jan 25, 2011

Scheduled Failvoer

Hi all,

 

 

Is it possible to schedule automated HA failovers on units say every 30days or 3months on LTM version 10.1.0 or must it be done manually.

 

 

Regards,

 

Michael.
  • You could probably setup a cron job to issue a failover command.

     

     

    Any familiarity with cron or shell scripts?

     

  • Hi Michael,

     

     

    As Chris said, you could script this from crontab:

     

     

     

    http://support.f5.com/kb/en-us/solutions/public/8000/400/sol8430.html

     

     

    Monthly backup

     

     

    The following entry will create a UCS backup once a month on the 1st of the month at 3 a.m.:

     

     

    00 3 1 * * bigpipe config save /var/ucs/.ucs

     

     

     

    You can get the failover status by running 'b fo'. So here's a quick and dirty crontab entry you could use to fail over the active unit once per month:

     

     

    00 3 1 * * if [ "`b fo |awk '{print $2}'`" = "active" ]; then `b fo standby`; fi

     

     

    Aaron