Is there a way to generate and download the SCF through iControl?
We are currently using iControl to get configuration information from the BigIP systems, but would prefer to get the scf file instead of all the raw configuration files. I have looked through the iControl SDK for reference to the SCF, but cannot find any.
You can upload/download arbitrary files on the file system with the ConfigSync::upload_file and download_file methods. Target directories are subject to the subdomain restrictions on the iControlPortal.cgi process as defined in the /etc/subdomain.d/usr.local.www.iControl.iControlPortal.cgi configuration file on the BIG-IP.
Wow, looks like there isn’t an API that wraps the “bigpipe export” command. I’ll have to double check on that but for now you might be out of luck on the creation of the single config files.
You could workaround it by having a cron job to create the file for you. Or if you wanted to get really creative, configure an iRule that will log an entry to syslog when uri /exportconfig is sent that will trigger a backup action, then delay before making the icontrol call.