Forum Discussion
Andy_Pelletier_
Nimbostratus
Sep 18, 2008Script to automate config backup on LTM 9.2
I would like to create/import a script and use cron to automate the creation of a .ucs file on my F5-LTM 9.2 devices.
Within the script, I would like for the newly generated file to created with the date stamp in the file name.
Finally, I would like the script to then FTP the new .ucs file to a remote ftp server.
I see that when I SSH to the device, and run "config save filename" the result is different from running the same command in the Console "BIGpipe" window.
From SSH, it launches a "wizard" to walk thru the setup of the device. From Console BIGpipe, it successfully creates the .ucs file.
Can someone tell me how to create the .ucs file while SSH'd to the device, please.
Best regards.
6 Replies
- JRahm
Admin
the GUI assumes the leading keyword "bigpipe". If you ssh in as root instead of the shell, you need b config save filename - Andy_Pelletier_
Nimbostratus
Thank you for the quick response and helpful info. - fkwong_42880
Nimbostratus
Would you be willing to share the CRON job that you created? This is also something I'm looking to do, but don't know alot about scripting. - Deb_Allen_18Historic F5 AccountHere are some places to start:
- dwertz_104302
Nimbostratus
This is a script that I have been using for some time now. I placed it in /etc/cron.weekly and it creates a date stamped tarball of the .UCS file and FTPs it to a remote server. Been running it for well over 2 years. The only issue is when you upgrade you will have to put the script back in /etc/cron.weekly. - JRahm
Admin
I put this out in the wiki. Thanks dwertz for contributing to the community!
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