Snmp-Ignition-Module SNMP v3 Setup

Continuing the discussion from SNMP function for Ignition version 8:

Has anyone successfully configured SNMP v3 with this module?

SNMP v2c works great, but I'm having trouble getting SNMP v3 to function.

Specifically, I'm trying to use authentication (SHA512) and privacy (AES128), which typically require separate passwords for auth and priv. But the module's getV3 function seems to only accept a single password argument, like this:
system.snmp.getV3('Ipaddress', 161, OIDs, 3, user, pass, 2, 2)
The error is:
com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File "", line 25, in ValueError: Length of values does not match length of paths
The module is free so It's hard to complain! Just leaving some feedback in case someone will have the same issue. I might open an issue on GitHub too.

I swear I played around with this one, I never built it as its using Gradle and I'm normally using Maven to work with.
I have had limited success with authentication on some of these.

So, looking at the Java, we have this:

UsmUser usr = new UsmUser(
    			new OctetString(user),
    			AuthMD5.ID,
    			new OctetString(pass),
    			PrivDES.ID,
    			new OctetString(pass)
		);

So that is calling the following function:

UsmUser(OctetString securityName, OID authenticationProtocol, OctetString authenticationPassphrase, OID privacyProtocol, OctetString privacyPassphrase){
}

So in the code, it is using the same passphrase for both Auth and Priv.

1 Like

I used the module that someone built here:

I think I use the same password for both, I need to check.

What if I don't use MD5 or DES? :thinking:

I am part way through checking this code, I’m not getting the same error with a mikrotik router as the snmp source.

Would any of you be open to testing my new SNMP driver module? It provides OPC UA device drivers for SNMP v1/v2c/v3.

It will eventually be included in Embr after more testing.

I’m specifically looking for SNMP v3 testing.

9 Likes

Yes I’m very keen, I’ve got a bunch of half finished snmp code myself.