Forum Discussion

Steve_Brown_882's avatar
Steve_Brown_882
Historic F5 Account
Feb 16, 2011

pyControl download_file

Has anyone used the config sync download file functionality in python. I have gotten the command to work as follows, but I am not really sure what I need to do to get the resulting data into a file on my machine...

 

 

 

b.System.ConfigSync.download_file(file_name = "/var/local/ucs/backup.ucs", chunk_size = 65536, file_offset = 0)

 

  • Steve_Brown_882's avatar
    Steve_Brown_882
    Historic F5 Account
    Just getting back to testing this out, it works great! I can't wait to tie this in with the backup portion of my script.
  • Jason: thanks for the clean-up, and codeshare post. I'll add this to the utils module for the next pyControl release.

     

    -Matt Cauthorn