NetXMS only using public community string

Started by ryand, November 13, 2018, 04:03:49 PM

Previous topic - Next topic

ryand

Hi.

I am new to NetXMS so I hope I haven't missed anything.

I am trying to use it to scan my network using Network Discovery. The documentation states that there is an SNMP community string defined in the Network Discovery section, this is not the case, so I can only assume that its been updated and now uses the SNMP config section of the server.

In that section I have 2 communities defined (none of them are public). However, when I do a network disovery I can see that netxms is trying to use "public" and "v1" only. It never uses my predefined strings. I even went as far as adding in the config paramter DefaultCommunityString (however I don't think thats used anymore).

So to be clear, I configured my SNMP strings in the SNMP configuration section only and ran a network discovery. However this is what NetXMS actually does...


15:30:20 snmp packet from: 172.16.1.139 version: 1
15:30:20 snmp community: public
15:30:20 snmp,debug error: no such name
15:30:20 snmp packet from: 172.16.1.139 version: 1
15:30:20 snmp community: public
15:30:20 snmp,debug error: no such name
15:31:25 snmp packet from: 172.16.1.139 version: 1
15:31:25 snmp community: public
15:31:25 snmp,debug error: no such name
15:31:25 snmp packet from: 172.16.1.139 version: 1
15:31:25 snmp community: public
15:31:25 snmp,debug error: no such name
15:32:30 snmp packet from: 172.16.1.139 version: 1
15:32:30 snmp community: public
15:32:30 snmp,debug error: no such name
15:32:30 snmp packet from: 172.16.1.139 version: 1
15:32:30 snmp community: public
15:32:30 snmp,debug error: no such name
15:33:35 snmp packet from: 172.16.1.139 version: 1
15:33:35 snmp community: public
15:33:35 snmp,debug error: no such name
15:33:35 snmp packet from: 172.16.1.139 version: 1
15:33:35 snmp community: public
15:33:35 snmp,debug error: no such name
15:34:25 snmp packet from: 172.16.1.139 version: 1
15:34:25 snmp community: public
15:34:25 snmp,debug error: no such name
15:34:40 snmp packet from: 172.16.1.139 version: 1
15:34:40 snmp community: public
15:34:40 snmp,debug error: no such name
15:34:40 snmp packet from: 172.16.1.139 version: 1
15:34:40 snmp community: public
15:34:40 snmp,debug error: no such name



Can anyone share some advise?

Victor Kirhenshtein

Hi,

list of community strings to try has been moved to Configuration -> SNMP Credentials. We will update documentation.

Best regards,
Victor

ryand

Hi.

Thank you for the reply.

As I tried to mention above. I have added 2 SNMP Community strings and removed the default "public" one, however public is the only one that hits my end devices. (and version 1)

Not sure if it matters but here is my version

root@netxms:/home/csadmin# netxmsd -v
NetXMS Server Version 2.2.10 Build 9516 (2.2.10) (UNICODE)
NXCP: 4.48.1.14 (AES-256, Blowfish-256, 3DES, AES-128, Blowfish-128)
Built with: g++ (Ubuntu 7.3.0-16ubuntu3) 7.3.0

Victor Kirhenshtein

Hi,

did you run configuration poll on device? During configuration poll server will try existing community string (I suppose it is currently set to "public"), if device does not respond to it, then it tries configured communities. Note that in such configuration device do respond to "public" it will remain configured.

Best regards,
Victor

ryand

Hi.

Ok, so maybe I am going about this wrong.

I really hope I am just being an idiot.

I am trying to do this. Create network discovery rule to find all my devices +-2000 devices, so I do not want to add them all individually.

NetXMS finds them under "Entire Network" and I have added the correct SNMP details under "Configuration > SNMP Credentials".

When I click on the host NetXMS finds it has a ? attached to it. The object details says

isSNMP = True
snmpVersion = 2c

but Driver says Generic (instead of Mikrotik) and node type says Unknown.

Now, If I "Bind" that to an Infrastructure container and manually update the SNMP details and Poll it manually, it finds everything correctly.

I guess I just want Network Discovery to use the correct SNMP details and discovery it first, is this not possible?

Victor Kirhenshtein

Hi,

yes, server should use community strings listed in "SNMP Credentials" during discovery. Can you run server with debug level 5 for some time and check for lines with word SnmpCheckCommSettings?

Best regards,
Victor