Forum Discussion
Johnmec_45780
Nimbostratus
Mar 30, 2005BIGIP remote config file transfer
Hi !
I hope this has not been asked already..
Is there any way to easily transfer and load bigip main config files (bigip_base.conf and bigip.conf) from a remote host? I mean a way to do it programmatically, using iControl and/or perhaps some other Perl module?
Thanks!
David
- David, The System::ConfigSync interface contains a method to do just this. Take a look at the download_file() and upload_file() methods.
FileTransferContext download_file( in String file_name, in long chunk_size, inout long file_offset ); void upload_file( in String file_name, in FileTransferContext file_context );
- Loc_Pham_101863Historic F5 AccountI'd also add that while we do have methods to save the bigip.conf and bigip_base.conf (ConfigSync::save_configuration), and to transfer these configuration files (ConfigSync::download/upload_file), we don't have a method to actually load these configuration files individually, yet. :-(
- Johnmec_45780
Nimbostratus
Thank you guys for all the info and the fast response! - Johnmec_45780
Nimbostratus
Hi ! - Can you give the exact parameters you are passing? All the code does is send a base64 encoded version of the file data. We have verified that this works with text and binary based files as the content is preserved byte for byte (if you use the API properly). I'll post some sample code in a bit that illustrates the upload_file() and download_file() methods after I test it again with one of the bigip_base.conf files on my system.
- Darn those smilies! I've updated the previous post with corrected text so that the smilies don't show up.
- Johnmec_45780
Nimbostratus
Hi, - Sorry about that. I'll make sure the samples in the SDK get updated.
- Loc_Pham_101863Historic F5 AccountHi David,
- MarkRidao_64126
Nimbostratus
All - quick question. What is the maximum file size that can be sent?
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