Forum Discussion
downloading a ucs remotely without using bash?
- Nov 28, 2018
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
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
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