For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Nizar's avatar
Nizar
Icon for Altostratus rankAltostratus
Jun 16, 2025
Solved

CLI Command to Identify Wide IPs Using L4 vs L7 Monitors

Hi Everyone,

I would like to ask if there is a CLI command or script that I can run on my BIG-IP GTM to grep the following:

Which Wide IPs are still using pools with Layer 4 health monitors (e.g., tcp, tcp-half-open)?
Which Wide IPs are already using pools with Layer 7 health monitors (e.g., http, https)?

Any guidance or assistance would be greatly appreciated.

Thank you very much.

  • Hi Nizar​ 

    Try below script:

    echo "=== Wide IPs using L4 Monitored Pools (tcp, tcp-half-open) ==="

    for pool in $(tmsh list gtm pool one-line | grep -E 'monitor (tcp|tcp-half-open)' | awk '{print $3}'); do

    echo "Pool: $pool" 

    tmsh list gtm wideip one-line | grep "pool $pool"

    done

     

    echo

    echo "=== Wide IPs using L7 Monitored Pools (http, https) ==="

    for pool in $(tmsh list gtm pool one-line | grep -E 'monitor (http|https)' | awk '{print $3}'); do

    echo "Pool: $pool"

    tmsh list gtm wideip one-line | grep "pool $pool"

    done

     

    Reference:  K000149309: How to display a list of wide IPs with corresponding pools and pool member IP addresses?

1 Reply

  • VGF5's avatar
    VGF5
    Icon for Cumulonimbus rankCumulonimbus

    Hi Nizar​ 

    Try below script:

    echo "=== Wide IPs using L4 Monitored Pools (tcp, tcp-half-open) ==="

    for pool in $(tmsh list gtm pool one-line | grep -E 'monitor (tcp|tcp-half-open)' | awk '{print $3}'); do

    echo "Pool: $pool" 

    tmsh list gtm wideip one-line | grep "pool $pool"

    done

     

    echo

    echo "=== Wide IPs using L7 Monitored Pools (http, https) ==="

    for pool in $(tmsh list gtm pool one-line | grep -E 'monitor (http|https)' | awk '{print $3}'); do

    echo "Pool: $pool"

    tmsh list gtm wideip one-line | grep "pool $pool"

    done

     

    Reference:  K000149309: How to display a list of wide IPs with corresponding pools and pool member IP addresses?