Forum Discussion
shadow82
Jan 04, 2024Cirrus
HowTo disable/enable VServer based on timetable?
Hi! We need to enable a VServer only in business hours. After - it should be disabled. Is there any function (time schedule, iRule, LTM policy rule) or should I go into cron on F5 with commands lik...
zamroni777
Jan 05, 2024Nacreous
as f5 is linux based, you can add these kind of entry to the linux crontab scheduler using crontab -e
0 19 * * * /bin/tmsh modify ltm virtual the_vs_name disabled
0 8 * * 1-5 /bin/tmsh modify ltm virtual the_vs_name enabled
1st line disables the vs every 19:00.
2nd line enables the vs every 8:00 monday to friday
crontab manual:
https://linux.die.net/man/5/crontab
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects