Datasheet
Lab – Configuring SNMP
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 20
c. Configure S1 as an SNMP agent. You can use the same snmp-server commands that you used to
configure R1.
S1(config)# snmp-server community ciscolab ro SNMP_ACL
S1(config)# snmp-server location snmp_manager
S1(config)# snmp-server contact ciscolab_admin
S1(config)# snmp-server host 192.168.1.3 version 2c ciscolab
S1(config)# snmp-server enable traps
S1(config)# ip access-list standard SNMP_ACL
S1(config-std-nacl)# permit 192.168.1.3
d. After S1 is configured, SNMP notifications from 192.168.1.2 display in the Traps window of the
PowerSNMP Free Manager. In the PowerSNMP Free Manager, add S1 as an SNMP agent using the
same process that you used to discover R1.
Part 3: Convert OID Codes with the Cisco SNMP Object Navigator
In Part 3, you will force SNMP notifications to be sent to the SNMP manager located at PC-A. You will then
convert the received OID codes to names to learn the nature of the messages. The MIB/OID codes can be
easily converted using the Cisco SNMP Object Navigator located at http://www.cisco.com.
Step 1: Clear current SNMP messages.
In the PowerSNMP Free Manager, right-click the Traps window and select Clear to clear the SNMP
messages.
Step 2: Generate an SNMP trap and notification.
On R1, configure the S0/0/0 interface according to the Addressing Table at the beginning of this lab.
Accessing global configuration mode and enable an interface to generate an SNMP trap notification to be
sent to the SNMP Manager at PC-A. Notice the Enterprise/OID code numbers that are visible in the traps
window.
R1(config)# interface s0/0/0
R1(config)# ip address 192.168.2.1 255.255.255.252
R1(config)# clock rate 128000
R1(config)# no shutdown