Fix router configuration after a reload

Sometimes, parts of router configuration get lost during the reload process: although the configuration commands are saved in NVRAM, they are not processed after the reload and thus do not appear in the running configuration. Re-entering these commands manually solves the problem ... but it's obviously not a reliable solution.

Embedded Event Manager (EEM) solves this issue as well. You just configure an applet that triggers on syslog message SYS-5-RESTART and reapplies the necessary configuration commands.For example, to fix the bug CSCsf32390, Cisco recomments the following applet:

event manager applet add-buffer
event syslog occurs 1 pattern "%SYS-5-RESTART: System restarted"
action 1.0 cli command "enable"
action 2.0 cli command "configure terminal"
action 3.0 cli command "buffers particle-clone 16384"
action 4.0 cli command "buffers header 4096"
action 5.0 cli command "buffers fastswitching 8192"
action 6.0 syslog msg "Reinstated buffers command"

6 comments:

Jhonny Cash said...

Great tip Ivan.. Thanks..

cooly said...

Very nice tip Ivan. My blog also tackles cisco, networking and router configuration, can i copy this post of yours?

Ivan Pepelnjak said...

Yes, you can, just quote the source and insert a link back to my blog.

bolda said...

Nice tip
ut how if you have an user for enable / conf t?, does it work without entering the password?

Ivan Pepelnjak said...

@bolda: See this post.

Patrick Marc Preuss said...

Hi
discoverd simmilar with 12.4.15T3 and the DHCP Server.
Nice Hint. Many Thanks.
Cheers
Patrick

Ivan Pepelnjak, CCIE#1354, is the chief technology advisor for NIL Data Communications. He has been designing and implementing large-scale data communications networks as well as teaching and writing books about advanced technologies since 1990. See his full profile, contact him or follow @ioshints on Twitter.