on
18-Mar-2015
15:19
- edited on
29-Nov-2023
15:59
by
JRahm
Problem this snippet solves:
This sample goes along with the Tech Tip titled Session Table Control With iRules . It creates an iRules-based HTML application to allow you to view, edit, delete, import, and export your session subtable data.
How to use this snippet:
Apply to a virtual server with session table entries and you can import/export/edit/delete entries.
I found this recently and greatly appreciate the code. It has made monitoring a table very easy. I do have one caution to anyone else using it. The act of refreshing the edit display to see what is in the table, resets the timeout. In my case,. I did not want the observation of the table to reset the time. I added -notouch to the line
foreach key [table keys -notouch -subtable $tname] {
(line 133 above). I also added -notouch to line 135 so it reads
append resp "<td class='tvalue'>[table lookup -notouch -subtable $tname $key]</td>";