crontab
5 TopicsBIG-IP Auto backup configure and send SCP/SFTP using crontab
Prerequisite: Secure Copy Protocol server (SCP) server. BIG-IP CLI Access- recommened root user. Configuration Steps: Step#1: Login BIG-IP cli and generate ssh key pair. #ssh-keygen Step#2: Push the id_rsa.pub key to remote scp server. So that without password we can login. ssh-copy-id scp_user@<remote-scp-ip> #ssh-copy-id -i /root/.ssh/id_rsa.pub scpnet@10.1.1.10 Now you can check ssh public key authentication working by tring ssh login. ssh scpnet@10.1.1.10 Now test that public key authentication working. Simply do ssh on scp server: ssh scp_user@scp_ip If it's login remote scp server without password now good to go next step. Step#3: Make directory where the backup will stored. mkdir /var/ucs Step#4: Set schedule through crontab. crontab -e Step#5: After open cron file click i for insert and paste backup taking command. 0 1 * * * tmsh save /sys ucs /var/ucs/$(/bin/hostname).ucs && scp /var/ucs/$(/bin/hostname).ucs scp_user@<scp_server_ip>:/home/scpnet/F5/DC_F5_Node_02/$(/bin/hostname)-$(date +\%Y-\%m-\%d).ucs For save click ESC :wq Step#6: Now verfiy the crontab by crontab -l Note: This is the simplified 😊 version of below two article. I am tried to simplify and straightforward guide. https://my.f5.com/manage/s/article/K13418 https://my.f5.com/manage/s/article/K1345469Views0likes0CommentsCrontab 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?1.1KViews0likes4CommentsCrontab for backups - Entries not running
Trying to configure a cron-based daily backup for a vCMP guest, running v13.1.1. As root, using crontab -e, I've added the following lines: 27 8 * * * /usr/bin/tmsh save sys ucs config1.ucs 29 8 * * * /usr/bin/scp /var/local/ucs/config1.ucs user@server:/backups/config1.ucs After exiting, I've verified the changes have saved. Logs reflect that a change has been made. These jobs never happen based on the timestamp of the backup not changing, nor is either job recorded in the logs. I can manually run the same command, and they work successfully. Any help is appreciated.Solved1.8KViews0likes22CommentsCronjob that checks every 15 min if there is no APM active session, than disable the virt.
Hello there, My goal is to check every 15 minutes if there is no active APM session , if not, disable the virt. i thought i will have a bash script that i can call from crontab with the timing: 0,15,30,45 * * * * /var/tmp/disablevirt and check if there is an active connections with snmpwalk: snmpwalk -Os -c public -v 2c localhost apmPaStatCurrentActiveSessions | grep PROFILENAME if VALUE is equal to 0, run this: tmsh modify ltm virtual virt_NAME disabled else echo "Users are still connected." Thanks for the help.389Views0likes2CommentsNeed a scheduled reboot of my LTM
I am planning for a scheduled restart of my Big IP LTM (ver: BIG-IP 12.0.0 Build 3.0.654 Hotfix HF3) every Friday midnight at 12.30. I am trying to accomplish this by executing the below command: crontab -e 30 0 * * 6 /usr/bin/bigstart restart But it does nothing. Could you please help?338Views0likes1Comment