Digi TransPort WR11 User Manual page 495

Hide thumbs Also See for TransPort WR11:
Table of Contents

Advertisement

Configuring Virtual Private Networking (VPN)
  Command line
dbsrvmem <n>
The amount of memory (RAM) the MySQL server cache should use. <n> is specified in multiples of 1k,
such as 10Mb=10240.
To calculate the amount of memory to specify in this parameter:
Note the size of the database file (.csv) that will be loaded into the router memory.
n
Double this value and add 100Kb, for example, if the .csv file is 200Kb, this would make a value
n
of 500Kb for the memory allocation. Use this command: sql 0 dbsrvmem 500.
Load the database file into memory and check the memory allocated and free using the smem
n
command. This will show the memory allocated and left available. Increase the memory in the
dbsrvmem command if required.
dbfile <name>
The name of the .csv file that the router will use to store the table definitions (1st line) and data
records. This file is stored in flash. The router uses it to populate the database stored in RAM on
power-up or when a new file matching this name has just been stored. The dbfile can be populated
with records or be empty except for the definitions line. The dbfile stored in RAM will be populated
from both the dbfile stored in flash and (if configured) via caching items learned from the main SQL
server. The dbfile in flash can then be updated from the dbfile in RAM and saved.
dbname <name>
The name of the backup database in case the main database goes offline. This name must match the
database name in use on the SQL server.
learn <off|on>
When enabled, the router will cache entries learned via the main SQL database in a file stored in RAM.
You can use this file as a backup if the main SQL database going offline. To use learning mode, at least
one column in the .csv dbfile must be marked as a unique key, with the U prefix.
For example, remip is marked as the unique key:
peer i p[ I P] , bak peer i d[ I P] , peer i d[ K20] , pas s wor d[ 20] , our i d[ 20] , r em i p
[ UKI P] , r em m s k [ I P]
Learning mode: saving entries
When using learning mode, the dynamic backup database is stored in RAM. This database is lost if the
router is power-cycled. You can save the database in RAM to flash to over-write the dbfile with the one
in RAM that includes the learned entries or it can be saved to a new file.
To save the dbfile to flash from RAM, use the following command:
sql save 0 <f i l enam e>
Where <filename> is the name of the destination file.
For example, to save the learned database entries to a file called backup.csv:
sql save 0 backup. csv
If there are no learned entries, this command will not create a file. To view the number to learned
entries, use the command sql 0 ?, and in the output, see the section headed Learning info:
Digi TransPort® Routers User Guide
Configure Internet Protocol security (IPsec)
495

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents