Support Support Downloads Knowledge Base Case Manager My Juniper 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

Factory defaulting the EX-series switch to run EZsetup from console



Article ID: KB11041 KB Last Updated: 03 Mar 2017Version: 2.0
Running EZsetup will only work when the EX switch is in factory default.  This can be accomplished by using the LCD panel to restore the EX switch to factory default or by moving the configuration files to a temporary directory.  The second method, described in this KB, is useful if you do not have someone physically at the location of the EX switch.


The following steps provide a method for factory defaulting the EX switch, from the console port, to run the EZsetup application.

NOTE: Running "load factory-default" from configuration mode does not allow you to run EZsetup. 

Steps for factory defaulting the EX switch:

  • Login as root from console.
  • Move or Remove the current configuration files.  If unsure then always move the files as specified below.
  1. Move configuration files to a different directory:
root@hostname% cd /config/
root@hostname% mkdir /config/temp
root@hostname% mv /config/*.gz /config/temp
  1. Removing configuration files: (do you really want to delete these files?)
root@hostname% cd /config/
root@hostname% ls -l    (verify .gz config files)
root@hostname% rm /config/*.gz

  • Reboot the switch
root@hostname% shutdown -r now
  • After the EX switch reboots login as root (No need for password)
  • Now you can execute "ezsetup" normally from the "root@%" prompt.
root@%  ezsetup
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