Forum Discussion
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
- Kevin_Stewart
Employee
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. - Philipp_Stadler
Nimbostratus
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)
- Kevin_Stewart
Employee
Good catch. Using the main table alone is somewhat synonymous with using the older session command. - Philipp_Stadler
Nimbostratus
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!
- Kevin_Stewart
Employee
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com