Forum Discussion
Thiyagu
Cirrus
Apr 26, 2021F5 LTM command options to get the name of pool from the name of the host
Hello All, Hope you all doing good. I'm working on a search options to get the pool name from the provided host name from all partition. From the below command I'm finding the pool name but along w...
jaikumar_f5
Noctilucent
Apr 26, 2021What suggested may work if its on the Common partition, because cut only works from bash. Not from inside tmsh. Also it will still give you the partition name cut -d " " -f3.
Well in your case, its a partition - where TESTING is the partition name.
Try this to get the pool name alone,
tmsh -q -c "cd /; list ltm pool one-line recursive" | grep pool-TEST | awk '{print $3}' | cut -d "/" -f2Well yes you can still use the cut twice, one using " " as delimiter, then use "/" as delimiter.
Also if you are doing some auditing, then refer the codeshare to export the config.
Hope this helps.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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