Forum Discussion

3 Replies

  • There doesn't appear to be a way to directly query a persistence type via iRule commands.

    You might be able to leverage 'persist lookup' using if..else logic to check each persistence type returning true for a match.

     

    #pseudo code
    when HTTP_REQUEST {
        if { persist lookup cookie == $cookievalue }{
            log local0. "Persistence type Cookie"
        }
        else { persist lookup simple == $simplevalue }{
            log local0. "Persistence type Simple"
        }
    }

     

     

    https://clouddocs.f5.com/api/irules/persist.html

  • "persist lookup cookie" is not yet implemented according to the article. It would be nice to have a "persist lookup" that returns the current persistence mode.

    • Andrew-F5's avatar
      Andrew-F5
      Icon for Employee rankEmployee

      TimRiker,

       

      You can open a support case with F5 and ask for a feature request to include that functionality.

       

      Best,

      Andrew