Is there any tool available to write Irules

I would like to know how to learn writing complex Irules and is there any tool available with F5 which is used to write or edit or analyze Irules.

Do you know the iRule Editor?

Yes I did heard about the Editor tool and hence looking forward to know how can I use it and how to get it installed..

Yes I did heard about the Editor tool and hence looking forward to know how can I use it and how to get it installed..

It’s available in download area: https://devcentral.f5.com/s/articles/iRule-Editor-Download

Ok I got it downloaded and now I have the zip file. Do i need to install any .net framework for this. Also which file to pick friom the zip location..

I have no idea regarding the requirements. It simply worked for me.

You need to unzip and install it. I guess it doesn’t required any .net framework. Instead you need to connect your F5 Device with this I rule editor(click on File button to connect). Once you are good to connect with F5 Device you can create your own Irule.

Not sure I f I can get some help on this irule:

I have a Irule as below:

when HTTP_REQUEST { set uri [HTTP::uri] }

when HTTP_RESPONSE priority 400 {

if { not ($uri starts_with "/cip/SpotfireWeb/AjaxService.asmx/NeedsRefresh") } {
            set lat [clock seconds]
            if { not ($uri starts_with "/imcadminhome/services/userSessionServerPing") } {
                 HTTP::cookie insert name "PD-L-LAT" value $lat path "/" domain ".ironmountain.com" 
                 HTTP::cookie secure "PD-L-LAT" enable
                 log local0. "\[HTTP::cookie \"cookie\"\]: [HTTP::cookie "cookie"]"
            } 
            HTTP::cookie insert name "PD-L-LAT" value $lat path "/imcadminhome" domain ".ironmountain.com" 
            HTTP::cookie secure "PD-L-LAT" enable
            log local0. "\[HTTP::cookie \"cookie\"\]: [HTTP::cookie "cookie"]"
 }

}

This iRule is to delete all session cookies from browser so that browser doesnt remember anything about old session. We have a /pkmslogout.html page that currently has javascript running on it to delete session cookies but we trying to achieve that throught the irule so that once we logout from the application , all session cookies get expired. Also I am trying to log it in the log file but only seeing below logs:

cat /var/log/ltm | egrep PD-L-LAT-no-heartbeat-admin-iRule-Modified

Nov 25 09:39:52 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie “cookie”]: Nov 25 09:39:52 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie “cookie”]: Nov 25 09:39:52 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie “cookie”]: Nov 25 09:39:52 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie “cookie”]: Nov 25 09:39:53 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie “cookie”]: Nov 25 09:39:53 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie “cookie”]: Nov 25 09:39:53 kan-qa-vf5-a info tmm1[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie “cookie”]: