How to initialize global variable on standby unit

Hi there,

I have some global variable initialized within a RULE_INIT event. This variable is visible on active unit, however when I make a standby unit active, this variable is not visible. Is it possible to propagate this variable to the standby unit somehow please?

Thanks a lot!

variables are not synced to standby systems. However, if you use the session command (or table if on v10.1+) that data is mirrored, and so you should be set.

I tested using the session table for a globally accessible variable in v10.0.x. But I didn’t think to test this for mirroring. Maybe it would work for you?

http://devcentral.f5.com/wiki/default.aspx/iRules/CMP\_v10\_compatible\_counters\_using\_the\_session\_table.html

If you try it, could you reply back?

Thanks, Aaron