Forum Discussion
SNAT statistics and iRule for selecting SNAT IP
- Dec 24, 2013
Is this a bug or expected behaviour?
i understand it is expected because you manually specify snat address.
If expected, can I somehow update the statistics from within this iRule somehow?
you may try istats.
Introduction to iStats Part 1: Overview by Colin Walker
https://devcentral.f5.com/articles/introduction-to-istats-part-1-overview.UrlpWm2jYdU
Is this a bug or expected behaviour?
i understand it is expected because you manually specify snat address.
If expected, can I somehow update the statistics from within this iRule somehow?
you may try istats.
Introduction to iStats Part 1: Overview by Colin Walker
https://devcentral.f5.com/articles/introduction-to-istats-part-1-overview.UrlpWm2jYdU
- Torsten_93742Jan 14, 2014
Nimbostratus
Thanks this looks promising, I will try to get write some irule to gather istats about snat selection. As soon as it is finished I'll post it here. - Torsten_93742Apr 11, 2014
Nimbostratus
Just for the sake of completeness: Finally I did not use istats because we have splunk in place here and for this to work I did add the following line to the iRule to log: log local0. "EXCHANGE_2010_SNATPOOL snat_ip=[lindex $static::snpool [eval {expr $packed_address % [llength $static::snpool] }]]" Then in Splunk I use the following search string to create a graph for the distribution of the connections per SNAT IP: index=f5 EXCHANGE_2010_SNATPOOL NOT lindex | timechart count by snat_ip Alternatively this can be used if you need a percentage: index=f5 EXCHANGE_2010_SNATPOOL NOT lindex | top snat_ip
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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