Forum Discussion
Nik
Oct 29, 2012Cirrus
list pools a node is in via tmsh
before i write a wrapper script for tmsh does anyone know if there's a simple way to find out what pools a single member is in?
- Oct 29, 2012
the prompt was getting in the way of the remainder of the commands executing. to combat i did this:
echo y | tmsh list ltm pool|grep -B 20 10.5.72.109 | grep "ltm pool"|awk '{print $3}'
works great now!
phuzzie
Aug 23, 2013Nimbostratus
I would recommend using the "one-line" parameter to help ensure you don't get false positives due to the vagaries of configuration lengths.
tmsh -q list ltm pool one-line | grep -E '($node_hostname|$node_ip)' | awk '{ print $3 }'
- isuru_jayaweeraDec 31, 2022Nimbostratus
Great!!! this works in tmsh.
list ltm pool one-line | grep "address 192.168.10.12"
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