Forum Discussion
3 Replies
Sort By
- Andrew-F5Employee
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" } }
- TimRikerCirrocumulus
"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-F5Employee
TimRiker,
You can open a support case with F5 and ask for a feature request to include that functionality.
Best,
Andrew