Forum Discussion

KT_271103's avatar
KT_271103
Icon for Nimbostratus rankNimbostratus
May 01, 2017

Query Pool names

Hello,

 

I tried below command to get list of pool names using node IP. Able to retrieve corresponding pool names but additional few pool names are falling. Anyone explain why ? Any modification need for below command ?

 

list ltm pool | grep -B 20 x.x.x.x | grep ltm pool

 

4 Replies

  • It could be a formatting issue. If you are looking to check multiple F5 devices for multiple IP addresses, you can check this script.

     

  • What do you mean Formatting issue ? I checked single IP address in only one corresponding F5 device.

     

    What it means "-B 20" ?

     

  • Hi,

    with

    list ltm pool
    command, you can add the
    one-line
    option to return each object in one line... (awk is not supported in TMSH, you must leave TMSH to execute this command)

    tmsh list ltm pool one-line | grep x.x.x.x | awk '{print $3}'