# Print GTM pool and loadbalacing method for all pools in GTM

**URL:** <https://community.f5.com/t/print-gtm-pool-and-loadbalacing-method-for-all-pools-in-gtm/73178>\
**Category:** Technical Forums\
**Tags:** application-delivery\
**Created:** [September 29, 2023, 4:16pm UTC](https://community.f5.com/t/print-gtm-pool-and-loadbalacing-method-for-all-pools-in-gtm/73178 "2023-09-29T16:16:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yogipd](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@yogipd](https://community.f5.com/u/yogipd)\
**Post date:** [September 29, 2023, 4:16pm UTC](https://community.f5.com/t/print-gtm-pool-and-loadbalacing-method-for-all-pools-in-gtm/73178/1 "2023-09-29T16:16:26Z")

</div>

Hello,

we are having more than 800 WIP in GTM and I need to print the WIP, and Loadbalacing method for pool members.

example

GTM WIP: [aaa.wip.com](http://aaa.wip.com) (roundrobin), Pool: Prefered( Global avilability)

I need the out put something like this:

aaa.wip.com- Global availability

I tried the following from articles but doesn’t seem to be working

show pool all | grep “pool-lb mode\|Pool:”

tmsh list gtm pool all load-balancing-mode

---

<div class="post-metadata">

**Author:** ![F5\_Design\_Engineer](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/f5_design_engineer/32/2479_2.png) [@F5\_Design\_Engineer](https://community.f5.com/u/F5_Design_Engineer)\
**Post date:** [September 29, 2023, 5:09pm UTC](https://community.f5.com/t/print-gtm-pool-and-loadbalacing-method-for-all-pools-in-gtm/73178/2 "2023-09-29T17:09:26Z")

</div>

Hi&nbsp; @yogipd

I guess you are missing **a** after pool keyword, use the command like this

check if small **a** or capital **A** after pool keyowrd will work.

**tmsh**

**list gtm pool a all load-balancing-mode**

**tmsh show gtm wideip a all detail | grep ‘WideIp\|Destination’**

The following command will find pools with a return to DNS option and print the name of the pools.

**tmsh -c ‘cd /; list gtm pool recursive all-properties one-line’ | awk ‘/return-to-dns/{print $4}’**

**My Other GTM master Commands which i use frequently and keep customizing them based on the requirement and then pul them in excel sheet and then use DATA&nbsp; TAB, and there is one option text to columns**

 ![F5_Design_Engineer_0-1696007195081.png](https://d20hrnpixdzcsd.cloudfront.net/original/2X/0/0094ff71190dadcc14f83e1758062d4db036441c.png)

And use&nbsp; Delimited radio button and run the Wizard to convert F5 Command output text command output to mulitple colums for easy readability.

 ![F5_Design_Engineer_1-1696007250828.png](https://d20hrnpixdzcsd.cloudfront.net/original/3X/2/4/24d63e6ed0a58279e615e9ee65afcef00c270065.png)

**My Other GTM master Commands you can try to get more results of your choice**

bash mode

netstat -na |grep 4353

tmsh list /gtm server all

tmsh list gtm wideip a one-line  
tmsh list gtm wideip aaaa one-line  
tmsh show gtm wideip a detail  
tmsh show gtm wideip a pools  
show gtm wideip a all

tmsh show gtm listener  
tmsh show gtm listener all-properties

tmsh show gtm pool a detail  
tmsh show gtm pool a detail field-fmt  
show gtm pool a members detail  
show gtm pool a members fireld-fmt  
show gtm pool a members field-fmt server

show gtm server all detail  
show gtm server detail virtual-servers  
show gtm server detail virtual-servers field-fmt  
list gtm server addresses virtual-servers

show gtm server detail  
show gtm server detail all

list net self all-properties  
list gtm listener all-properties  
list gtm listener vlans

show sys ip-address all-properties

tmsh show gtm wideip A all detail | grep ‘WideIp\|Destination’

tmsh show gtm all detail | grep -e -i Gtm::Server -e “Server”

show gtm wideip a all detail | grep -e -i -n NAME\_OF\_YOUR\_GTM\_SERVE

show gtm wideip a all detail | grep -i -e Gtm::Pool::A grep -i -e ‘Pool\|Destination’

show gtm wideip a all detail | grep -i -e Gtm::Pool::A grep ‘Pool\|Destination’

show gtm wideip a all detail | grep -i -e Gtm::Pool::A | grep -i -e ‘Pool\|Destination’ grep -i -e ‘Pool\|Destination’

show gtm wideip a all detail | grep -i -e ‘wideip\|Destination’ grep -i -e Gtm::Pool::A grep -i -e ‘Pool\|Destination’

**only one pipe**

show gtm wideip a all detail | grep -i -e ‘wideip\|Destination’ grep -i -e Gtm::Pool::A grep -i -e ‘Pool\|Destination’

show gtm wideip a all detail | grep -i -e ‘wideip\|Destination’ grep -i -e ‘Pool\|Destination’ grep -i -e NAME\_OF\_YOUR\_GTM\_SERVER

show gtm wideip a all detail | grep -i -e ‘wideip\|Destination’ grep -i -e ‘Pool\|Destination’ grep -i -e NAME\_OF\_YOUR\_GTM\_SERVER

show gtm wideip a all detail | grep -i -e ‘^gtm’ grep -i -e ‘wideip\|Destination’ grep -i -e ‘Pool\|Destination’ grep -i -e ‘NAME\_OF\_YOUR\_GTM\_SERVER$’

show gtm wideip a all detail | grep -i -e ‘^gtm’ grep -i -e ‘wideip\|Destination’ grep -i -e ‘Pool\|Destination’ | grep -i -e ‘^NAME\_OF\_YOUR\_GTM\_SERVER$’ = No results

show gtm wideip a all detail | grep -i -e ‘^gtm’ grep -i -e ‘wideip\|Destination’ grep -i -e ‘Pool\|Destination’ grep -i -e ‘\^NAME\_OF\_YOUR\_GTM\_SERVER$’

show gtm wideip a all detail | grep -i -e ‘^gtm’ grep -i -e ‘wideip\|Destination’ grep -i -e ‘\^NAME\_OF\_YOUR\_GTM\_SERVER$’

show gtm wideip a all detail | grep -i -e ‘^gtm’ grep -i -e ‘^NAME\_OF\_YOUR\_GTM\_SERVER$’

show gtm wideip a all detail | grep -i -e ‘^NAME\_OF\_YOUR\_GTM\_SERVER$’

show gtm wideip a all detail | grep -i -e ‘wideip\|Destination’ grep -i -e ‘Pool\|Destination’ grep -i -e ‘\NAME\_OF\_YOUR\_GTM\_SERVER’

show gtm wideip a all detail | grep -i -e ‘wideip\|Destination’ grep -i -e ‘Pool\|Destination’ grep -e -i Gtm::Server -e “Server” grep -i -e ‘\NAME\_OF\_YOUR\_GTM\_SERVER’

show gtm wideip a all detail | grep -i -e ‘wideip\|Destination’ grep -i -e ‘Pool\|Destination’ grep -e -i Gtm::Server -e “Server”

show gtm wideip a all detail | grep -i -e ‘wideip\|Destination’ grep -i -e ‘Pool\|Destination’ grep -e -i Gtm::Server -e “Server” grep -i -e ‘$NAME\_OF\_YOUR\_GTM\_SERVER’

show gtm wideip a all detail | grep -i -e ‘wideip\|Destination’ grep -i -e ‘Pool\|Destination’ grep -e -i Gtm::Server -e “Server” grep -i -e ‘$\*NAME\_OF\_YOUR\_GTM\_SERVER’ -C 2

show gtm wideip a all detail | grep -i -e ‘$\*NAME\_OF\_YOUR\_GTM\_SERVER’ -C 1

show gtm wideip a all detail | grep -i -e ‘$\*15\*’ -C 1

show gtm wideip a all detail | grep -i -e ‘$\*gtm\*’ -C 3 grep -i -e ‘$\*NAME\_OF\_YOUR\_GTM\_SERVER’

show gtm wideip a all detail | grep -i -e ‘$\*gtm\*’ grep -e -i NAME\_OF\_YOUR\_GTM\_SERVER

[gtm pool a (f5.com)](https://clouddocs.f5.com/cli/tmsh-reference/v15/modules/gtm/gtm_pool_a.html)

HTH

F5 Design Engineer

🙏

![HaveahappydayYayGIF (2).gif](https://d20hrnpixdzcsd.cloudfront.net/original/2X/f/fa580329f80f061d0302446a039e531cd1b8b5a0.gif)
