Forum Discussion
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}’