Forum Discussion
Parveez_70209
Nimbostratus
Feb 04, 2014How to Apply Irule Through CLI: Idea is to Share the tmsh script to create a Batch script which Windows Team can work edit accordingly
Hi Team,
The below is the Irule which we apply for the maintenance page which we applied through GUI, Kindly assist in letting know how can we apply through CLI,. This we need to give it to Applica...
Kevin_Stewart
Employee
Feb 04, 2014I don't know yet that you can actually create an iRule on the command line, within the single tmsh create command. One workaround is to create the iRule first and then pipe it to the tmsh create command. Example:
printf "when HTTP_REQUEST { log local0. \"here\" }" > test-rule
tmsh create ltm rule my-test-rule `cat test-rule`
Then to apply it to a virtual server:
tmsh modify virtual my-virtual rules { my-test-rule }
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