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

[EX] Loading a previous configuration file using the 'rollback' command from CLI



Article ID: KB11211 KB Last Updated: 11 Aug 2020Version: 5.0

If it is necessary to revert or rollback to a previous configuration this can be done using the 'rollback' command from CLI.

You need to revert to a previous configuration file.
You can revert or rollback to a previous configuration file using the 'rollback' command from either the CLI or J-Web interface.  This procedure is from the CLI only. 

NOTE: For J-Web you can access the 'rollback' function under the 'maintain > Config Managment > History' menus.

Loading a Previous Configuration File (CLI Procedure)

You can return to a previously committed configuration file if you need to revert to a previous configuration or if you have lost management access to the switch. The EX-series switch saves the last 50 committed configurations, including the rollback number, date, time, and name of the user who issued the commit configuration command.

   rollback (number)

  • None — Return to the most recently saved configuration.
  • Number — Configuration to return to.
    • Range: 0 through 49. The most recently saved configuration is number 0, and the oldest saved configuration is number 49.
    • Default: 0
To return to a configuration prior to the most recently committed one:
  1. Specify the rollback number:
    user@switch# rollback number
    load complete

  2. Activate the configuration you have loaded:
    user@switch# commit
Modification History:

2020-08-10: Minor, non-technical edit.

Related Links

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