Forum Discussion
CLI commands help !!
Hi Guys
Can you please assist in following 2 tasks for HA pair of LTM devices:-
1 - what is the command to check when last configuration backup was taken ? Its not automated at the moment. It has be done manually. Also is there any way we can automate it by running a command ?
2 - what is the command to check when last configuration backup was taken ?
Thanks
1 Reply
- Ryannnnnnnnn
Altocumulus
Hey mate,
I'm not aware of any built in function to take ship backups to a remote location. We use a cron job with the following bash script:
!/bin/sh -x b config save /var/tmp/LTM_backup export a=`date +"%y%m%d"` export aa=$HOSTNAME.$a.ucs export b=/var/tmp/$aa mv /var/tmp/LTM_backup.ucs $b tar -cf /var/tmp/certs.tar /config/ssl export ff=$HOSTNAME.$a.certs.tar export f=/var/tmp/$ff mv /var/tmp/certs.tar $f export c=$HOSTNAME.$a.crontab export cc=/var/tmp/$c cp /etc/crontab $cc export MName=1.1.1.100 export Log=/var/tmp/log.bigip export UserName=xxxx export UserPassword=xxxx export Machine1f2=$aa export Machine1f3=$c export Machine1f4=$ff ftp -nvd ${MName} 14 <<-END 1>&2 > ${Log} user ${UserName} ${UserPassword} bin passive put ${b} ${Machine1f2} put ${cc} ${Machine1f3} put ${f} ${Machine1f4} quit END rm -f ${b} rm -f ${cc} rm -f ${f} RTN_CODE=$? exit $RTN_CODEThe script needs updating, but hopefully it gives you an idea 🙂
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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