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!
rob_carr
Dec 11, 2018Cirrostratus
This script handles multiple partitions and can have it's output piped to a file for further analysis:
tmsh -q -c 'cd /;show running-config recursive'|awk '/^ltm pool /{capture=1}/^}$/{if (capture==1) {print; capture=0} else {next}}capture' | grep 'ltm pool\|monitor '
You can also run it against an SCF file, by removing the initial tmsh clause and providing the awk expression with an scf file to read.
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