Forum Discussion
err tmm[11662]: 01220001:3: TCL error:
We have 2 LTM boxes in our organization, on which we have done the upgrade from 10.2.4 HF7 to 11.4.1 HF5. On the previous version we have implemented a Irule for a specific client, Which is not working in the upgraded version. We are getting below error in LTM: -
Error log
Nov 16 10:04:11 seallb02 err tmm[11662]: 01220001:3: TCL error: /Common/vodafoneit_irule - can't read "::vodafoneit_users": no such variable while executing "class lookup [HTTP::username] $::vodafoneit_users"
Please also find the Irule we have configured.
Irule
when HTTP_REQUEST { binary scan [md5 [HTTP::password]] H* password
if { [class lookup [HTTP::username] $::vodafoneit_users] equals $password } {
log local0. "User [HTTP::username] has been authorized to access virtual server [virtual name]"
Insert iRule-based application code here if necessary
} else {
if { [string length [HTTP::password]] != 0 } {
log local0. "User [HTTP::username] has been denied access to virtual server [virtual name]"
}
HTTP::respond 401 WWW-Authenticate "Basic realm=\"Secured Area\""
}}
7 Replies
- Brad_Parker
Cirrus
https://devcentral.f5.com/wiki/iRules.class.ashx, "Note that you should not use a $:: or :: prefix on the datagroup name when using the class command (or in any datagroup reference on 9.4.4 or later). In v11, using $::datagroup_name will result in a TCL runtime error and a reset being sent to the client!"
- Brad_Parker
Cirrus
was this helpful?
- Brad_Parker_139
Nacreous
https://devcentral.f5.com/wiki/iRules.class.ashx, "Note that you should not use a $:: or :: prefix on the datagroup name when using the class command (or in any datagroup reference on 9.4.4 or later). In v11, using $::datagroup_name will result in a TCL runtime error and a reset being sent to the client!"
- Brad_Parker_139
Nacreous
was this helpful?
- Ganesh_Garg
Nimbostratus
Thanks for the information.. Can you also let me know how the Irule should be(Syntax)?
- Brad_Parker
Cirrus
Like Jie said, remove $::, but I would add the partition to help with consistency and efficiency. /Common/vodafoneit_users if it's in Common
- JG
Cumulonimbus
Try just removing "$::" and see how it goes, assuming there is no issue with partition.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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