Forum Discussion
Marcus_59536
Nimbostratus
Sep 03, 2009iRUle to check current pool member and show if its up.
I currently can see if the current pool is up and name, but I can't see the pool server IP until I actually manually make the F5 make a LB decision.
How can I make that decision within/...
hoolio
Cirrostratus
Jan 11, 2010You can save a bit on parsing the pool name, IP and port:
test
set selectedpool "pool_1/192.168.12.1:80"
replace this:
scan [split [getfield $selectedpool " " 1] "/"] %s%s poolname addrport
scan [split $addrport ":"] %s%d addr port
with this:
scan $selectedpool {%[^/]/%[^:]:%s} poolname addr port
log sample
puts "$poolname $addr $port"
pool1 1.1.1.1 80
Aaron
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
