Forum Discussion

msaunders's avatar
msaunders
Icon for Nimbostratus rankNimbostratus
Jun 17, 2016

iControlREST method to list LTM Load Balancing methods?

I would like to pull a list of Load Balancing methods from the LTM in order to populate an HTML Select list.

 

I don't see such a method using either iControlREST or BigIP::iControl

 

Is there such a method available?

 

Thanks

 

2 Replies

  • Based on my limited experience with iCR, I don't think this is feasible at this point. May be in future code versions, this may be available.

     

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    A possible workaround until that function becomes available in a future release:

    For v11.6.1, the LB methods are listed in "/config/bigip_script.conf" and you can get them by:

     grep -A 18 -C 1 'define choice lb_method default "least-connections-member" display "xxlarge" {' /config/bigip_script.conf | tail -18
    

    For v12.1.0, they are in /usr/share/defaults/app_template_base.conf, and you can get them by running:

     grep -A 2 -C 1 'define choice lb_method display "xxlarge" tcl {' /usr/share/defaults/app_template_base.conf | tail -1
    

    You can create a script containing the command and run it via iControlREST. See: https://devcentral.f5.com/questions/can-icontrol-rest-delete-a-connection .