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!
AceDawg_204810
Dec 10, 2018Cirrus
From the command line, this works as well if you just want the names of the pools:
tmsh list ltm pool | grep "qa" | gawk '{print $3}'
The following will list out all of the pool names on your system:
tmsh list ltm pool | grep "ltm pool" | gawk '{print $3}'
- gdoyleDec 10, 2018Cirrostratus
The
command doesn't seem to work for my (I received the following:gawk
).Syntax Error: "gawk", grep is currently the only filter that is supported
Also, if you have multiple partitions you will have to change your directory into the relevant partition. There may be a way to do a global search for all partitions, but I don't know that off hand.
- AceDawg_204810Dec 10, 2018Cirrus
Gawk can be executed if you are not in the tmsh shell. You have to be in the bash shell.
For partition support, use:
tmsh list ltm pool /partition/* | grep “ltm pool” | gawk ‘{print $3}’
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