Forum Discussion
Mick39_201768
Nimbostratus
May 22, 2015How to add iRules using CLI
Hi, team,
I'm looking for the command to add iRule, since I have to apply about 40 same iRule to Virtual servers.
I tried command which I learned from Q&A below, but it delete current iRules. ...
Seth_Cooper
Employee
May 22, 2015You could still automate this but for each virtual you would have to run a list command and then parse the output.
for all in `tmsh list ltm virtual VIRTUAL_NAME rules | egrep -v "\{|\}"`
> do
> echo $all
> done
firepass_assign
This is a sample that will allow you to loop through the current rules assigned.
When you have the current values then append the new iRule on the list and then run your modify command with all the iRules specified.
Seth
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