Forum Discussion

ianmercer_37853's avatar
ianmercer_37853
Icon for Nimbostratus rankNimbostratus
Apr 20, 2007

Using iControl to archive BigIP config to a text file under version control

Has anyone done this?

 

 

Essentially we would like to be able to keep track of all configuration and rule changes in our version control system. To do that we'd like to dump the configuration to a text file and check it into SubVersion. We are already copying the iRules over manually so we have a history of who changed what and when, but we'd like to automate the process and capture *all* of the configuration data. The output needs to be one or more text files so we can use diff to see the changes easily, ideally one text file for each VIP, pool, monitor, iRule, ....

 

 

Before I spend any time putting something together like that I wanted to check see if someone had already done it.

 

 

Ian

1 Reply

  • You can get a very large portion of the configuration data from the configuration files (/config/bigip.conf, /config/bigip_base.conf). You can use the iControl System::ConfigSync::download_file() method to download the files. This will give you two files that you can easily diff. If you want the entire configuration in a binary package, you can use the System::ConfigSync::save_configuration() method to save a .im package and use the System::ConfigSync::download_configuration() method to download it.

     

     

    -or-, you could just use the relevant iControl methods to access the relevant configuration for the objects you are concerned with and create the file manually with your client software.

     

     

    -Joe