Skip to main content
Version: 7.26

import


import​

Type: Command

Runs a script file (.rsc) line by line, for example a configuration made with export. The import adds to the existing configuration and stops at the first line that fails; the lines before it stay applied. See Configuration Management.

ArgumentTypeDescription
file-namefileScript file to run.
from-linenumStarts the import at this line of the file. Works only with verbose=yes; without it, the router warns from-line parameter does not work for non-verbose import and runs the whole file.
verboseenum (no | yes | progress)With yes, prints each line with its number (#line N) before it runs, so the output shows where the import stops. With no, runs the file without printing the lines.
dry-runswitchChecks the file without changing the configuration and reports No syntax errors found in the import file when it finds none. Works only with verbose=yes; without it, the import fails with dry-run parameter cannot be used in non-verbose mode.