Junos
Junos

URGENT: Configuration undo

10.23.09   |  
‎10-23-2009 02:10 AM

Hi,

 

I have been configuring some EX 4200 switches and accidentally input a command which if i commit will destroy my configurations and probably my employment.

 

I need to remove these configurations, and undo to last known config whilst not taking the switch cluster down.

 

Crisis!

 

Please help

4 REPLIES
Junos
Solution
Accepted by topic author harrydanger
‎08-26-2015 01:27 AM

Re: URGENT: Configuration undo

10.23.09   |  
‎10-23-2009 02:13 AM

Hi,

 

if you changed configuration in the config mode then just do "rollback 0" and that is it.

 

Kind Regards

Michael Pergament

Highlighted
Junos

Re: URGENT: Configuration undo

[ Edited ]
10.23.09   |  
‎10-23-2009 02:40 AM

When you allready commited the changes: rollback 1.

 

To check for the right rollback:

 

show  | compare

 

 

best regards,

Screenie.
Juniper Ambassador,
JNCIA IDP AC WX JNCIS FW SSL JNCIP SEC ENT SP JNCI

If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.
Junos

Re: URGENT: Configuration undo

10.23.09   |  
‎10-23-2009 08:21 AM

Hey Screenie - not to "nitpick" to much - but "show | compare" simply compares current config to last prior committed.

 

Syntax is "show | compare rollback X" where "X" equals 1 of 50 prior configs - (for the benefit of the original questioner.....)

 

 

Kevin Barker
JNCIP-SEC
JNCIS-ENT, FWV, SSL, WLAN
JNCIA-ER, EX, IDP, UAC, WX
Juniper Networks Certified Instructor
Juniper Networks Ambassador

Juniper Elite Reseller
J-Partner Service Specialist - Implementation

If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.
Junos

Re: URGENT: Configuration undo

10.23.09   |  
‎10-23-2009 09:13 AM

You're right of course. I wanted to lookup the exact syntax compare <nr> or compare rollback <nr>, a sybtax I can't memorize, but forgot and posted to fast. Glad you noticed it. Have a nice weekend!

best regards,

Screenie.
Juniper Ambassador,
JNCIA IDP AC WX JNCIS FW SSL JNCIP SEC ENT SP JNCI

If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.