<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 11, 2022 at 5:58 PM Jon Lewis <<a href="mailto:jlewis@lewis.org">jlewis@lewis.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 11 Feb 2022, Lyndon Nerenberg (VE7TFX/VE6BBM) wrote:<br>
<br>
> On an EX4300 switch running JunOS 14.1 let's imagine I typed<br>
><br>
>       config<br>
>       delete interfaces<br>
><br>
> before coming to my senses.  How am I supposed to back out of that<br>
> mess?  For the life of me, after a week of reading the 3000 page<br>
> reference manual, and endless DuckDuckGoing, I cannot see a simple<br>
> way of just abandoning the commit.  I've got to be missing something<br>
> stunningly obvious here because it's unthinkable that this functionality<br>
> doesn't exist.  Help?!?<br>
<br>
What would you say if I told you a coworker once did exactly that, and did <br>
commit and-quit...and it had to be fixed by another coworker getting to it <br>
via OOB console and doing the rollback?  :)<br>
<br>
top [not necessary in your case, if you never left top]<br>
rollback 0<br>
quit<br>
<br>
Also, get into the habit of never doing a commit without first doing<br>
top <br>
show | compare<br>
so you can see what your change is actually doing to the whole config. </blockquote><div dir="auto"><br></div><div dir="auto">My muscle memory includes:</div><div dir="auto">{ some changes }</div><div dir="auto">top</div><div dir="auto">show | compare</div><div dir="auto">commit confirmed 5</div><div dir="auto">{flip over the little electronic egg timer thingie that lives next to my keyboard, so that it beeps after 3 minutes...wait... wait... press enter a few times to make sure I haven't screwed myself...}</div><div dir="auto">commit</div><div dir="auto"><br></div><div dir="auto">If I skip the egg timer, then I *will* forget, and it will automatically roll back. One of my largest annoyances with the Juniper CLI (other than the fact that it won't format large numbers into a human readable format in things like 'monitor interface traffic') is that it beeps the terminal *after* it times out the commit. </div><div dir="auto"><br></div><div dir="auto">Gee, thanks for letting me know you just blew away all of my changes... couldn't you have done that 1 minute before automatically reverting?!!!</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">W</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" dir="auto"><br>
i.e. if you did a show | compare at the top of the config and saw the <br>
entire interfaces section of the config was "removed" in the resulting <br>
config diff, you probably wouldn't commit.<br>
<br>
----------------------------------------------------------------------<br>
  Jon Lewis, MCP :)           |  I route<br>
  StackPath, Sr. Neteng       |  therefore you are<br>
_________ <a href="http://www.lewis.org/~jlewis/pgp" rel="noreferrer" target="_blank">http://www.lewis.org/~jlewis/pgp</a> for PGP public key_________<br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Perhaps they really do strive for incomprehensibility in their specs.<br>After all, when the liturgy was in Latin, the laity knew their place.<br>-- Michael Padlipsky<br></div></div>