Forum Discussion
Cronjob for saving UCS file not working
Hi I created a cronjob for saving the UCS file with the date. Below is what i have done. But it is not working. Since this is the fist time am trying, am not sure if am missing something. "ucs-daily" is the name of the file
[root@f5:Active:In Sync] etc more crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO="" HOME=/
run-parts01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
**0 7 * * 5 ucs.daily
[root@f5:Active:In Sync] cron.daily ls -l ucs*
-rwx------ 1 root root 83 Feb 10 04:49 ucs-daily
[root@f5:Active:In Sync] cron.daily more ucs-daily
!/bin/bash$DATE=
date "+%m_%d_%y"
tmsh save /sys ucs /var/local/ucs/$DATE.ucs
[root@f5:Active:In Sync]
1 Reply
- Leonardo_Souza
Cirrocumulus
Have a look in this solutions:
https://support.f5.com/csp/article/K13418
You can have something like:
00 3 * * * tmsh save /sys ucs /var/local/ucs/${HOSTNAME}-$(date "+%m_%d_%y").ucs
Recent Discussions
Related Content
* 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