Forum Discussion

wrapsbear_30752's avatar
wrapsbear_30752
Icon for Nimbostratus rankNimbostratus
Apr 10, 2017

iControl Get-F5.LTMPool fails to return any pools that are part of an iApp

All of my pools are part of an iApp I can authenticate using Initialize-iControl and I can verify that other functions are working, but Get- doesn't return any pool members.

 

Make absolutely no assumptions about my knowledge, I almost certainly know less than you about any of this; your help is appreciated. :)

 

1 Reply

  • By default the Get- CmdLet will return pools listed in the /Common partition. To retrieve objects located in other partitions/locations, you'll need to use the System.Session commands to change folders or enable recursive query state to query all folders below the current. iApp's store their objects in their own folders so you might want to just do something like this

    $ic = Get-F5.iControl
    $ic.SystemSession.set_active_folder("/");
    $ic.SystemSession.set_recursive_query_state("STATE_ENABLED");
    Get-F5.LTMPool
     or by using the core iControl assembly
    $ic.LocalLBPool.get_list();
    

    To be able to navigate the folder hierarchy, I wrote an article on the topic a while back at iControl 101 - 24 - Folders.

    Hope this helps...

    -Joe