Forum Discussion
az1441_7592
Nimbostratus
May 18, 2011Service Unavailable Notification???
Guys I have a VIP on :23 with a 3-node pool bound to it. Each node listening on :23.
My question is this, outside of priority group activation, if all 3 servers are down, can the LTM send a service unavailable notification to the client?
Thanks
7 Replies
- hoolio
Cirrostratus
Something like this?when CLIENT_ACCEPTED { if {[active_members [LB::server pool]] < 1}{ TCP::respond "my service down message" } }
And here are the related wiki pages:
http://devcentral.f5.com/wiki/default.aspx/iRules/active_members
http://devcentral.f5.com/wiki/default.aspx/iRules/lb__server
http://devcentral.f5.com/wiki/default.aspx/iRules/tcp__respond
Aaron - az1441_7592
Nimbostratus
Yes!!Sorry for the noob question..
- hoolio
Cirrostratus
It's a relatively simple iRule, but not such a simple question. Glad that works for you.
Aaron - az1441_7592
Nimbostratus
hoolio,
real quick - this is basically balancing telnet. To return to the client "Service Down" will the above TCP respond suffice? - hoolio
Cirrostratus
I'm not sure what a service down message looks like for telnet. If you need to use binary content in the TCP::respond command, you can follow the steps in SOL7875 and use the binary format command:
sol7875: Certain data may contain values or characters within the ASCII range thar are not printable but need to be processed by an iRule before load balancing or other handling of the data can occur.
http://support.f5.com/kb/en-us/solutions/public/7000/800/sol7875.html
binary format
http://www.tcl.tk/man/tcl8.4/TclCmd/binary.htmM5
Aaron - Hamish
Cirrocumulus
Hmm...
A 'standard' 'service down' message for telnet would be a tcp reset...
H - hoolio
Cirrostratus
That's easy enough as LTM will send a reset if no pool members are available. No iRule needed.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects