Provided is a suite of applications used to implement SNMP v1, SNMP v… #462
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.
SNMP Packet Capturing Tool
The snmp packet capturing is fully written in Go. it provides same output as NetSNMP gives for Get and Walk. It supports IPv4 and IPv6, using SNMPv1, SNMPv2c or SNMPv3. Builds are tested against linux/amd64.
Overview
This tool works as follows:
if user provide the OID in the command line arguments then it will check provided OID is singular or Tabular based on that it will fire Get or Walk request on the particular OID.
if user does not provide the OID then it will get the default OID [EX. .1.3.6.1.2.1.1.2.0] and it will fire the Get reuqest on this OID.
User can also provide the multiple OIDs in the Get request and it will gives the result of each OID seperated by new line.
snmp packet capturing has the following SNMP functions:
snmp packet capturing has the following functions with Configurable parameter:
-t --> to specify timeout (int)
Default value = 2 second
-r --> to specify retry count (int)
Default value = 6
-exp --> to specify the exponantial timeout (bool)
Default value = false
-D --> to run command in debug mode (it enable the logs for gosnmp)
Usage
Running snmp packet capturing gives the following output (from my printer):
The following BER types have been implemented: