EEM parameter passing

Unanswered Question

I am using EEM to monitor an IOD. The first applet returns a value _snmp_oid_val. I would like to use this value in another applet. How can I pass values between applets?


event manager applet web1-UP

event snmp oid 1.3.6.1.4.1.9.9.42.1.5.1.1.7.336 get-type exact entry-op eq entry-val 200 poll-interval 10

action 8.0 track set 5 state up


event manager applet web1-Track

event track 5 state any

action 2.0 syslog priority critical msg "Web1 returned a status code: $_snmp_oid_val, Site Track $_track_number changed state to $_track_state"

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Joe Clarke Thu, 05/10/2007 - 07:19
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You can pass data between applets by using a publish-event action. Of course, this will mean you'd have to make the second applet use an application event detector (i.e. event application. For example:


event manager applet web1-UP

event snmp oid 1.3.6.1.4.1.9.9.42.1.5.1.1.7.336 get-type exact entry-op eq entry-val 200 poll-interval 10

action 1.0 publish-event sub-system 798 type 1 arg1 $_snmp_oid_val


event manager applet web1-APP

event application sub-system 798 type 1

action 1.0 syslog priority critical msg "Web1 returned a status code of $_application_data1"

Actions

This Discussion