Export configuration settings using Enterprise Command Line Interface (E-CLI)
This release includes significant user interface changes and many new features that are different from the SonicOS 6.5 and earlier firmware. The below resolution is for customers using SonicOS 7.X firmware.
To export the firewall configuration in text format as well as .exp, we have used FTP Filezilla server & Putty tool to demonstrate the below:
test: username / demo
test: password/ demo
X.X.X.X: destination IP address where you would like to dump the configuration
config.txt/ config.exp: name of the file
This release includes significant user interface changes and many new features that are different from the SonicOS 6.2 and earlier firmware. The below resolution is for customers using SonicOS 6.5 firmware.
To export the firewall configuration in text format as well as .exp, we have used FTP Filezilla server & Putty tool to demonstrate the below:
test: username / demo
test: password/ demo
X.X.X.X: destination IP address where you would like to dump the configuration
config.txt/ config.exp: name of the file
The below resolution is for customers using SonicOS 6.2 and earlier firmware. For firewalls that are generation 6 and newer we suggest to upgrade to the latest general release of SonicOS 6.5 firmware.
SonicOS 5.9 introduces a new, more robust, enterprise-level Command Line Interface (E-CLI). This article describes how to export configuration settings using E-CLI.
The CLI can be accessed via Serial cable and SSH.
Global System Commands
The following system commands are global and can be executed from anywhere in the config module.
Command | Description | Command | Description |
Tab key | Tab key aids in completing a command. Displays useful information such as the next option in the command. | end | Exit current mode and return to global configuration mode without saving changes made in the current mode. |
key | The key lists the next command or commands with a short description of each command. For certain commands, the key even displays examples of using the given command. | exit | Exit current mode without saving changes made in the current mode |
q key | The key breaks listing of commands or information. Useful when the output of a command like Show current-config needs to be stopped. | export | Export system status or configuration |
cancel | Exit from the mode without saving changes. | help | Display command help |
clear | Reset functions. | no | Negate a command or set its defaults. |
commit | Save configuration changes. The command commit best-effort will save only valid changes | show | Show system status or configuration. |
diag | Diagnostic functions. |
To be able to export SonicOS configuration settings via CLI, you require a FTP server to be installed and reachable from the SonicWall. You need to ensure read / write permissions for the FTP folder where the firmware is to be downloaded from or uploaded into.
In the new E-CLI, all commands related to FTP have the FTP URL in the form: FTP://username:password@hostname/filename.
EXAMPLE: In the examples below, the username and password is "test". The IP address of the FTP server is 10.10.10.2.
Export System Command can be used to export configuration settings and pending configuration. Configuration can be exported in two formats, SonicOS and CLI.
export current-config sonicos FTP FTP://test:test@10.10.10.2/sonicos.exp
export current-config cli FTP FTP://test:test@10.10.10.2/sonic-cli.wri
export pending-config cli FTP FTP://test:test@10.10.10.2/sonic-cli-pending.wri
See also: