Forum Discussion

Roderick_Graham's avatar
Roderick_Graham
Icon for Nimbostratus rankNimbostratus
Oct 06, 2016

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

 

4 Replies

  • 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}'

  • tmsh list ltm recursive virtual rules

     

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