Forum Discussion
Use of APM mcget variables in iRule?
Does "ACCESS::session data get" work?
https://devcentral.f5.com/wiki/iRules.ACCESS__session.ashx
you can't use mcget in irules, but "ACCESS::session data get" does mostly the same thing
Tried this earlier:
irule using "ACCESS::session data get -license tmm.license.global_connectivity"
- passes syntax check by GUI
- gives warning in the ltm log (when saving the irule):
Warning generated : /Common/auth_logging_irule:6: warning: [The following errors were not caught before. Please correct the script in order to avoid future disruption. "invalid argument tmm.license.global_connectivity"575 65][ACCESS::session data get -license tmm.license.global_connectivity]
- gives run time TCL error:
TCL error: /Common/auth_logging_irule - bad option name (line 1)variable lookup failed (line 1)Illegal argument (line 1) (line 1) invoked from within "ACCESS::session data get -license tmm.license.global_connectivity"
Seems that the "-license" option is not allowed. Trying without the "-license" goes syntactically ok and without run time errors, but returns empty or null value. Using the mcget in VPE gives correct CCU max value.
Recent Discussions
Related Content
* 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