Forum Discussion
Hamish
Jan 14, 2010Cirrocumulus
RULE_INIT not firing
Has anyone else ever had problems with RULE_INIT not firing for some iRules?
I have a 10.1.0 6400 and when editing an iRule with the iRule editor, I get an error from mcpd on sa...
hooleylist
Jan 14, 2010Cirrostratus
What kind of TCL error did you see get to cause the problem? I just tested a simple rule like this, but didn't see a problem:
when RULE_INIT {
log local0. "\[clock seconds\]: [clock seconds]"
Bad "command"
test
}
Added a log statement to RULE_INIT
Jan 14 16:31:03 local/tmm info tmm[8462]: Rule rule_init_rule : [clock seconds]: 1263486663
Jan 14 16:31:03 local/tmm1 info tmm1[8463]: Rule rule_init_rule : [clock seconds]: 1263486663
Added a bad command "test" after the log statement
Jan 14 16:31:13 local/test-3600-2 err mcpd[3462]: 01020066:3: The requested rule (rule_init_rule) already exists in partition Common.
Jan 14 16:31:13 local/test-3600-2 err mcpd[3462]: 01070151:3: Rule [rule_init_rule] error: line 4: [undefined procedure: test] [test]
Removed the bad command "test" after the log statement
Jan 14 16:32:03 local/test-3600-2 err mcpd[3462]: 01020066:3: The requested rule (rule_init_rule) already exists in partition Common.
Jan 14 16:32:04 local/tmm info tmm[8462]: Rule rule_init_rule : [clock seconds]: 1263486724
Jan 14 16:32:04 local/tmm1 info tmm1[8463]: Rule rule_init_rule : [clock seconds]: 1263486724
Aaron
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