Forum Discussion
mariana_kirova_
Dec 10, 2018Nimbostratus
list pools by name
Hello, how can I list the names of all pools containing let's say "qa" in their name. Thanks!
wlopez
Dec 10, 2018Cirrocumulus
From tmsh:
For pools on the default partition (/Common):
list ltm pool | grep qa
For pools on all other partitions:
list ltm pool /*/* | grep qa
- mariana_kirova_Dec 10, 2018Nimbostratus
works great, thanks!tmsh list ltm pool | grep "ltm pool" | gawk '{print $3}'
This one however doesn't work well when I am matching something that is part of the pool's settings (for example "user" is being matched by
) so it will display all my pools:session user-disabled
(tmos) list ltm pool | grep user
Display all 1253 items? (y/n) n
- wlopezDec 10, 2018Cirrocumulus
This would give you all the properties for all pools and filter for only the lines that include the pool names and the lines where the string 'user' shows up in the configuration.
From tmsh:
For pools on the default partition (/Common):
list ltm pool all-properties | grep 'ltm pool\|user'
For pools on all other partitions:
list ltm pool /*/* all-properties | grep 'ltm pool\|user'
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects