Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[ScreenOS] How Do I Erase the System Configuration Using the CLI?



Article ID: KB6297 KB Last Updated: 14 Mar 2020Version: 7.0

How Do I Erase the System Configuration Using the CLI?



  • Configuration
  • Unset all
  • Erase configuration

Symptoms & Errors:

  • Need to erase all existing configuration
  • Corrupted configuration

note: This solution applies to all Firewall ScreenOS versions.  Note: Only the configuration file is reset to the default status.  All other aspects of the system remain, such as port modes, license keys, AV and DI databases, and attack databases.  To reset the entire device to Factory Default, including removing license keys and databases, consult  KB4749.

note: It is recommended to perform this operation using the console connection method so you can then see the boot up messages appear on the console.

To erase the system configuration using the CLI, perform the following steps:

Connect to the device with a console connection. For more information about accessing the device with a console connection, select your product from the list below:

From the CLI, enter unset all; press ENTER.

When prompted for Erase all system config, are you sure y/[n]; press y.

Enter reset; press ENTER

When prompted for Configuration Modifies, save; press n

When prompted for System Reset, Are you sure; press y.

note: Upon the system reboot, the configuration will be reverted to the factory default.

note: The default IP address of the NetScreen device is, the admin name is netscreen and the password is netscreen.

Modification History:

2020-03-13: Minor, non-technical edits.

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search