Retrieving int 4294967294 via SNMP4J
10:35 21 Jan 2026

I'm trying to read Time Base Schedule Date Parameter from a device according to NTCIP 1201v03 using the OID 1.3.6.1.4.1.1206.4.2.6.3.3.2.1.4.2. The value stored in the device for that OID is 4294967294. I am able to read this value via command line using

snmpget -v1 -c "public" foo:161 1.3.6.1.4.1.1206.4.2.6.3.3.2.1.4.2

But when I try to read the same value with SNMP4J using the code below, responseEvent.getResponse() object returns null.

PDU pdu = targetBuilder.pdu().type(PDU.GET)
            .contextName(CONTEXT_NAME)
            .oid(new OID("1.3.6.1.4.1.1206.4.2.6.3.3.2.1.4.2"))
            .build();

        ResponseEvent responseEvent = new SnmpBuilder().udp().v1().build()
            .send(pdu, targetBuilder.build());
        return responseEvent.getResponse();

The code works fine with hundreds of OIDs including other instances of Time Base Schedule Date Parameter which store different values. I suspect 4294967294 being larger than an int is causing the problem but I can't explain why the responseEvent.getResponse() is null.

snmp snmp4j