iCall script not working
Hi guys ,
i have a scenario with a pool with two members ,Server A and Server B with priority group activated .
Server A - 192.168.16.80 pga 15
Server B 192.168.18.211 pga 10
i created an iCall script and what i`m trying to accomplish is that when Server A will be down i want Server B to have a higher priority group so when Server A is back online it will be join pool as standby.
1) i created an alert /user_alert.conf
alert server1-down "Pool /Common/TeststanbyNode /Common/192.168.16.80:80 monitor status down." {
exec command="tmsh generate sys icall event change_pga context { { name ip value 192.168.16.80 } {name port value 80} }" }
2)created script
sys icall script /Common/pool_member1_down {
app-service none
definition {
exec modify ltm pool TeststanbyNode members modify { 192.168.18.211:80 {priority-group 20}}
}
description none
events none
}
3)Handler