Forum Discussion
iControl Get-F5.LTMPool fails to return any pools that are part of an iApp
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com