Fortinet black logo

CLI Reference

execute scripting-shared-table

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 (tableName):(tableInfo).

Select either of the following options:

  • <VS-name> — Enter a virtual server name. All Lua shared tables from this specified virtual server name will be listed.

  • any — Instead of a specified virtual server name, the command will loop over all virtual servers to list Lua shared tables from any virtual server.

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 (key):(value). To minimize lock errors and process delays, only one table will be shown at a time.

Select either of the following options:

  • <table-name> or all — A table name is required to precede the virtual server name. You can either specify a table name or select "all" to apply the command to all tables.

  • <VS-name> or any — A virtual server name is required. You can either specify a virtual server name or select "any" to apply the command to any virtual server.

delete

Deletes Lua shared tables from all the processes of the applicable virtual server.

Select either of the following options:

  • <table-name> or all — A table name is required to precede the virtual server name. You can either specify a table name or select "all" to apply the command to all tables.

  • <VS-name> or any — A virtual server name is required. You can either specify a virtual server name or select "any" to apply the command to any virtual server.

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:

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 (tableName):(tableInfo).

Select either of the following options:

  • <VS-name> — Enter a virtual server name. All Lua shared tables from this specified virtual server name will be listed.

  • any — Instead of a specified virtual server name, the command will loop over all virtual servers to list Lua shared tables from any virtual server.

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 (key):(value). To minimize lock errors and process delays, only one table will be shown at a time.

Select either of the following options:

  • <table-name> or all — A table name is required to precede the virtual server name. You can either specify a table name or select "all" to apply the command to all tables.

  • <VS-name> or any — A virtual server name is required. You can either specify a virtual server name or select "any" to apply the command to any virtual server.

delete

Deletes Lua shared tables from all the processes of the applicable virtual server.

Select either of the following options:

  • <table-name> or all — A table name is required to precede the virtual server name. You can either specify a table name or select "all" to apply the command to all tables.

  • <VS-name> or any — A virtual server name is required. You can either specify a virtual server name or select "any" to apply the command to any virtual server.

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: