Forum Discussion
exec tmsh command using user_config script
Hi,
we have implemented active / passive load balance between 2 servers A=Active B=Passive using priority groups.
it works fine as all traffic (persistent traffic ) goes to A , when A goes down traffic went to B.
the problem is when A becomes UP the old traffic (which is persistent to B ) will continue in B ! we have to delete connections (tmsh) or manually close the connection from the server itself to move the old connections to A.
we have tried the below script so when server A became up execute command delete sys connection but it does't work!!
alert BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_UP "Pool /Common/ATM_SW_TEST_ATM member /Common/ATM_SW_TEST_01:0 monitor status up" {
exec command="/usr/bin/tmsh delete sys connection ss-server-addr SERVER_B_IPADDRESS"
}
is there any syntax error ?
1 Reply
- cjunior
Nacreous
Hi,
If is provided one server at a time, why do you need persistence? The persistence will take the request back to the server B. I see no problem in your code snippet unless the object names are incorrect and the SERVER_B_IPADDRESS is not the IP address instead.
I do not know about this name "BIGIP_MCPD_MCPDERR_POOL_MEMBER_MON_UP" already be used in other place, maybe you could change it too.You could test your implementation like this way:
/bin/logger -p local0.notice "Pool /Common/ATM_SW_TEST_ATM member /Common/ATM_SW_TEST_01:0 monitor status up"Regards.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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