Forum Discussion

Philipp_Stadler's avatar
Philipp_Stadler
Icon for Nimbostratus rankNimbostratus
Jun 10, 2013

session table/subtable listings

Hi all,

 

I'm playing around with session tables / subtables to build an admin Interface for listing table entries. Now I've some questions regarding table listing:

 

Is there a possibility to list all entries in main table by iRule?

 

Is there a possibility to print a list of all subtables by an iRule?

 

Is the table structure (columns) the same for every subtable or can I manipulate it?

 

 

many thanks,

 

Philipp

 

 

5 Replies

  • The following answers are subject to change in upcoming releases.

     

     

    Is there a possibility to list all entries in main table by iRule? Assuming you're talking about keys in the main table, the table keys command will produce a list.

     

     

    Is there a possibility to print a list of all subtables by an iRule? No. You need to know the names of the subtables. I would recommend keeping a separate table that stores the names of the other subtables.

     

     

    Is the table structure (columns) the same for every subtable or can I manipulate it? It is completely dynamic.

     

  • Hi,

     

    thanks for the fast response, but for main table I see no possibility, because:

     

    "-subtable" is mandatory for table keys

     

    (see https://devcentral.f5.com/wiki/irules.table.ashx)

     

     

  • Good catch. Using the main table alone is somewhat synonymous with using the older session command.
  • you mean I should get listing of main table by

     

    table keys -subtable session

    ?

     

    btw: good workaround with maintaining extra subtable for a listing of all subtables!

     

  • I meant that using the main table is similar to using the older session command in that they both lack the functionality available using subtables. So no, you cannot list the values in the main table using the table keys command.