Forum Discussion
shan_83900
Nimbostratus
Jun 17, 2009list of active members in BIG-IP 9.3.0
How can I get a list of active members in a pool in BIG-IP version 9.3.0.
I cannot use active_members -list .
shan_83900
Nimbostratus
Jun 18, 2009Thanks CB and Aaron!!
I am not sure what additional information you want?
Check this out if, this is something you are looking for:
BIG-IP LTM 6400 (VFNQDKG-QZDJYZG)
BIG-IP LTM (VTELNYB-NTACBUI)
* Add Compression 5 Mbps
* Add SSL 100 TPS
Related to my question:
I want to select next active member from current pool, if, response for a request is not in 2XX or 3XX.
So I select next active member and redirect request to next active member.
This is the iRule, I wrote to before I figured that I cannot use list option with active_members:
when HTTP_RESPONSE {
if { [HTTP::status] starts_with "2" or [HTTP::status] starts_with "3" } {
} else {
set query [HTTP::header value Referer]
log local0. "query: $query"
set propertyName [URI::query [HTTP::header value Referer] "propertyName"]
log local0. "propertyName: $propertyName"
log local0. "active members: [active_members -list [LB::server pool]]"
set picked [lindex [active_members -list [LB::server pool]] 0]
log local0. "picked: $picked"
set host [lindex $picked 0]
log local0. "host: $host"
set port [lindex $picked 1]
log local0. "port: $port"
set url "http://$host:$port/pageNotFound.action"
log local0. "url: $url"
if { $propertyName ne "" } {
HTTP::redirect "$url?propertyName=$propertyName"
} else {
HTTP::redirect "$url"
}
}
}
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