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

mElhoussini_204's avatar
mElhoussini_204
Icon for Nimbostratus rankNimbostratus
Sep 20, 2015

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

  • 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.