Is is possible to check from the command line if one iRule is applied and where?
Thank you in advance.
Is is possible to check from the command line if one iRule is applied and where?
Thank you in advance.
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.
“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.