NetXMS Support Forum

English Support => General Support => Topic started by: mmarin11 on May 22, 2021, 03:53:19 AM

Title: Specify community in CreateSNMPTransport function
Post by: mmarin11 on May 22, 2021, 03:53:19 AM
Dear NetXMS community.

I'm trying to integrate Ekinops transport gear into NetXMS and this equipment requires the use of multiple snmp communities in order to get the data for specific slots. For example if we are trying to get interface data of card in slot #3 we have to append the slot number to the snmp community, if the snmp is public, we need to set the community as public3. Is there a way to specify the community in the CreateSNMPTransport NSXL function as an argument in order to use multiple snmp communities for the same node?

Thanks
Title: Re: Specify community in CreateSNMPTransport function
Post by: Filipp Sudanov on May 24, 2021, 02:44:17 PM
Currently CreateSNMP transport does not support this. I've created an issue, also there's no particular plan when this could be implemented https://track.radensolutions.com/issue/NX-2062

Meanwhile you can try creating multiple nodes with the same IP address, setting checkbox "Communication through external gateway" (this is needed so that system ignores same IP address for these nodes). Each node would have specific community string set. To consolidate all monitored values onto one node you can configure "push" DCIs on that one node and use PushDCIData() from transformation script in DCIs of the additional nodes.

If your device returns list of interfaces for all of these community strings, then interfaces with same IP address would be created. This should not cause much troubles, but you can handle this in Hook::CreateInterface to avoid interface creation for the additional nodes.
Title: Re: Specify community in CreateSNMPTransport function
Post by: mmarin11 on May 25, 2021, 03:54:22 AM
Thanks Filipp!