How do I create a list of VIPs using a particular irule?

My organization uses an irule on multiple VIPs. I need to confirm which VIPs the irule is assigned to. I know I can view this info via the Network Map but I need the info in the form of a list in a .txt

You would have to try something like this:

(tmos.ltm) list virtual rules

From the above list you should be able to grep/sed/awk for the right output.

try this from bash, just insert partial/full rulename to filter on and get a list of VS names that use the irule,

cheers

tmsh -q -c "cd /; list ltm virtual recursive rules" | awk 'BEGIN {RS="ltm"} /'rulename'/ {print $2}'

Try this:

tmsh list virtual one-line | grep irulename | awk '{print $3}'

tmsh list ltm recursive virtual rules

This gives you a break down of the iRules attached to the VIP.