Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-14791

Discovery Tool fails to do SNMP network walk if SNMP v3 is selected

      Issue Summary

      Using pattern: SNMP_Deviceinfo_Network.pat (v3.1.0)
      The bulk walk instruction can fail as the instruction set has changed.

      Inside ProviderClasses.dll, the TryBulkWalk() method calls Lextm.SharpSnmpLib.Messaging.Messanger.BulkWalk() with invalid arguments:

      • The last two args (IPrivacyProvider and ISnmpMessage) are both null (This causes the error as described)
        Please see second portion of: stackoverflow

      This is reproducible on Data Center: (no)

      Steps to Reproduce

      1. Requires Several SNMP_v3 devices
      2. Use a Pattern using SNMP_WALK

      Expected Results

      Using patterns shouldn't error in discovery

      Actual Results

      Error happening with SNMP_WALK

      The below exception is thrown in the discovery.log file:

      10/24/2023 6:58:31 AM: [Normal] Exceptions:
      10/24/2023 6:58:31 AM: [Normal] Value cannot be null.
      Parameter name: report
         at Lextm.SharpSnmpLib.Messaging.GetBulkRequestMessage..ctor(VersionCode version, Int32 messageId, Int32 requestId, OctetString userName, OctetString contextName, Int32 nonRepeaters, Int32 maxRepetitions, IList`1 variables, IPrivacyProvider privacy, Int32 maxMessageSize, ISnmpMessage report) in C:\Users\lextudio\source\repos\sharpsnmplib\SharpSnmpLib\Messaging\GetBulkRequestMessage.cs:line 153
         at Lextm.SharpSnmpLib.Messaging.Messenger.BulkHasNext(VersionCode version, IPEndPoint receiver, OctetString community, OctetString contextName, Variable seed, Int32 timeout, Int32 maxRepetitions, IList`1& next, IPrivacyProvider privacy, ISnmpMessage& report) in C:\Users\lextudio\source\repos\sharpsnmplib\SharpSnmpLib\Messaging\Messenger.cs:line 998
         at Lextm.SharpSnmpLib.Messaging.Messenger.BulkWalk(VersionCode version, IPEndPoint endpoint, OctetString community, OctetString contextName, ObjectIdentifier table, IList`1 list, Int32 timeout, Int32 maxRepetitions, WalkMode mode, IPrivacyProvider privacy, ISnmpMessage report) in C:\Users\lextudio\source\repos\sharpsnmplib\SharpSnmpLib\Messaging\Messenger.cs:line 804
         at Insight.Discovery.ProviderClasses.SNMPProvider.TryBulkWalk(VersionCode versionCode, Variable commandVar, List`1 result, Boolean forceBulkWalk)
      10/24/2023 6:58:31 AM: [Debug] Start adding result data from snmp-data result.
      10/24/2023 6:58:31 AM: [Debug] Finish adding result data from snmp-data result.
      10/24/2023 6:58:31 AM: [Debug] Generating response for command 
          1.3.6.1.2.1.2.2.1;
          1.3.6.1.2.1.4.20.1.2
      10/24/2023 6:58:31 AM: [Debug] BulkWalk Response error for command: 
          1.3.6.1.2.1.2.2.1;
          1.3.6.1.2.1.4.20.1.2
      10/24/2023 6:58:31 AM: [Normal] Exceptions:
      10/24/2023 6:58:31 AM: [Normal] Value cannot be null.
      Parameter name: report
         at Lextm.SharpSnmpLib.Messaging.GetBulkRequestMessage..ctor(VersionCode version, Int32 messageId, Int32 requestId, OctetString userName, OctetString contextName, Int32 nonRepeaters, Int32 maxRepetitions, IList`1 variables, IPrivacyProvider privacy, Int32 maxMessageSize, ISnmpMessage report) in C:\Users\lextudio\source\repos\sharpsnmplib\SharpSnmpLib\Messaging\GetBulkRequestMessage.cs:line 153
         at Lextm.SharpSnmpLib.Messaging.Messenger.BulkHasNext(VersionCode version, IPEndPoint receiver, OctetString community, OctetString contextName, Variable seed, Int32 timeout, Int32 maxRepetitions, IList`1& next, IPrivacyProvider privacy, ISnmpMessage& report) in C:\Users\lextudio\source\repos\sharpsnmplib\SharpSnmpLib\Messaging\Messenger.cs:line 998
         at Lextm.SharpSnmpLib.Messaging.Messenger.BulkWalk(VersionCode version, IPEndPoint endpoint, OctetString community, OctetString contextName, ObjectIdentifier table, IList`1 list, Int32 timeout, Int32 maxRepetitions, WalkMode mode, IPrivacyProvider privacy, ISnmpMessage report) in C:\Users\lextudio\source\repos\sharpsnmplib\SharpSnmpLib\Messaging\Messenger.cs:line 804
         at Insight.Discovery.ProviderClasses.SNMPProvider.TryBulkWalk(VersionCode versionCode, Variable commandVar, List`1 result, Boolean forceBulkWalk)
      How To Replicate
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

          Form Name

            [JSDSERVER-14791] Discovery Tool fails to do SNMP network walk if SNMP v3 is selected

            Marc Dacanay made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 878476 ]
            Volodymyr Batrukh made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Volodymyr Batrukh made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Volodymyr Batrukh made changes -
            Fix Version/s New: Discovery 3.2.1 [ 106449 ]
            Zakhar Listiev made changes -
            Assignee New: Zakhar Listiev [ 11507b174037 ]
            Zakhar Listiev made changes -
            Status Original: Short Term Backlog [ 12074 ] New: In Progress [ 3 ]
            Zakhar Listiev made changes -
            Status Original: Long Term Backlog [ 12073 ] New: Short Term Backlog [ 12074 ]
            Marek Parfianowicz made changes -
            Status Original: Short Term Backlog [ 12074 ] New: Long Term Backlog [ 12073 ]
            Zakhar Listiev made changes -
            Status Original: Gathering Impact [ 12072 ] New: Short Term Backlog [ 12074 ]
            Zakhar Listiev made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]

              11507b174037 Zakhar Listiev
              4bbe53f6c66f Louis (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: