feat: introduced multi_bulk_walk_cmd - #216
Open
gmaiyani-crest wants to merge 3 commits into
Open
Conversation
…that extends bulk_walk_cmd to support walking multiple OID trees simultaneously in a single SNMP session, providing functionality similar to the old pysnmp bulkCmd while maintaining walk-style iteration convenience. Implemented per-varbind lexicographic control and independent state tracking Maintained full backward compatibility with single-varbind bulk_walk_cmd usage
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
multi_bulk_walk_cmdfor Multi-Varbind SNMP WalkingSummary
Introduces
multi_bulk_walk_cmdto walk multiple OID trees simultaneously with lexicographic mode control per varbind.Why?
bulk_walk_cmdsupports only a single varbind at a time and already includes lexicographic mode handling.However, to achieve the same behavior for multiple varbinds (from different OID subtrees), each varbind must be walked separately in sequence.
The new multi_bulk_walk_cmd addresses this by allowing multiple varbinds to be walked in parallel within a single session, maintaining lexicographic consistency while significantly reducing network roundtrips and improving overall efficiency.
Key Changes
multi_bulk_walk_cmdfunction for parallel walking of multiple OID subtreesbulkCmdmulti-varbind with lexicographic capability with modern async/await patternsbulk_walk_cmdusagemaxRowshandling that counts actual OIDs (not iterations) with automatic truncationPerformance
bulk_walk_cmdexternally (i.e., running processes per OID subtree to simulate concurrency), The overall call count and runtime both increased when max_repetitions was large.