03-04-2009 08:59 AM
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.
Solved! Go to Solution.
03-05-2009 08:44 AM
Make sure you have the following configured on the router:
snmp-server manager
Without the SNMP manager, you cannot make SNMP requests.
03-04-2009 09:39 AM
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
03-05-2009 06:23 AM
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.
03-05-2009 08:44 AM
Make sure you have the following configured on the router:
snmp-server manager
Without the SNMP manager, you cannot make SNMP requests.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide