A simple example:
when RULE_INIT {
set ::i 0
}
when DNS_REQUEST {
log local2. “Global variable $::i”
}
the /var/log/gtm loged the error as follow:
011a7001:3: TCL error: Rule test - can’t read “::i”: no such variable while executing “log local2. “Global variable $::i””
why??
hoolio
2
Apparently, RULE_INIT isn’t triggered in GTM. Click here for some detail. It’s noted in CR95407.
As a workaround, you could use a local or global variable in DNS_REQUEST.
Aaron
HI,
RULE_INIT is not implemented for GTM but will be in the next release