Forum Discussion

Jesse_Mauntel_4's avatar
Jesse_Mauntel_4
Icon for Nimbostratus rankNimbostratus
Mar 08, 2013

Script or other automated object copy

Hey All,

 

At my company we are starting to increase the frequency of performing environment refreshes, and I'd like to have a way to clone these environments in an automated manner. For example, I'd like to be able to say "copy this_data_group to that_data_group", and have all of the objects in the source replace the ojects in the destination data-group (or create the destination, if it doesn;t exist). I've been looking online for a way to do this, but haven't had any luck so far (obviously).

 

I'm open to whatever method will get this to work (native tmsh commands, tmsh commands that are parsed and then redirected to more tmsh commands, iControl, whatever), I just need a little guidance on the best way to approach it.

 

 

Thanks in advance,

 

Jesse

 

1 Reply

  • i am not good in script. anyway, i always use "b merge" (in 9.x/10.x), "tmsh load sys config from-terminal merge" or "tmsh load sys config file merge" (in 11.x) when copies/modifies configuration objects.

    BIG-IP and Merge File Configuration Changes by Michael

    https://devcentral.f5.com/tech-tips/articles/big-ip-and-merge-file-configuration-changes

    root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) load sys config from-terminal merge
    Enter configuration. Press CTRL-D to submit or CTRL-C to cancel.
    ...
    

    hope this helps.