Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
Answers

downloading a ucs remotely without using bash?

I'm trying to create and download a ucs via icontrol so we can have on-demand backups however i've run into a roadblock - I can't seem to figure out how to download a ucs.

Here's how I'm creating the ucs:

curl -v -sk -u admin:password https://hostname.com/mgmt/tm/sys/ucs -H 'Content-Type: application/json' -X POST -d '{"command":"save","name":"blah.ucs"}'

I can see in the UI that it's been created however I haven't found any documentation about how to actually download the ucs. Anyone have an idea about how to do this via curl or otherwise?

0
Rate this Question
Comments on this Question
Comment made 06-Dec-2016 by patleen79 0

Hi,

you can add a script that move UCS in the file hosting section of the F5. so you can download it after.

Pat

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

You can either use SSH to get the file, or use the iControl System.ConfigSync.download_configuration(). I wrote a perl example that illustrated how to use the file chunked APIs in the System.ConfigSync interface in the Perl Config Sync CodeShare sample.

You will likely need the iControlTypeCast.pm package as well for the script to work.

If you look in the iControl CodeShare I also wrote a PowerShell version of this sample.

I ran your curl command to create the .ucs and then this for the Perl code and the file was downloaded locally.

$ perl ConfigSync.pl bigip.joesmacbook.com 443 admin admin download joe.ucs

Hope this helps...

-Joe

0
Comments on this Answer
Comment made 24-Jun-2015 by Stanislas Piron 10464
Your solution use iControl SOAP. The initial question was using iControl REST. What is the iControl REST request to download UCS Archives?
0
Comment made 24-Jun-2015 by Nik 270
i was really hoping for rest as well, i believe icontrol rest is the api that's new/current/maintained/not-going-away, right? i don't want to get screwed into using something that will be deprecated at some point.
0
Comment made 26-Jun-2015 by Joe Pruitt 6270
Ok, from your first question, you asked if there was anyway to download the configuration. You used REST as your example for creating the UCS archive but I wasn't aware you wanted to only use REST. As far as I know there isn't a way to access file system objects with the REST interface. I'll have to dig in, but I don't think so. We have 1000's of customers with mission-critical automation functions based on our SOAP interfaces and we aren't going to leave them high and dry. We are focusing REST as our main future interface, but SOAP isn't going away any time soon...
0
Comment made 29-Jun-2015 by Stanislas Piron 10464
BigIQ can backup manage devices configuration, is it possible to centralise archive files on it? As BigIQ request BigIP with REST iControl, I thought this feature was available.
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Just to verify - there is no way to download a UCS file via a REST API call, correct? Even with version 12?

Thanks!

0
Comments on this Answer
Comment made 29-Aug-2016 by HariV 0

Any update on this ?

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Is there any update on this? Thank you.

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

It is possible to download via REST, but only from the /shared/images folder. So you should first move the file there with POST to /mgmt/tm/util/bash and then download the file using GET to /mgmt/cm/autodeploy/software-image-downloads using the content-range headers as has been showing in iControl Article https://devcentral.f5.com/articles/demystifying-icontrol-rest-part-5-transferring-files

0