Ilya Etingof
Ilya Etingof
Here we go: > 2018-11-01T15:20:30.05 snmpfwd-client: ERROR trunk message #6, SNMP error: Second OID not snmpTrapOID callflow-id=8b2ad914b8 trunk-id=trunk-1 server-snmp-engine-id=0x0102030405070809 server-snmp-transport-domain=1.3.6.1.6.1.1.100 server-snmp-peer-address=10.211.26.107 server-snmp-peer-port=60067 server-snmp-bind-address=10.53.17.197 server-snmp-bind-port=1163 server-snmp-security-model=2 server-snmp-security-level=1 server-snmp-security-name=public server-snmp-context-engine-id=0x0102030405070809 server-snmp-context-name= server-snmp-pdu=SNMPv2TrapPDU#1.3.6.1.6.3.1.1.4.1.0:'1.3.6.1.6.3.1.1.5.1',1.3.6.1.2.1.1.3.0:'5000',...
> Each PDU will only point to one interface, I will receive multiple PDUs for different interfaces. > What I want is white list, example, i want to allow interface...
> If you checked the payload, it did include the mandatory trap oid, I suspect the code is looking for 1.3.6.1.6.3.1.1.4.1.0 as 2nd OID, but it is on 1st OID...
> It should be either untouch or drop the whole PDU. Dropping some OID from a PDU will cause the target server to discard the trap as missing the required...
That's surprising that you do not get anything on stderr. I assume it did not go into a logfile/syslog. Meanwhile, you can run daemons as root if you make them...
It would be easier to debug having complete configuration. Off the top of my head, if the only difference between these TRAPs is their SNMP version, why can't you have...
Could you please look up [this message](https://github.com/etingof/snmpfwd/blob/master/scripts/snmpfwd-client.py#L748) in the log? Is it present, does it look as expected? Secondly, looking into the code, could it be that you actually have...
Oh, the example appears misleading! Let me fix the documentation... Let's keep this issue open as a reminder.
Do you need to filter by the OID or by its value or by its MIB name or by some combination of those?
I think this exact work flow is yet to be implemented. What you could do now is to filter/route messages [by the OIDs](http://snmplabs.com/snmpfwd/configuration/server-configuration.html#snmp-pdu-oid-prefix-pattern-list-server-option) or match the OIDs and [override their...