# SNMP function for Ignition version 8

**URL:** <https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167>\
**Category:** 3rd Party Modules\
**Tags:** ignition81, ignition80, ignition83\
**Created:** [May 29, 2020, 3:22pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167 "2020-05-29T15:22:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![allnet](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@allnet](https://forum.inductiveautomation.com/u/allnet)\
**Post date:** [May 29, 2020, 3:22pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/1 "2020-05-29T15:22:26Z")

</div>

Hi all.

[Here](https://github.com/gitRaiku/Snmp-Ignition-Module) you have a simple SNMP function tested with v1/v2c devices under V8

As of now the only operation available is snmp Get and can be called by using system.snmp.snmpGet('community', 'address', port, 'OID')  
Returns value as string

I was in need of a simple function for SNMP. The driver on market seems a little complicated and  
the free one made by BYES for V7.9 is not free anymore for V8 ( for a good reason )

So I asked my son for help, we took the function example, tweaked the code from [here](https://sites.google.com/site/mullais/logic/java/how-to-run-a-simple-snmp-get-program-using-java-with-eclipse?tmpl=%2Fsystem%2Fapp%2Ftemplates%2Fprint%2F&showPrintDialog=1) and we got  
exactly what I needed. Module and source are available on [github](https://github.com/gitRaiku/Snmp-Ignition-Module).

Any comments are welcomed.  
Enjoy

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 29, 2020, 3:36pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/2 "2020-05-29T15:36:03Z")

</div>

Looks good!

One nit: You have your java package name backwards, and it doesn’t have elements to uniquely identify your module. It should be something like `ca.allnetauto.ignition.snmp`, assuming your company’s domain name is allnetauto.ca. Consider adding an element to the package names to indicate their scope, like `ca.allnetauto.ignition.snmp.common`.

---

<div class="post-metadata">

**Author:** ![allnet](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@allnet](https://forum.inductiveautomation.com/u/allnet)\
**Post date:** [May 29, 2020, 3:49pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/3 "2020-05-29T15:49:54Z")

</div>

Thank you for pointing that one out, good observation.  
Will fix it in the next revision.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [May 29, 2020, 4:08pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/4 "2020-05-29T16:08:32Z")

</div>

Unrelated to your direct post - how did you make a modl for Ignition? It was something I was thinking about trying my hand at just to learn how but I can’t find any good resources. I assume you had to do it in Java?

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [May 29, 2020, 5:26pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/5 "2020-05-29T17:26:56Z")

</div>

Start here:  
[https://docs.inductiveautomation.com/display/SE/Creating+a+Module](https://docs.inductiveautomation.com/display/SE/Creating+a+Module)

Warning. You are expected to know at least the basics of Java programming. But really need to be at least at an intermediate level to understand what is going on.

With that said, once you have your environment set up you can find ready made examples at:

> **[inductiveautomation/ignition-sdk-examples](https://github.com/inductiveautomation/ignition-sdk-examples)**
>
> Ignition SDK Example Projects. Contribute to inductiveautomation/ignition-sdk-examples development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 29, 2020, 5:31pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/6 "2020-05-29T17:31:29Z")

</div>

There’s also some cool stuff in the works for quick generation of module ‘skeletons’ - expect to hear more about that soon, probably here on the forums.

---

<div class="post-metadata">

**Author:** ![allnet](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@allnet](https://forum.inductiveautomation.com/u/allnet)\
**Post date:** [May 29, 2020, 6:06pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/7 "2020-05-29T18:06:09Z")

</div>

Though it seems overwhelming at start, following the examples gives you a pretty good understanding on how to make a module. And also the .modl file was generated at the end when running `mvn package`, just keep trying to figure it out. Good luck

---

<div class="post-metadata">

**Author:** ![allnet](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@allnet](https://forum.inductiveautomation.com/u/allnet)\
**Post date:** [June 1, 2020, 5:11pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/8 "2020-06-01T17:11:08Z")

</div>

Ver 1.0.1 is now [here](https://github.com/gitRaiku/Snmp-Ignition-Module).

This version adds the ability to get multiple OIDs from a single request, and also to change the snmp version, retry count and timeout.

---

<div class="post-metadata">

**Author:** ![Marc.Akoto](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/marc.akoto/32/19291_2.png) [@Marc.Akoto](https://forum.inductiveautomation.com/u/Marc.Akoto)\
**Post date:** [November 6, 2020, 9:36am UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/9 "2020-11-06T09:36:10Z")

</div>

Hi allnet, very useful function, thanks for sharing !  
As I understand this SNMP module works in “polling” mode, by sending out requests through the system.snmp.snmpGet() script.  
Is there a possibility to setup this module in “traps listening” mode ? For instance by adding a MIB to translate automatically the traps randomly received from device agents ?

---

<div class="post-metadata">

**Author:** ![allnet](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@allnet](https://forum.inductiveautomation.com/u/allnet)\
**Post date:** [November 7, 2020, 3:47pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/10 "2020-11-07T15:47:10Z")

</div>

Hi akotomarco  
We intend on adding a trap listening mode however not in the near future as we are busy at the moment

---

<div class="post-metadata">

**Author:** ![maxime.guenet](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@maxime.guenet](https://forum.inductiveautomation.com/u/maxime.guenet)\
**Post date:** [December 20, 2023, 8:30am UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/11 "2023-12-20T08:30:30Z")

</div>

Hi @allnet,

Did you end up working on a trap-listening mode?

Thank you for your work 🙂

---

<div class="post-metadata">

**Author:** ![hw79](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hw79](https://forum.inductiveautomation.com/u/hw79)\
**Post date:** [June 18, 2024, 9:23pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/12 "2024-06-18T21:23:35Z")

</div>

A bit of a resurrection here, but I noticed that someone forked this project and updated it on Github.

[GitHub - kiilez/Snmp-Ignition-Module: A module that allows the user to use snmp operations in scripts](https://github.com/kiilez/Snmp-Ignition-Module)

However, I don't see a way to get the `.modl` from this repo. I'm thinking this involves the module sdk in some way but I'm clueless in that area.

---

<div class="post-metadata">

**Author:** ![tashby](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tashby/32/67562_2.png) [@tashby](https://forum.inductiveautomation.com/u/tashby)\
**Post date:** [July 22, 2024, 8:26pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/13 "2024-07-22T20:26:21Z")

</div>

[Norcal-SNMP-Driver-signed.modl](https://forum.inductiveautomation.com/uploads/short-url/4OCqAaLakmfsLYstPOT8bwh7T3P.modl) (608.0 KB)  
I don't know how to do that either, but had one of my other engineers do it for me. See attached. Hopefully this helps.

---

<div class="post-metadata">

**Author:** ![tashby](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tashby/32/67562_2.png) [@tashby](https://forum.inductiveautomation.com/u/tashby)\
**Post date:** [July 22, 2024, 8:29pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/14 "2024-07-22T20:29:29Z")

</div>

I was using the updated one referenced by @hw79 and had considerable success with the v3 other than it doesn't seem to respect the settings for authProt and privProt. Seems like no matter what I put there it uses MD5 and DES internally. Anyone else had better success for those settings? I also notice it doesn't have a spot to enter the separate keys. Just 1 password, when there should be 2 basically. Unless I'm missing something.

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [October 8, 2025, 5:43am UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/15 "2025-10-08T05:43:34Z")

</div>

I’ve been looking at this today and I’ve found the problem, I’m happy to update and push the code, you still got that engineer handy to compile to a module?

(walkv3 works ok, it’s just an issue with getv3)

---

<div class="post-metadata">

**Author:** ![andrew.budaiev](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.budaiev/32/72921_2.png) [@andrew.budaiev](https://forum.inductiveautomation.com/u/andrew.budaiev)\
**Post date:** [October 8, 2025, 8:35am UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/16 "2025-10-08T08:35:57Z")

</div>

You can also look into this one (still in beta though).

> [@Musson Industrial's Embr-SNMP Module (BETA)](https://forum.inductiveautomation.com/t/musson-industrials-embr-snmp-module-beta/111185):
>
> Embr-SNMP (BETA) Stability Warning This module is still in beta, and therefore breaking configuration changes may occur between now and the final release. Use at your own risk. This thread is for discussion related to Musson Industrial's Embr-SNMP module. Embr-SNMP provides a set of OPC UA device drivers for SNMPv1, SNMPv2c, and SNMPv3. Usage Install the module. Add your devices under OPC UA/Device Connections. Point your tags at the OPC UA device using the OID as the Node ID. Example (re…

---

<div class="post-metadata">

**Author:** ![tashby](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tashby/32/67562_2.png) [@tashby](https://forum.inductiveautomation.com/u/tashby)\
**Post date:** [October 8, 2025, 1:53pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/17 "2025-10-08T13:53:01Z")

</div>

Yes I do. Thank you for looking into this!

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [October 8, 2025, 10:14pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/18 "2025-10-08T22:14:42Z")

</div>

Here’s my fork with the updated code:

[joshrdunstan/ignition-module-snmp: A module that allows the user to use snmp operations in scripts](https://github.com/joshrdunstan/ignition-module-snmp)

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [October 8, 2025, 10:14pm UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/19 "2025-10-08T22:14:59Z")

</div>

Great, thanks for the link, different approach here, will try it out!

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [October 9, 2025, 2:33am UTC](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167/20 "2025-10-09T02:33:41Z")

</div>

I’ve compiled and pushed, working!

[Norcal-SNMP-Driver.modl (v1.1.1)](https://github.com/joshrdunstan/ignition-module-snmp/blob/8fdd57b6e2bdf3dc539f261a3a3512faa7f9c7dc/norcal-snmp-driver/Norcal-SNMP-Driver.modl)

[Next page](https://forum.inductiveautomation.com/t/snmp-function-for-ignition-version-8/35167.md?page=2)
