Junos
Reply
Trusted Contributor
harrydanger
Posts: 86
Registered: ‎03-13-2009
0
Accepted Solution

URGENT: Configuration undo

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

Distinguished Expert
mikep
Posts: 483
Registered: ‎06-30-2009
0

Re: URGENT: Configuration undo

Hi,

 

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

 

Kind Regards

Michael Pergament

Distinguished Expert
Screenie
Posts: 1,076
Registered: ‎01-10-2008
0

Re: URGENT: Configuration undo

[ Edited ]

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.
Distinguished Expert
muttbarker
Posts: 2,363
Registered: ‎01-29-2008
0

Re: URGENT: Configuration undo

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.
Distinguished Expert
Screenie
Posts: 1,076
Registered: ‎01-10-2008
0

Re: URGENT: Configuration undo

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.
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.