Forum Discussion
jaikumar_f5
Apr 26, 2021MVP
What 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 "/" -f2
Well 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.