Forum Discussion
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
- f51
Cumulonimbus
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?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com