Forum Discussion
Check if iRule is used
Is is possible to check from the command line if one iRule is applied and where?
Thank you in advance.
2 Replies
- What_Lies_Bene1
Cirrostratus
more /config/bigip.conf | grep -C 5 irule_name should work. The -C 5 shows the 5 lines before and after any line that contains the rule_name text, you might need to increase the value to actually see a VS name if it's applied to any. Obviously you'll always get one hit/match on the iRule configuration itself.
There may be a better way using tmsh but I can't check right now. - Arie
Altostratus
"list recursive virtual rules internal" gives you a list of all the virtuals and the rules assigned to them. You can run "grep" on the list-command, but I haven't tried "awk" on it yet.
However, you could save the the output of "list recursive virtual rules internal" and run grep/awk on it seperately.
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