-
Bug
-
Resolution: Fixed
-
High
-
3.12.2
-
None
-
1
-
Severity 2 - Major
-
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
- Requires Several SNMP_v3 devices
- 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
- mentioned in
-
Page Failed to load