[SNMP4J] AuthenticationFailure Trap Requests

ulrich berl ulrich.berl at gmx.net
Fri Jul 13 13:37:02 CEST 2018


Hi!

Currently i use an snmp agent extending BaseAgent for programmatic configuration of the agent.

Some requests:

1) The BaseAgent isn't sending out an AuthenticationFailure Trap per default - this is due 'missing':

usm.getCounterSupport().addCounterListener(snmpv2MIB)

as done in e.g. example/SampleAgent - AgentConfigManager.

Overriding the init() method of the BaseAgent will help:

    @Override
    public void init() throws IOException {
        super.init();
        usm.getCounterSupport().addCounterListener(snmpv2MIB);
    }

Maybe it could be part of default BaseAgent ?

2) What about getter/setter for snmpEnableAuthenTraps in SNMPv2MIB ?

It would be handy to enable/disable sending AuthenTraps in agent programmatically (via snmp set works):

void setSnmpEnableAuthenTraps(SnmpEnableAuthenTrapsEnum snmpEnableAuthenTraps)
SnmpEnableAuthenTrapsEnum getSnmpEnableAuthenTraps()

3) What about addNotifyFilterEntry/addNotifyFilterProfileEntry method in SnmpNotificationMIB ?

br, Ulrich


More information about the SNMP4J mailing list