Skip to content

multiple sources with same snmp security name not working #51

@aganiger

Description

@aganiger

I have configured snmp forwarder for traps with snmp v1 and snmp v2. The configuration is as below (copied related configuration):

program-name: snmpfwd-server

snmp-credentials-group {
snmp-transport-domain: 1.3.6.1.6.1.1.100
snmp-bind-address: "10.10.10.253:162"
snmp-engine-id: 0x0102030405070809

snmpv2traps {
snmp-security-model: 2
snmp-security-name: public
snmp-security-level: 1
snmp-community-name: public
snmp-credentials-id: snmp-credentials-snmpv2traps
}
snmpv1traps {
snmp-security-model: 1
snmp-security-name: public
snmp-security-level: 1
snmp-community-name: public
snmp-credentials-id: snmp-credentials-snmpv1traps
}
}

I noticed that when snmp-security-name is same for both sources, the following error is thrown. Is it not supported?

2020-05-28T01:47:43.42 snmpfwd-server: ERROR Traceback (most recent call last):;
2020-05-28T01:47:43.42 snmpfwd-server: ERROR File "/usr/bin/snmpfwd-server.py", line 981, in ; main();
2020-05-28T01:47:43.42 snmpfwd-server: ERROR File "/usr/bin/snmpfwd-server.py", line 735, in main; if snmpEngineMap['securityName'][securityModel] == securityModel:;
2020-05-28T01:47:43.42 snmpfwd-server: ERROR KeyError: <Integer value object at 0x7f68618d0d90 subtypeSpec <ConstraintsIntersection object at 0x7f68625e2750 consts <ValueRangeConstraint object at 0x7f68625e2650 consts -2147483648, 2147483647>> tagSet <TagSet object at 0x7f686692eb50 tags 0:0:2> payload [1]>;
2020-05-28T01:47:43.42 snmpfwd-server: INFO process terminated

Please let me know if any other info is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions