Forum Discussion
Steven_Williams
Nimbostratus
Aug 19, 2014Backing up F5 UCS file with solarwinds NCM
I am trying to accomplish an f5 backup using, eventually, solarwinds NCM module, but working on the script to use. I want to backup the UCS file and offload it to a SCP/SFTP server.
Some things ...
mimlo_61970
Cumulonimbus
Aug 19, 2014to specifically answer the question on how to name the file, from a bash shell(not a tmos shell) you can do:
tmsh save /sys ucs /var/local/ucsbackup/config_backup-`date +%Y%m%d`.ucs
Where %Y%m%d is the date format. see the man page on date for more options, the above is YYYYMMDD, or 20140819 for today.
As far as the rest, what precisely is the process? Are you wanting to have the F5 create the UCS, push it to Solarwinds via SFTP, and then cleanup? Does solarwinds support key-based authentication?
Steven_Williams
Nimbostratus
Aug 19, 2014ran into another issue:
[user@f5:Active] ~ tmsh save /sys ucs /var/local/ucsbackup/config_backup-`date +%Y%m%d`.ucs
Saving active configuration...
[user@f5:Active] ~ ls /var/local/ucsbackup/
config_backup-20140819.ucs config_backup.ucs
[user@f5:Active] ~ sftp f5backup@10.247.160.208
Connecting to 10.247.160.208...
f5backup@10.247.160.208's password:
sftp> put /var/local/ucsbackup/config_backup-`date +%Y%m%d`.ucs /
File "/var/local/ucsbackup/config_backup-`date" not found.
sftp>
I guess I would just have to move the whole folder to get around not having to specify the exact name of the file?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
