Main Menu
  • COMPANY
    • Boundless Cybersecurity
    • Press Releases
    • News
    • Events
    • Awards
    • Leadership
    • Press Kit
    • Careers
  • PROMOTIONS
    • SonicWall Promotions
    • Customer Loyalty Program
  • MANAGED SERVICES
    • Managed Security Services
    • Security as a Service
    • Professional Services
SonicWall
  • Products
      All Products A–Z
      Free Trials
    • Network Security
      • Next-Generation Firewall (NGFW)
      • Network Security Services
      • Network Security Management
      • Secure SD-WAN
    • Threat Protection
      • Advanced Threat Protection Cloud
      • Advanced Threat Protection Appliance
      • Capture Labs
    • Secure Access Service Edge (SASE)
      • Zero-Trust Network Access (ZTNA)
    • Cloud Security
      • Cloud Firewall
      • Cloud App Security
    • Endpoint Security
      • Endpoint Detection & Response (EDR)
    • Email Security
      • Cloud Email Security
      • Hosted Email Security
      • On-Prem Email Security
    • Secure Access
      • Wireless Access Points
      • Network Switch
      • Virtual Private Network (VPN)
    • Wi-Fi 6 Access Points

      SonicWall SonicWave 600 series access points provide always-on, always-secure connectivity for complex, multi-device environments.

      Read More
  • Solutions
    • Industries
      • Distributed Enterprises
      • Retail & Hospitality
      • K-12 Education
      • Higher Education
      • State & Local
      • Federal
      • Healthcare
      • Financial Services
      • Carriers
    • Use Cases
      • Secure SD-Branch
      • Network Segmentation
      • Zero Trust Security
      • Secure SD-WAN
      • Office 365 Security
      • SaaS Security
      • Secure Wi-Fi
    • Solutions Widgets
      • Solutions Content Widgets
        Federal

        Protect Federal Agencies and Networks with scalable, purpose-built cybersecurity solutions

      • Solutions Image Widgets
  • Partners
    • SonicWall Partners
      • Partners Overview
      • Find a Partner
      • Authorized Distributors
      • Technology Partners
    • Partner Resources
      • Become a Partner
      • SonicWall University
      • Training & Certification
    • Partner Widgets
      • Custom HTML : Partners Content WIdgets
        Partner Portal

        Access to deal registration, MDF, sales and marketing tools, training and more

      • Partners Image Widgets
  • Support
    • Support
      • Support Portal
      • Knowledge Base
      • Technical Documentation
      • Community
      • Video Tutorials
      • Product Life Cycle Tables
      • Partner Enabled Services
      • Contact Support
    • Resources
      • Resource Center
      • Events
      • Free Trials
      • Blog
      • SonicWall University
      • MySonicWall
    • Capture Labs
      • Capture Labs
      • Security Center
      • Security News
      • PSIRT
      • Application Catalog
    • Support Widget
      • Custom HTML : Support Content WIdgets
        Support Portal

        Find answers to your questions by searching across our knowledge base, community, technical documentation and video tutorials

      • Support Image Widgets
  • COMPANY
    • Boundless Cybersecurity
    • Press Releases
    • News
    • Events
    • Awards
    • Leadership
    • Press Kit
    • Careers
  • PROMOTIONS
    • SonicWall Promotions
    • Customer Loyalty Program
  • MANAGED SERVICES
    • Managed Security Services
    • Security as a Service
    • Professional Services
  • Contact Sales
  • English English English en
  • BLOG
  • CONTACT SALES
  • FREE TRIALS
  • English English English en
SonicWall
  • Products
      All Products A–Z
      Free Trials
    • Network Security
      • Next-Generation Firewall (NGFW)
      • Network Security Services
      • Network Security Management
      • Secure SD-WAN
    • Threat Protection
      • Advanced Threat Protection Cloud
      • Advanced Threat Protection Appliance
      • Capture Labs
    • Secure Access Service Edge (SASE)
      • Zero-Trust Network Access (ZTNA)
    • Cloud Security
      • Cloud Firewall
      • Cloud App Security
    • Endpoint Security
      • Endpoint Detection & Response (EDR)
    • Email Security
      • Cloud Email Security
      • Hosted Email Security
      • On-Prem Email Security
    • Secure Access
      • Wireless Access Points
      • Network Switch
      • Virtual Private Network (VPN)
    • Wi-Fi 6 Access Points

      SonicWall SonicWave 600 series access points provide always-on, always-secure connectivity for complex, multi-device environments.

      Read More
  • Solutions
    • Industries
      • Distributed Enterprises
      • Retail & Hospitality
      • K-12 Education
      • Higher Education
      • State & Local
      • Federal
      • Healthcare
      • Financial Services
      • Carriers
    • Use Cases
      • Secure SD-Branch
      • Network Segmentation
      • Zero Trust Security
      • Secure SD-WAN
      • Office 365 Security
      • SaaS Security
      • Secure Wi-Fi
    • Solutions Widgets
      • Solutions Content Widgets
        Federal

        Protect Federal Agencies and Networks with scalable, purpose-built cybersecurity solutions

      • Solutions Image Widgets
  • Partners
    • SonicWall Partners
      • Partners Overview
      • Find a Partner
      • Authorized Distributors
      • Technology Partners
    • Partner Resources
      • Become a Partner
      • SonicWall University
      • Training & Certification
    • Partner Widgets
      • Custom HTML : Partners Content WIdgets
        Partner Portal

        Access to deal registration, MDF, sales and marketing tools, training and more

      • Partners Image Widgets
  • Support
    • Support
      • Support Portal
      • Knowledge Base
      • Technical Documentation
      • Community
      • Video Tutorials
      • Product Life Cycle Tables
      • Partner Enabled Services
      • Contact Support
    • Resources
      • Resource Center
      • Events
      • Free Trials
      • Blog
      • SonicWall University
      • MySonicWall
    • Capture Labs
      • Capture Labs
      • Security Center
      • Security News
      • PSIRT
      • Application Catalog
    • Support Widget
      • Custom HTML : Support Content WIdgets
        Support Portal

        Find answers to your questions by searching across our knowledge base, community, technical documentation and video tutorials

      • Support Image Widgets
  • COMPANY
    • Boundless Cybersecurity
    • Press Releases
    • News
    • Events
    • Awards
    • Leadership
    • Press Kit
    • Careers
  • PROMOTIONS
    • SonicWall Promotions
    • Customer Loyalty Program
  • MANAGED SERVICES
    • Managed Security Services
    • Security as a Service
    • Professional Services
  • Contact Sales
  • Menu

Export configuration settings using enterprise command line Interface (E-CLI)

08/03/2022 81 People found this article helpful 206,993 Views

    Download
    Print
    Share
    • LinkedIn
    • Twitter
    • Facebook
    • Email
    • Copy URL The link has been copied to clipboard

    Description

    Export configuration settings using Enterprise Command Line Interface (E-CLI)

    Resolution

    Resolution for SonicOS 7.X

    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:

    • Launch Filezilla server and click the 'Users' button

      Image

    • Add a user.  For demo purpose, we have used the username and password as 'test.

      Image

    • Define a path where you would like to export the firewall configuration to

      Image

    • Launch putty
    • Connect to the firewall 

      Image

    • login to the firewall 

      Image

    • enter the following commands
      Export current-config cli FTP FTP://test:test@X.X.X.X/config.txt

      Image
      Export current-config cli FTP FTP://test:test@X.X.X.X/config.exp

      Image

    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

    Resolution for SonicOS 6.5

    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:

    • Launch Filezilla server and click the 'Users' button

      Image

    • Add a user.  For demo purpose, we have used the username and password as 'test.

      Image

    • Define a path where you would like to export the firewall configuration to

      Image

    • Launch putty
    • Connect to the firewall 

      Image

    • login to the firewall 

      Image

    • enter the following commands
      Export current-config cli FTP FTP://test:test@X.X.X.X/config.txt

      Image
      Export current-config cli FTP FTP://test:test@X.X.X.X/config.exp

      Image

    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

    Resolution for SonicOS 6.2 and Below

    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 
    DescriptionCommand Description
    Tab keyTab key aids in completing a command. Displays useful information such as the next option in the command.endExit 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
    q keyThe 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.helpDisplay command help
    clearReset functions.noNegate a command or set its defaults.
    commitSave configuration changes. The command commit best-effort will save only valid changes showShow system status or configuration. 
    diagDiagnostic 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.

    1. SonicOS format exports the settings in the .exp format which can be later imported from the WebUI.
      The CLI format export the settings in the E-CLI command format. The exported file can be edited using a text editor.

      Login to the CLI using the admin username and password.
    2. Navigate to the config prompt by entering config and press enter.
    3. Configuration settings can be exported from either outside the config mode or within it. However, exporting pending configuration requires the user to be be in the config mode. Moreover, pending configuration can only be exported in the CLI format.

      Export configuration settings using SonicOS format.
      export current-config sonicos FTP FTP://test:test@10.10.10.2/sonicos.exp

      Export configuration settings using E-CLI format
      export current-config cli FTP FTP://test:test@10.10.10.2/sonic-cli.wri

      Export pending configuration settings using SonicOS format.
      export pending-config cli FTP FTP://test:test@10.10.10.2/sonic-cli-pending.wri
      Image
      In the screen shot shown above,the FTP server username is SonicWall & password is password.Once we hit enter, it ill start exporting the config files to FTP server as shown below.

      Image
      Once it finish exporting we will see the config file in the FTP server.

      See also:

    • How to import a cli text file into a firewall

    Related Articles

    • Bandwidth usage and tracking in SonicWall
    • How to force an update of the Security Services Signatures from the Firewall GUI
    • Configure Guest VLAN in the TZ firewall, for guest users to access Internet only.

    Categories

    • Firewalls > TZ Series > System
    • Firewalls > NSa Series > System

    Not Finding Your Answers?

    ASK THE COMMUNITY

    Was This Article Helpful?

    YESNO

    Article Helpful Form

    Article Not Helpful Form

    Company
    • Careers
    • News
    • Leadership
    • Awards
    • Press Kit
    • Contact Us
    Popular resources
    • Communities
    • Blog
    • SonicWall Capture Labs

    Stay In Touch

    • By submitting this form, you agree to our Terms of Use and acknowledge our Privacy Statement. You can unsubscribe at any time from the Preference Center.
    • This field is for validation purposes and should be left unchanged.
    • Facebook
    • Twitter
    • Linkedin
    • Youtube
    • Instagram

    © 2023 SonicWall. All Rights Reserved.

    • Legal
    • Privacy
    • English
    Scroll to top