ulrich berl
2018-07-13 11:37:02 UTC
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
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