Forum Discussion
Auto UCS Backup using SolarWinds NCM
Hi,
I am trying to setup auto UCS backup for F5 and using SolarWinds NCM. Now, I am able to create a script in NCM which successfully creates the UCS file locally in F5 device. Now need help on how to make that file transfer to remote server in that same script retaining the filename format. Can anyone help?
script-
tmsh save /sys ucs ${SysName}_${Date}.ucs
${Delay:120}
Thanks
1 Reply
- BramsBytes
Cirrus
It looks like you'll be in an expert (bash) shell while executing this command. If so you could use the methods below
Method 1 - from F5 to host
Use scp from the box to a remote server, this way you'll push it from the F5 towards your NCM server, but that one does need to have SSH enabled (on the NCM server). You can do it like this:
scp /var/local/ucs/${SysName}_${Date}.ucs <remote host>:/destination/folder/${SysName}_${Date}.ucsMethod 2 - from host pull from F5
Add a second job on the NCS server to connect using SCP to download the file from the F5. The command will than look like:
scp ${F5-HostName}:/var/local/ucs/${SysName}_${Date}.ucs /local/folder/${SysName}_${Date}.ucsBoth methods assume that ${SysName} and ${Date} are variables that are set by NCM, same goes for the ${F5-HostName} I added in the second command. You might need to fix this to match the true command from NCM. But I don't have SolarWinds NCM available to check this exact behavior.
Just trying to give you some pointers on what you can do from the F5 side of things.
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