Forum Discussion
Eric_Frankenfie
Dec 16, 2013Nimbostratus
Logging Variables
I have an iRule which performs the following:
1. Read the contents of the XML through an XML profile
2. Sets the variable 'id' to $XML::values($I)
3. If the value equals an entry in the data group, s...
Kevin_Stewart
Dec 16, 2013Employee
I take it you're doing this in a 10.x or early 11.x version? Your code works in 11.4, so I'd suggest some additional logging:
when XML_CONTENT_BASED_ROUTING {
log local0. "here"
for { set i 0 } { $i < $XML::count } { incr i } {
set id $XML::values($i)
log local0. "Current ID = $id"
if { ( [matchclass $XML::values($i) equals DataGroup_by_Org] ) } {
log local0. "Sending to pool_A"
pool pool_A
} else {
log local0. "Sending to pool_B"
pool pool_B
}
}
}
when LB_SELECTED {
log local0. "here: [LB::server addr]"
log local0. "3189: orgName $id sent to [LB::server addr]"
}
Can you report back what you get in the logs?
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