Skip to main content

EEM - configuration change applet


###############################################################################################################
#
#  Revision #          :  1.1
#  Last Updated        :  September 19, 2007
#  Author/Contributor  :  David Lin, dalin@cisco.com
#
#  Description         :  This applet will dump the most recent configuration to flash:latest-config
#                         when a change notication alarm is detected.  The output will then be sent
#                         out to an email server for appropriate action.
#
#
#  Requirements        :  -EEM env variables-  
#                         event manager environment _email_server <your-mailserver-ipaddress>
#                         event manager envrionment _email_from <your-email-from-address>
#                         event manager environment _email_to <your-email-to-address>
#
#
#                         Example: event manager environment _email_server 10.10.10.10
#                                  event manager environment _email_from router-123@cisco.com
#                                  event manager environment _email_to noc@cisco.com
#
#                         -EEM trigger-
#                         %SYS-5-CONFIG syslog msg
#
#                         -EEM action-
#                         Sends an email message to specified server defined in variable _email_server above
#
#  Cisco Products tested :   Cisco 1841, Ciso 2821
#
#  Cisco IOS Version tested :   12.4(9)T4
#
###############################################################################################################


event manager applet email_latest_config
event syslog pattern ".*%SYS-5-CONFIG.*"
action 1.0 info type routername
action 1.1 cli command "del /force flash:latest-config"
action 1.2 cli command "enable"
action 1.3 cli command "show clock | append latest-config"
action 1.4 cli command "show user | append latest-config"
action 1.5 cli command "show run | append latest-config"
action 1.6 cli command "more flash:latest-config"
action 1.7 mail server $_email_server to $_email_to from $_email_from subject "Latest Running Config ($_info_routername)" body "$_cli_result"
action 1.8 syslog msg "Latest running config sent to email server!"



# copy & paste the following to disable/remove this applet
  no event manager applet sendmail_latest_config
  wr

Popular posts from this blog

IOS on Unix (IOU)

source http://evilrouters.net/2011/01/18/cisco-iou-faq/ What is IOU? From the Cisco Engineering Education web site (a long time ago): IOS on Unix (IOU) is a fully working version of IOS that runs as a user mode UNIX (Solaris) process. IOU is built as a native Solaris image and run just like any other program. IOU supports all platform independent protocols and features. What operating systems does IOU run on? It is my understanding that, initially, IOU was Solaris (SPARC) only. Nowadays, however, there are also builds for OS X and Linux. Similar to dynamips, IOU allows you to build out a network topology on a computer, without the need for physical routers. This is useful for validating designs, proof-of-concept testing, and certification self-study. Is my system compatible with IOU? You will need to be running the operating system that your IOU image were built for, obviously. Other than that, there are no special requirements to run IOU. It is not very CPU- or memory-intensive, unlik...

Juniper IS-IS summary

##################################################################################################### ## ISIS ##################################################################################################### # Be sure to set family iso on the interface to be placed into ISIS set interfaces <interface> family iso # By default Junos places interfaces as L1/L2 # Default route leaking:         L1 to L2 - all internal routes         L2 to L1 - 0/0 route # L1/L2 will send the attached-bit down to L1 and it will act as a NSSA-like area.  When the L1 interface # receives the attached-bit it will inject a 0/0 route into the RIB point to the L1/L2 interface. # To disable the attached bit use: set protocols isis ignore-attached-bit # Be careful with the "interface all" command, as it may have some unexpected consequences such as trying # to establish a neighbor on your fxp0 management...

Impressed with Poly brand for conference headphones

I previously used my Sony XM4 headphones for calls and initially found them versatile for multiple purposes. However, as my meetings extended to several hours, I noticed they became less comfortable. To address this, I upgraded to wireless headphones from Poly, which offer significantly improved comfort. While I don’t plan to use them for music listening, my initial impression is very positive.