Upload and Export firmware using Enterprise Command Line Interface (E-CLI)

Description

Upload and Export firmware using Enterprise Command Line Interface (E-CLI)

Resolution

SonicOS 5.9 introduces a new, more robust, enterprise-level Command Line Interface (E-CLI). This article describes how to upload / export SonicOS firmware using E-CLI.

The CLI can be accessed via Serial cable and SSH. Please refer to the SonicOS 5.9 – Administration Guide. Appendix A: CLI Guide for more details.

Global System Commands

The following system commands are global and can be executed from anywhere in the config module.

Command    DescriptionCommand               Description                                                     
Tab keyTab 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.
keyThe ? 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.exitExit current mode without saving changes made in the current mode                                            
keyThe 'q' key breaks listing of commands or information. Useful when the output of a command like Show current-config needs to be stopped.exportExport system status or configuration
cancelExit from the mode without saving changes.help              Display command help
clearReset functions.no                 Negate a command or set its defaults.
commitSave configuration changes. The command commit best-effort will save only valid changes                                                                show             Show system status or configuration.                            
diagDiagnostic functions.

For a complete list of E-CLI commands, refer to the SonicOS 5.9 Enterprise CLI Reference Guide (PDF).

Procedure:    

To be able to upload or download SonicOS firmware 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.sigIn the examples below, the username and password is "test". The IP address of the FTP server is 10.10.10.2. The name of the file in the FTP folder is sonicos.sig.

Login to the CLI using the admin username and password.
Navigate to the config prompt by entering config and press enter

To import a firmware and boot with uploaded firmware

import firmware ftp ftp://test:test@10.10.10.2/sonicos.sig

To boot the uploaded firmware with current settings

boot uploaded //This will reboot the SonicWall. 

To boot the uploaded firmware with factory default settings

boot uploaded factory-default //This will reboot the SonicWall with factory default settings.

To boot the uploaded firmware with backup settings

boot uploaded backup //This will reboot the SonicWall with back settings.

To export the current firmware

export firmware current ftp ftp://test:test@10.10.10.2/sonicos.sig

To export an uploaded firmware

export firmware uploaded ftp ftp://test:test@10.10.10.2/sonicos.sig

Related Articles

  • SonicOS 8.1.0 FAQ
    Read More
  • SonicWall GEN8 TZs and GEN8 NSas Settings Migration
    Read More
  • Getting started with SonicWall firewalls
    Read More
not finding your answers?