We want to change DataMiner SNMP community strings and we want to know if this can affect DataMiner receiving SNMP traps from elements. In our system there are created TAG elements that send SNMP traps to DataMiner and we need to confirm that changing the SNMP community string on DataMiner side will not cause DataMiner stop receiving the incoming SNMP traps from these elements.
We have tested with SNMP Trap sender (QA simulator) and Generic trap receiver driver, SNMP community string changes didn't affect that DataMiner receive and process incoming SNMP traps. For testing we set DataMiner and SNMP trap sender with different community strings and always incoming traps were observed in the Generic trap receiver unless the IP didn't match.
Hi Elbano,
When you mention "... and we need to confirm that changing the SNMP community string on DataMiner side" are you referring to change the community string in the element settings? (see image below)
If this is the case, I performed a small test (using the Generic Trap Receiver) by sending a trap (SNMPv2 trap) from a Linux server with different community strings. As long as the source IP address configured in the Trap Receiver element corresponds to the SNMP Agent IP address available in the trap, it should work. This means that the filter is done by IP address and not by community string.
In addition, checking the trapInfo class used by a driver that processes SNMP traps (see DataMiner Development Library), I could not see the community string of a SNMP trap being processed.
I will suggest to perform anyway a test in a Staging DMA by sending a trap from the device with a different community string.
Thanks Elbano for the information.
I believe we can confirm that DataMiner will not process the community string when dealing with SNMP traps
Hi Miguel
I mean the Dataminer SNMP community string which can be configured in C: / Skyline DataMiner / DataMiner.xml.
Configuring SNMP agent community strings
By default, if no overrides are configured, the SNMP agent of a DMA will use “public” as the get community string and “private” as the set community string. You can override this on DMA level and on element level. Settings on element level override settings on DMA level.
To override this on DMA level:
1.Stop the DataMiner software.
2.Open C:Skyline DataMinerDataMiner.xml.
3.Specify the community strings in the SNMP tag:
4.Save the file.
5.Restart the DataMiner software.
I already have tested sending traps to the generic trap receiver and observed the same, traps were not received in the trap receiver only when the ip dont much. The community string can have any value.