Forum Discussion

Billy_chuang_16's avatar
Billy_chuang_16
Historic F5 Account
Jun 25, 2008

Global Variable and session variable in a LTM iRule

Hi,

 

 

How do I set a Global Variable that a Sinlge iRule can reference when triggered by different time ?

 

eg. I would like to do a new connection per second limit.

 

 

 

Furthermore, How do I set a Global Variable that mulitple iRule can reference ?

 

 

Is there any example for reference ?

 

 

Thanks.

 

 

Billy

2 Replies

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    At the start of your iRule, you set a variable... e.g.

     

     

    when CLIENT_ACCEPTED {

     

    set tmm_auth_ssl_cc_ldap_sid 0

     

    set tmm_auth_ssl_cc_ldap-done 0

     

    }

     

     

    from the _sys_auth_ssl_cc_ldap iRule (9.3.1).

     

     

    As for variables that persist between iRules... I'm not sure if they're available or not (IIRC there was some discussion recently, so they may be). However you could always use a stats profile.

     

     

    H

     

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    There is a document on DC that talks about variables. Check it out here - Click here. Towards the end it talks about global variables in particular.

     

     

    Colin