Forum Discussion
Brandon_High_10
Nimbostratus
Dec 23, 2004"detach" command
I'm trying to use the "detach" command in an iRule and receive the following error when entering it:
line 25: [undefined procedure: detach] [detach]
Is there another way to achieve the same effect, or will I have to wait for a fix from F5?
- bl0ndie_127134Historic F5 AccountThe error code indicates that you may be using the wrong syntax. Try this out.
ONECONNECT::detach [enable | disable]
- Brandon_High_10
Nimbostratus
I'm not trying to use the ONECONNECT::detach. I'm trying to use the detach command listed on p. 13-9 of the LTM_config_guide.pdf:if { $FINISHED } { return }
- drteeth_127330Historic F5 AccountDue to a conflict with ONECONNECT::detach, this functionality was moved to the event command. Try this:
event disable all
- Brandon_High_10
Nimbostratus
Where can I find more info on the event command? It's not in the LTM_config_guide.pdf or the 9.0.x release notes. - drteeth_127330Historic F5 AccountThe event command will be documented in a future release. However, I reviewed the code, and I don't believe that it will discontinue processing handlers for the same rule event. In fact, I don't see a better way of doing this than what you have done. I have filed a change request so this will be addressed in a future release. Thanks!
- Brandon_High_10
Nimbostratus
Will there be a "detach" or "event disable all" command added back into the 9.x tree? Our current work around works, but isn't exactly elegant. - unRuleY_95363Historic F5 AccountYes, the "event disable" command has been fixed in 9.0.5 (TBR anyday now). The previous command did mostly work except that if you had multiple rules, subsequent event scripts from other rules were still evaluated and the event was only disabled from a new trigger. The command now completely stops processing for any subsequent scripts.
event disable - disable the current event from being evaluated again. event disable - disable a specific event from being evaluated. event disable all - disable all events from being evaluated. event enable - (re)enable a specific event. event enable all - (re)enable all events.
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