# SNMP Traps - referencing OIDs without knowing the Attribute name

**URL:** <https://community.dynatrace.com/t/snmp-traps-referencing-oids-without-knowing-the-attribute-name/39611>\
**Category:** Extensions\
**Tags:** snmp, extensions\
**Created:** [May 5, 2023, 12:12pm UTC](https://community.dynatrace.com/t/snmp-traps-referencing-oids-without-knowing-the-attribute-name/39611 "2023-05-05T12:12:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ed\_Cox](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@Ed\_Cox](https://community.dynatrace.com/u/Ed_Cox)\
**Post date:** [May 5, 2023, 12:12pm UTC](https://community.dynatrace.com/t/snmp-traps-referencing-oids-without-knowing-the-attribute-name/39611/1 "2023-05-05T12:12:12Z")

</div>

Below is a sample log entry from SNMP:&nbsp; I need to create an event extraction and include all the SMI Experimental variables.&nbsp; The challenge is that the column/attribute names will change depending on the trap.&nbsp; &nbsp;One time it may be

“SNMPv2-SMI::experimental.94.1.11.1.3.80.6.4.130.241.201.63.128.0.0.0.0.0.0.0.0.129”: “129”  
and next event&nbsp; may be

“SNMPv2-SMI::experimental.94.1.11.1.3.80.6.4.130.241.201.63.128.0.0.0.0.0.0.0.0.80”: “80”

Is there a “field” that will let me dump all the elements into the event extraction, regardless of the column name?

{  
“event.type”: “LOG”,  
“content”: “SNMP trap (SNMPv2-SMI::enterprises.1139.3) reported from \*.\*.\*.\*\n”,  
“status”: “NONE”,  
“timestamp”: “1683220514287”,  
“device.address”: “10.61.170.246”,  
“dt.entity.snmptraps:com\_dynatrace\_ext\_snmp-traps”: “CUSTOM\_DEVICE-”,  
“log.source”: “snmptraps”,  
“loglevel”: “NONE”,  
“snmp.trap\_oid”: “SNMPv2-SMI::enterprises.1139.3”,  
“SNMPv2-SMI::enterprises.1139.3.8888.1.0”: “2”,  
“SNMPv2-SMI::enterprises.1139.3.8888.2.0”: “1207”,  
“SNMPv2-SMI::enterprises.1139.3.8888.3.0”: “1043”,  
“SNMPv2-SMI::enterprises.1139.3.8888.4.0”: “DG1\_F\_4”,  
“SNMPv2-SMI::experimental.94.1.11.1.3.80.6.4.130.241.201.63.128.0.0.0.0.0.0.0.0.129”: “129”,  
“SNMPv2-SMI::experimental.94.1.11.1.6.80.6.4.130.241.201.63.128.0.0.0.0.0.0.0.0.129”: “8”,  
“SNMPv2-SMI::experimental.94.1.11.1.7.80.6.4.130.241.201.63.128.0.0.0.0.0.0.0.0.129”: “4”,  
“SNMPv2-SMI::experimental.94.1.11.1.8.80.6.4.130.241.201.63.128.0.0.0.0.0.0.0.0.129”: “.0.0”,  
“SNMPv2-SMI::experimental.94.1.11.1.9.80.6.4.130.241.201.63.128.0.0.0.0.0.0.0.0.129”: “Symmetrix 000197600510 TPDataPool DG1\_F\_4 : Data Pool configuration has changed.”,  
“SNMPv2-SMI::experimental.94.1.6.1.20.80.6.4.130.241.201.63.128.0.0.0.0.0.0.0.0”: “000197600510”,  
“SNMPv2-SMI::experimental.94.1.6.1.3.80.6.4.130.241.201.63.128.0.0.0.0.0.0.0.0”: “11”,  
“snmp.version”: “1”  
}

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [May 7, 2023, 10:20am UTC](https://community.dynatrace.com/t/snmp-traps-referencing-oids-without-knowing-the-attribute-name/39611/2 "2023-05-07T10:20:50Z")

</div>

[@Ed\_Cox](https://community.dynatrace.com/user/44592),

In my case, I have uploaded MIB files to the ActiveGates, and now I don’t have OIDs, but their resolution name. Do you think it might help in your use-case?

---

<div class="post-metadata">

**Author:** ![Ed\_Cox](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@Ed\_Cox](https://community.dynatrace.com/u/Ed_Cox)\
**Post date:** [June 1, 2023, 2:05pm UTC](https://community.dynatrace.com/t/snmp-traps-referencing-oids-without-knowing-the-attribute-name/39611/3 "2023-06-01T14:05:50Z")

</div>

Thank you, Antonio…I THINK I’m going to use the OID Trim function to help with this situation.

I would still like a way to have a index for a OID so that I can reference with a variable.

---

<div class="post-metadata">

**Author:** ![copeca1012](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@copeca1012](https://community.dynatrace.com/u/copeca1012)\
**Post date:** [August 23, 2023, 2:50pm UTC](https://community.dynatrace.com/t/snmp-traps-referencing-oids-without-knowing-the-attribute-name/39611/4 "2023-08-23T14:50:34Z")

</div>

I just open a new idea requesting something similar to this

[https://community.dynatrace.com/t5/Product-ideas/Would-it-be-possible-to-create-an-option-for-the-SNMP-Extension/idi-p/221425](https://community.dynatrace.com/post/221425)
