Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. NetXMS only using public community string

NetXMS only using public community string

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 15.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    R
    ryand
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi,

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

      Best regards,
      Victor

      1 Reply Last reply
      0
      • R
        R
        ryand
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • R
            R
            ryand
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups