Forum Discussion
Jim_Moore
Nimbostratus
Mar 27, 2014Pool Member status page iRule Version 11
I'm trying to get the pool member status page iRule to work using tmsh commands. Everything seems to be working fine but the status for all the members is showing INVALID.
I'm using the Joel Moses...
JRahm
Admin
Mar 28, 2014looks like the scan is expecting the data string to be without the quotes:
% set x {"lp1/192.168.101.20:514",}
"lp1/192.168.101.20:514"
% scan $x {%[^/]/%[^:]:%s} poolname addr port
3
% puts $poolname
"lp1 **wrong!**
% puts $addr
192.168.101.20
% puts $port
514", **wrong!**
so you can either change the bash script to not echo the quotes (best) for each pool/ip/port, or string them off before passing to scan (see below), or update the scan command to account for them.
% set x {"lp1/192.168.101.20:514",}
"lp1/192.168.101.20:514",
% scan [string range $x 1 end-2] {%[^/]/%[^:]:%s} poolname addr port
3
% puts $poolname
lp1
% puts $addr
192.168.101.20
% puts $port
514
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