Forum Discussion

KD_48848's avatar
KD_48848
Icon for Nimbostratus rankNimbostratus
Oct 07, 2008

Convert iRule from 9.x to 4.x

Need this on a urgent basis.

 

 

Following is the iRule that we have implemented on one of our BigIP running 9.x version:

 

 

=====================

 

when HTTP_REQUEST {

 

if { ([string tolower [HTTP::uri]] eq [ string tolower "/abc/xyz/login.do" ] ) and not ([HTTP::cookie exists "SMSESSION"]) } {

 

HTTP::redirect "https://thisismysite.com/pqr/login.jsp"

 

} else {

 

pool mypool.com

 

}

 

}

 

=====================

 

 

Need to implement the same iRule in one of other BigIP's running 4.x version

 

 

Kindly assist.

 

 

 

 

Thanks,

 

KD.

2 Replies

  • Hi Aaron,

     

     

    Thanks for the reply, but still no luck.

     

     

    Can you just send me a link for iRule manual for version 4.x and 9.x from where i can download it.

     

     

     

     

    Thanks,

     

    KD.
  • You can download manuals from AskF5.com. Here is the main 4.x page:

     

     

    https://support.f5.com/kb/en-us/products/big-ip_4_x.html

     

     

    From there, select your version in the upper right hand corner. The 4.x Rules are described in the Reference Guide.

     

     

    Here is a link to the 4.5.10 version:

     

     

    BIG-IP Reference Guide v4.5.10: iRules

     

    https://support.f5.com/kb/en-us/products/big-ip_4_x/manuals/product/bigip4_5_10ref/BIGip_rules.html

     

     

    Aaron