Monty_Sinha_229
Jan 23, 2017Nimbostratus
iRule to down and up Pool members
Hi All,
I am trying to build an iRule for our Application Admins to be able to input a string on the uri of a vserver, and down the node they input, however I am not able to get a simple LB::down command working, doing a test with the below, it does not be causing the node to show as unavilable. Please note that we are using route domains, hence I have tried with a %3 aswell but does not work. I know that the if command words as I get the log entry but the LB::down does not work.
when HTTP_REQUEST {
if {[scan [HTTP::uri] "/down/%s" server] == 1} {
log local0. "LB::server 10.42.136.221"
LB::down pool ems_testing member 10.42.136.221 80
log local0. "URI: [HTTP::uri] MATCHED. server=$server"
} else {
}
}
I am running build 11.6.1
Thanks Monty