Forum Discussion
Irule to Run a tmsh command
Absolutely, but be warned that
-
The management shell where TMSH runs doesn't have the same memory/CPU capacity as TMM, so performing a TMSH command per client request would very quickly overwhelm the box.
-
You have to be very careful that any "bridge" that you create between the data and management plains cannot be used against you, where a user can execute arbitrary commands on the system.
-
And most important, it's just generally not a best practice thing to do.
With these warning out of the way, you have a few options:
-
You can configure a Syslog-ng facility to launch a shell command (via /etc/syslog-ng/syslog-ng.conf)
-
You can create a user_alert.conf element that looks for a specific syslog message and executes a shell command or script
-
If running 11.4 you can use an iCall that's a more robust form of the user_alert.conf technique.
These are all "one-way" bridges to the management plain in that you don't expect to recieve a response. There are others ways to create a bidirectional bridge, but the above stated warnings would be much more critical.
Recent Discussions
Related Content
* 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