Hello, I’m currently using an iRule, on a Viprion 2400 running 11.4.0 HF2, that is handling a large amount of SNAT’d traffic with a data-group. For some reason, I am unable to see any SNAT statistics when using the “show /ltm snat” or “show /ltm snatpool”. I am also unable to see SNAT stats in “Overview >Statistics > Local Traffic >Statistics Type (and select SNATs in the drop-down menu)” section. Do SNAT statistics only show up when using SNAT automap or SNAT Pools under the VS configuration? If so, any suggestions on collecting SNAT Statistics when using the SNAT statement in an irule? Thank you.
iRule Example: ltm rule SNAT-test { when CLIENT_ACCEPTED { if {[class match [IP::client_addr] equals snat-test]} { snat [class match -value [IP::client_addr] equals snat-test] } else { snat none } } }
The “show ltm snat” command show statistics for SNAT objects. You don’t use one, you use a so-called intelligent snat - you set the snat by address in your rule.
Another option is modifying the irule to log stats and using the custom stats profile. Although if you find that the software behaves unexpectedly by not logging stats the way it’s supposed to, feel free to open a support case.