I ran into a wall with trying to figure this one out and hopefully someone can provide some insight. I am trying to send one snmp trap with multiple OID's using EEM. I've found two ways to do this but my main method isn't working. Essentially, this is what I want. event manager applet send-custom-trap event none action 1.0 info type snmp oid 188.8.131.52.184.108.40.206.220.127.116.11 get-type exact action 2.0 info type snmp var vbinds oid 18.104.22.168.4.1.33333.2.0 string $_info_snmp_value action 3.0 info type snmp oid 22.214.171.124.126.96.36.199.188.8.131.52 get-type exact action 4.0 info type snmp var vbinds oid 184.108.40.206.4.1.33333.3.0 string $_info_snmp_value action 5.0 info type snmp trap enterprise-oid 220.127.116.11.4.1.33333.1 generic-trapnum 6 specific-trapnum 1 trap-oid 18.104.22.168.22.214.171.1243126.96.36.199 trap-var vbinds The problem here is the string values of the snmp variable are not referencing the $_info_snmp_value variable. I also tried setting the value of these variables to another variable but still not working. Here's the output. ############# OUTPUT R1# sysUpTime.0 = 3007074 snmpTrapOID.0 = cisco.333188.8.131.52 enterprises.33333.2.0 = $_info_snmp_value enterprises.33333.3.0 = scott sysUpTime.0 = 3007074 snmpTrapOID.0 = cisco.333184.108.40.206 enterprises.33333.2.0 = $_info_snmp_value enterprises.33333.3.0 = $_info_snmp_value I can't seem to get the referenced OID value from the variable that I want. I know that $_info_snmp_value does have the correct data stored in it from this below config. event manager applet send-custom-trap event none action 1.0 info type snmp oid 220.127.116.11.18.104.22.168.22.214.171.124 get-type exact action 2.0 set oid1 $_info_snmp_value action 3.0 info type snmp oid 126.96.36.199.188.8.131.52.184.108.40.206 get-type exact action 4.0 set oid2 $_info_snmp_value action 5.0 snmp-trap intdata1 0 intdata2 0 strdata "$oid1, $oid2" ############# OUTPUT R1# sysUpTime.0 = 2982412 snmpTrapOID.0 = cEventMgrMIB.0.2 ceemHistoryEventEntry.2.10 = 131 ceemHistoryEventEntry.3.10 = 0 ceemHistoryEventEntry.4.10 = 0 ceemHistoryEventEntry.5.10 = 0 ceemHistoryEventEntry.6.10 = ceemHistoryEventEntry.7.10 = applet: send-custom-trap ceemHistoryEventEntry.9.10 = 0 ceemHistoryEventEntry.10.10 = 0 ceemHistoryEventEntry.11.10 = F00000, F01 ceemHistoryEventEntry.13.10 = 0 ceemHistoryEventEntry.14.10 = 0 ceemHistoryEventEntry.15.10 = 0 ceemHistoryEventEntry.16.10 = 0 The problem with the second config is that my snmp trap manager doesn't parse the fields. If it did, i could take F00000 and F01 and send an email alert with this info formatted correctly. However, the manager can only take the field data and present it as whole, so I would be sending "F00000, F01". The first config set can send the data in multiple fields but just can't get the actual OID value. I just can't seem to get the right combination with these two, or rather the first config set to reference the snmp get values. Thoughts?
... View more