execute scripting-shared-table
Use this command to list, show, or delete Lua shared tables.
Syntax
execute scripting-shared-table list {<VS-name>|any}
execute scripting-shared-table show {<table-name>|all} {<VS-name>|any}
execute scripting-shared-table delete {<table-name>|all} {<VS-name>|any}
list |
Lists Lua shared tables based on the applicable virtual server. This will list all table information in the format of Select either of the following options:
|
show |
Shows Lua shared tables based on the applicable "table name" and "virtual server name". This will dump one shared table in the format of Select either of the following options:
|
delete |
Deletes Lua shared tables from all the processes of the applicable virtual server. Select either of the following options:
|
Examples
FortiADC-VM # exec scripting-shared-table list VS1 Printed Table 'all', current entry count: 2. (VS1TableDemo1): (shmkey=1321348 table_size=128 entry_size=2048 mem_limit=20971520) (VS1TableDemo2): (shmkey=1321349 table_size=128 entry_size=2048 mem_limit=20971520) FortiADC-VM # exec scripting-shared-table list any List of applicable VS names: VS1 VS2 VS1: Printed Table 'all', current entry count: 2. (VS1TableDemo1): (shmkey=1321348 table_size=128 entry_size=2048 mem_limit=20971520) (VS1TableDemo2): (shmkey=1321349 table_size=128 entry_size=2048 mem_limit=20971520) VS2: FortiADC-VM # exec scripting-shared-table show VS1TableDemo1 VS1 Printed Table 'VS1TableDemo1', current entry count: 3. (1002): (VS1Value10002) (1003): (VS1Value10003) (1001): (VS1Value10001) FortiADC-VM # exec scripting-shared-table show all VS1 Printed Table 'all', current entry count: 2. (VS1TableDemo1): (shmkey=1321348 table_size=128 entry_size=2048 mem_limit=20971520) (VS1TableDemo2): (shmkey=1321349 table_size=128 entry_size=2048 mem_limit=20971520) FortiADC-VM # exec scripting-shared-table delete VS1TableDemo1 VS1 Shared table 'VS1TableDemo1' is destroyed from VS 'VS1'. FortiADC-VM # exec scripting-shared-table delete all VS1 All shared tables with VS 'VS1' are destroyed. FortiADC-VM # exec scripting-shared-table list any List of applicable VS names: VS1 VS2 VS1: VS2: