Forum Discussion

boo_radley_1114's avatar
boo_radley_1114
Icon for Nimbostratus rankNimbostratus
Jul 18, 2014

Easiest path for programaticallychanging a TCP profile?

Hi folks -- just looking for a general direction here, and I know things change quite a bit between versions.

 

I have an F5 LTM that's going to be running 11.4.1. I need some automation to change the TCP profile on a couple virtual servers to a profile that's site specific. I've written some java programs that use the iControl API's in the past, but that seems like overkill to simply change a profile from tcp_wan_optimized -> tcp_lan_optimized on a handful of VS.

 

It looks like the command line supports 'sed' -- is there any reason I can't just write a simple UNIX shell script to modify the appropriate lines in the bigip.conf, and then execute a 'b load'? Or do I need to use the TMSH shell? I will need to execute this remotely, too...

 

Thx!

 

2 Replies

  • I believe it to be NOT best practice to hand modify the bigip.conf, and probably completely unsupported, but it will work, and I have done it. Just back it up before you touch it, and be aware they could be a service impact when you reload the config.

     

    A more supported method is to use merge. See https://devcentral.f5.com/articles/big-ip-and-merge-file-configuration-changes. bigpipe is deprecated in 11.4, you will have to use the tmsh equivalents. ( https://devcentral.f5.com/wiki/tmsh.bigpipemappings.ashx)

     

    • boo_radley_1114's avatar
      boo_radley_1114
      Icon for Nimbostratus rankNimbostratus
      Thanks Mimlo -- I hadn't known about the 'merge' method, and that should do exactly what I want.