Forum Discussion

Robert_Reznicek's avatar
Robert_Reznicek
Icon for Nimbostratus rankNimbostratus
May 03, 2010

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!

 

 

 

2 Replies

  • 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