Forum Discussion

bjorg235's avatar
bjorg235
Icon for Altocumulus rankAltocumulus
6 years ago
Solved

TMSH command to add irule

Hello Team

 

I need to add syslog irule to all the VIPs in f5. Already all VIps has more than 2-3 irules each. If I execute modify ltm virtual <> rules { syslog_rule } it is repalcing existing rules. Is there any way via tmsh command I can simply append new irule .Please help

 

 

 

  • 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

6 Replies

No RepliesBe the first to reply