Forum Discussion

teun_91296's avatar
teun_91296
Icon for Nimbostratus rankNimbostratus
Mar 11, 2014
Solved

iApp elements in iControl (bigsuds)

I have two LTM boxes running BigIP 11.5 on which I configured several iApps. Now I'd like to use iControl to check the pool/node status, statistics, enable and disable nodes, etc. However, I can't get a list of the iApps and pools configured. Here's what I tried using the (awesome!) bigsuds library:

bs = bigsuds.BIGIP(hostname="my_ltm_box", username="my_username", password="some_pass")
print bs.Management.ApplicationService.get_list()
print bs.LocalLB.Pool.get_list()        

I would expect at least the first, but preferably also the second print out a list of items. But both commands return an empty list (I currently don't have any pools configured normally, only through iApps, though when I add one it gets listed).

To make it even a bit more confusing, the listing of nodes works (both for normally configured nodes as for nodes configured in an iApp):

print bs.LocalLB.NodeAddressV2.get_list()

Am I missing something? How can I find out which iApps are configured and more importantly, how can I find the pools and possibly other elements related to these iApps, since they don't seem to be available through the regular API calls.

  • Have you tried to set the active folder to "/" (default is "/Common") and to enable recursive queries?

     

2 Replies

  • Have you tried to set the active folder to "/" (default is "/Common") and to enable recursive queries?

     

    • teun_91296's avatar
      teun_91296
      Icon for Nimbostratus rankNimbostratus
      Thank you for your reply! Enabling recursion solves my problem. So for completeness: add bs.System.Session.set_recursive_query_state("STATE_ENABLED") To the code in my question.