Forum Discussion
Brady_11518
Nimbostratus
Apr 22, 2013irule based pool selection *and* priority group activation?
Hello!
I am using an irule using a switch command with a single virtual server in LTM 11.3 to split traffic between several pools for the same set of hosts.
http://www.abc.com/site1
h...
nitass
Employee
Apr 22, 2013this is mine.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.20.16:80
ip-protocol tcp
mask 255.255.255.255
profiles {
http { }
tcp { }
}
rules {
myrule
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vlans-disabled
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST {
pool foo
}
when HTTP_RESPONSE {
log local0. "client [IP::client_addr]:[TCP::client_port] server [IP::server_addr]:[TCP::server_port]"
}
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
priority-group 2
session monitor-enabled
state up
}
200.200.200.111:80 {
address 200.200.200.111
priority-group 1
session monitor-enabled
state up
}
}
min-active-members 1
monitor gateway_icmp
}
test
[root@ve11a:Active:Changes Pending] config tail -f /var/log/ltm
Apr 23 13:07:06 ve11a info tmm1[8163]: Rule /Common/myrule : client 172.28.19.251:34211 server 200.200.200.101:80
Apr 23 13:07:06 ve11a info tmm[8163]: Rule /Common/myrule : client 172.28.19.251:34212 server 200.200.200.101:80
Apr 23 13:07:06 ve11a info tmm1[8163]: Rule /Common/myrule : client 172.28.19.251:34213 server 200.200.200.101:80
Apr 23 13:07:06 ve11a info tmm[8163]: Rule /Common/myrule : client 172.28.19.251:34214 server 200.200.200.101:80
Apr 23 13:07:06 ve11a info tmm1[8163]: Rule /Common/myrule : client 172.28.19.251:34215 server 200.200.200.101:80
Apr 23 13:07:06 ve11a info tmm[8163]: Rule /Common/myrule : client 172.28.19.251:34216 server 200.200.200.101:80
Apr 23 13:07:06 ve11a info tmm1[8163]: Rule /Common/myrule : client 172.28.19.251:34217 server 200.200.200.101:80
Apr 23 13:07:06 ve11a info tmm[8163]: Rule /Common/myrule : client 172.28.19.251:34218 server 200.200.200.101:80
Apr 23 13:07:06 ve11a info tmm1[8163]: Rule /Common/myrule : client 172.28.19.251:34219 server 200.200.200.101:80
Apr 23 13:07:06 ve11a info tmm[8163]: Rule /Common/myrule : client 172.28.19.251:34220 server 200.200.200.101:80
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