Forum Discussion
TMSH command to add irule
- Aug 22, 2019
You don't need to write a shell script, you can use the 'edit' feature in tmsh.
For example, if you wanted to add an iRule to all of your virtual servers you could do the following
tmsh edit ltm virtual all
This bring up the vim editor, so you can use find and replace to add a new iRule to all your virtual servers with one line
:%s/rules {/rules {\r\tnew-irule/g
You can run the "list" function to get the list of the existing irules attached to a VS, and then add the new irule to the list and then attach to the VS.
- bjorg235Aug 22, 2019Altocumulus
HI JG,
Thanks for your reply
Yes you are right for 1 VIP. But I need to add for 300 VIPs.
I am planning for a shell script
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