Forum Discussion
linq936_303436
Nimbostratus
Dec 18, 2016What built in TCL commands are disallowed in iRule?
Is there a list of TCL 8.4 built in commands which are disallowed in iRule?
Thanks!
Kai_Wilke
MVP
Jan 09, 2017Hi Philippe,
keep in mind that the list above is also containing certain TCL commands (e.g. [interp], [pid], etc.) which are still disallowed by LTMs iRule syntax checking which is enforced during iRule savings. Those commands would require special iRule codings techniques to not expose those commands during iRule savings.
E.g.:
The iRule below wont save:
when RULE_INIT {
log local0.debug "The PID of the TMM[TMM::cmp_unit] process is: [pid]"
}
The iRule below will work fine:
when RULE_INIT {
set cmd {
log local0.debug "The PID of the TMM[TMM::cmp_unit] process is: [pid]"
}
eval $cmd
}
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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