cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2769
Views
5
Helpful
3
Replies

EEM and SNMP

julien.lefloch
Level 1
Level 1

Hello,

Maybe a question for Joe about EEM!

I would like to pool a CUCM MIB with an EEM applet on a cisco gateway running IOS 12.4(22)Tx.

Is it be possible with EEM 3.0 and the new ipaddr option available? or must this ip address be absolutely a NMS ip?

--> action label info type snmp oid oid-value {get-type {exact | next} [community community-string] | set-type oid-type oid-type-value community community-string} [ipaddr ip-address]

If anyone can help me!

Thanks.

1 Accepted Solution

Accepted Solutions

Make sure you have the following configured on the router:

snmp-server manager

Without the SNMP manager, you cannot make SNMP requests.

View solution in original post

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

That's right. The ipaddr keyword allows you to query a remote device. For example:

event manager applet snmptest

event none

action 1.0 info type snmp oid 1.3.6.1.2.1.1.1.0 get-type exact community public ipaddr 10.1.1.1

action 2.0 syslog msg "Read $_info_snmp_value"

Router#event manager run snmptest

Mar 4 17:38:14.326: %HA_EM-6-LOG: snmptest: Read Cisco Internetwork Operating System Software

IOS (tm) RSP Software (RSP-JSV-M), Version 12.3(20a), RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2007 by cisco Systems, Inc.

Compiled Sat 21-Jul-07 03:53

Hi Joe,

I agree with your example but for me it doesn't work! x.x.x.x is a CUCM with a public snmp community configured.

event manager applet snmptest

event none

action 1.0 info type snmp oid 1.3.6.1.2.1.1.1.0 get-type exact community public ipaddr x.x.x.x

action 2.0 syslog msg "Read $_info_snmp_value"

!

end

HQ8-CUBE2#event manager run snmptest

HQ8-CUBE2#sh logging | begin /*Mar 5 14:

*Mar 5 14:15:19.184: %SYS-5-CONFIG_I: Configured from console by vty0 (10.26.0.173)

*Mar 5 14:15:22.096: %SYS-5-CONFIG_I: Configured from console by vty0 (10.26.0.173)

*Mar 5 14:16:47.920: %HA_EM-7-FMFD_SNMP_REQ_FAILED: fh_fd_do_snmp_request_remote: SNMP request failed

*Mar 5 14:16:47.924: %HA_EM-3-FMPD_UNKNOWN_ENV: fh_parse_var: could not find environment variable: _info_snmp_value

*Mar 5 14:16:47.924: %HA_EM-3-FMPD_ERROR: Error executing applet snmptest statement 2.0

HQ8-CUBE2#

Thanks.

Make sure you have the following configured on the router:

snmp-server manager

Without the SNMP manager, you cannot make SNMP requests.