Forum Discussion

rcwizard_324111's avatar
rcwizard_324111
Icon for Nimbostratus rankNimbostratus
Jun 23, 2017

What tmsh command do I use to view pool members and their addresses

I have been using

tmsh list ltm pool
and using grep, awk, and sed but it is more tedious than I would like. Is there a more specific command?

If there is no command, is there a reference place I can look at to see the commands that do work? Like a man page for

tmsh list

6 Replies

  • P_K's avatar
    P_K
    Icon for Altostratus rankAltostratus

    I found this from an old post longtime ago.. Try and let me know

    tmsh show ltm pool Pool_name members field-fmt |grep "ltm\ pool\|addr\|monitor-status"
    
  • That was awesome. I just modified a bit to show the port no also for being more precise result.

     

    basically we can dig this script as below steps. 1. tmsh show ltm pool pool_name 2. tmsh show ltm pool pool_name members 3. tmsh show ltm pool pool_name members field-fmt 4. tmsh show ltm pool pool_name members field-fmt|grep "ltm\ pool|addr|monitor-status"

     

    run each commands one after another and you will understand the complete scenario.