Forum Discussion
Billy_chuang_16
Jun 25, 2008Historic F5 Account
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
Cirrocumulus
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_12Historic F5 AccountThere 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
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
