Forum Discussion
Jim_Moore
Mar 28, 2014Nimbostratus
Jason thanks for looking at this. I am using the LB::status but I'm thinking there is a parsing difference with the way the b command and the tmsh command is presenting the data.
Below is the iRule snip referencing the LB:status.
Generate the status page with either all content or content from a single pool. if { ([HTTP::uri] eq "/status") || (([HTTP::uri] starts_with "/status?") && ($query) && [info exists manualpool]) } {
set timestamp "[clock format [clock seconds]]"
set response "StatusPool NameMemberPort"
set count 0
foreach { selectedpool } [class get pool_member_status_list] {
set display 1
if { [catch {
scan $selectedpool {%[^/]/%[^:]:%s} poolname addr port
switch -glob [LB::status pool $poolname member $addr $port] {