Forum Discussion
mvo_65102
Nimbostratus
Jan 30, 2017Native tmsh/bash commands via REST API
Hi all,
is there a way to execute native tmsh or bash commands using the REST API?
As long as there are not all configurations controllable by REST i would like to execute some commands directly...
Deb_Allen_18
Oct 18, 2006Historic F5 Account
Hi Stephen --
You can issue a conditional TCP::close (at the end of the response in the 2nd rule) to prevent subsequent requests on that connection, or return / event disable (in the relevant events) to prevent processing of all or specific parts of the subsequent iRules.
Either method of connection control would use the following approach: If some specified condition occurs within the first rule, set a variable as a flag in HTTP_REQUEST in the first rule where you are currently using "return" indicating that the condition was seen, then in the second rule, use the value of that variable to control whether the return, event disable, or close is processed.
HTH
/deb
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