Forum Discussion
shefys_208480
Nimbostratus
Jul 09, 2015Disable ICMP echo reply for the VIP based on the number of active members in the pool
Hi,
Based on the info about user_alert.conf I tried to come up with the redundancy solution for my needs. I made a script which will turn off ICMP echo reply for the anycast VIP when there is less ...
shefys_208480
Nimbostratus
Jul 09, 2015Updated script:
Define the correct variables per application
POOL_NAME = set the correct pool name for the application
VIP_MONITOR_ADDR = IP address of the application Virtual Server VIP.
MIN_ACT = minimum number of active members in the pool to declare pool active
POOL_NAME="web4-internal-pool"
VIP_MONITOR_ADDR="172.25.40.99%4004"
MIN_ACT="3"
CUR_ACT=`tmsh show ltm pool $POOL_NAME members | grep "Current Active" | cut -d: -f2 | xargs`
if [ $CUR_ACT -lt $MIN_ACT ]; then
echo "$(date): FAIL- Number of active nodes for pool $POOL_NAME is $CUR_ACT which is less than minimum active $MIN_ACT" >> /root/${POOL_NAME}-script.log;
tmsh modify ltm virtual-address ${VIP_MONITOR_ADDR} icmp-echo disabled
else
echo "$(date): PASS- Number of active nodes for pool $POOL_NAME is $CUR_ACT which is equal or greater than minimum active $MIN_ACT" >> /root/${POOL_NAME}-script.log;
tmsh modify ltm virtual-address ${VIP_MONITOR_ADDR} icmp-echo enabled
fi
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects