Forum Discussion
ltaylor510_5583
Nimbostratus
Sep 18, 2008Perl script to display All BigIP pool members
I have a Perl CGI application in apache that will need a perl script to display all the available elements in one script:
("poolname" "address" "port" "session_state" "priority_group")
...
Posted By Dario on 05/20/2010 07:37 AM
Hi,
found a solution which works:
CLIENT_ACCEPTED {
if { [active_members POOL_NAME] < 1 } {
TCP::respond "HTTP/1.1 302 Found\r\nServer: webserver\r\nLocation: http://URL\r\nAccept-Ranges: none\r\nConnection: close\r\nContent-Length: 0\r\n\r\n\r\n"
TCP::close
}
}
}
Thanks all for the replies.
Dario
Ahh.... It's possible that firefox is waiting for content... Because your original response had a header, and then nothing for response body... Now you're sending a CL header of 0, and an extra EOL... I wonder if it's the extra EOL or the CL header that firefox really wanted...
- Only1masterbla1Mar 22, 2018
Cirrus
You could control status of pool members based on healthcheck strings. Or, out-of-band using API calls. What is it that you are trying to achieve?