Lab Objective:
The focus of this lab is to understand Embedded Event Manager (EEM) implementation and configuration in Cisco IOS routers. Additional technologies include SNMP security.
Lab Topology:
This lab requires only a single router running, at a minimum, Cisco IOS Software 12.4 Mainline. The router should have at least one Ethernet interface. The primary purpose of this lab is to reinforce configuration knowledge of the stated chapter.
|
IMPORTANT NOTE If you have multiple devices and servers / hosts in your home lab and you would like to test solutions for topics such as Syslog, SNMP and NetFlow by setting up host and viewing charts or logging information, for example, please feel free to do so. While these labs include logging to ‘supposed’ hosts, there are no SNMP or Syslog servers in the http://www.howtonetwork.net racks and so you will not be able to test the solutions in those racks. If you only have a single router, you can bring up the Ethernet interface by implementing the following configuration: ! |
Task 1
Configure the router with a hostname of R1. Next, enable the LAN interface of the router and assign it the IP address 150.1.1.1/24. Ensure that this interface is in an up / up state.
Task 2
Configure an EEM applet on the router such that following any configuration change, the log message ‘SAVING CONFIGURATION’ is printed and the router automatically saves the configuration. The router should also send an SNMP trap to host 150.1.1.254 using an SNMPv2 community string of ‘SECURITY’. This trap should include the message ‘CONFIG SAVED’. Verify your configuration using the appropriate commands.
Task 3
Management is concerned about the device being reloaded accidentally. Until they get an ACS server running TACACS+, which will be used to restrict commands at the user level, they have requested that the ‘reload’ command be ignored when executed on the router. They also request that the shortened form of this command, ‘relo’ is also ignored. Configure an EEM applet to satisfy this request. Ensure that the router prints the message ‘NOT ALLOWED’ whenever this command is attempted. Test and verify your configuration using the appropriate commands.
Task 4
In the future, assume that OSPF will be enabled on the router. To facilitate OSPF adjacency flap troubleshooting, configure an EEM applet that captures the contents of the show processes cpucommand to an existing file named PROC_UTIL that is stored in Flash memory. It is important to ensure that this file is not overwritten, but instead, additional data is simply added to it. Next, configure the same applet so that the output of the show interface serial 0/0 command. This information should be added to an existing file named SERIAL_STATS that is stored in Flash memory. Verify your configuration.