Forum Discussion
JCMATTOS_41723
Nimbostratus
Nov 21, 2008Loadbalance using names?
Hello Everyone,
We are trying to loadbalance thru our LTM's using names instead of IP's. We contacted F5 support and they said there might be way using an iRule. Essentially, we are try...
JCMATTOS_41723
Nimbostratus
Dec 01, 2008I applied the irule and tmm/named.conf change and I keep getting this error? And I did restart the tmm...Still no luck! Does this work with 9.4.5? Thx!
Mon Dec 1 11:22:16 PST 2008 tmm tmm[10220] 01220001 TCL error: ExampleDNS CLIENT_ACCEPTED - cant read ::server_ip: no such variable while executing node $::server_ip [TCP::local_port]
iRule:
when RULE_INIT {
set ::hostname "example.com"
set ::max 10
set ::count 0
}
when CLIENT_ACCEPTED {
node $::server_ip 80
incr ::count
if { $::count == $::max } {
set ::count 0
NAME::lookup $::hostname
}
}
when NAME_RESOLVED {
log local0. "NAME_RESOLVED: [NAME::response]"
set ::server_ip [NAME::response]
}
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