Skip to content
GO SNMP Trap receiver and SNMP Get/Walk client
Go
Branch: master
Clone or download
Pull request Compare This branch is 21 commits ahead, 30 commits behind cdevr:master.
Latest commit 92cdb4c Aug 29, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tools const string update Aug 30, 2014
utils
Makefile added SNMP get for v3 and a goget program Aug 30, 2014
README.md
ber.go added snmp v1 trap parse support Aug 30, 2014
ber_test.go added all trap changed Aug 29, 2014
example.go added SNMP get for v3 and a goget program Aug 30, 2014
oid.go
oid_test.go Committing wapsnmp library for code.google.com. Oct 4, 2013
snmp.go added snmp v1 trap parse support Aug 30, 2014
snmp_test.go fixed go test Aug 29, 2014
udp_stub_connection.go

README.md

WapSnmp : SNMP client for golang

Currently supported operations:

  • SNMP v1/v2c/v3 trap receiver with V3 EngineID auto discovery
  • SNMP v1/v2c Get, GetMultiple, GetNext, GetBulk, Walk
  • SNMP V3 Get, Walk, GetNext

Compile

make

This will compile the following binaries:

  • goget : get single SNMP mib using SNMP v3
  • gowalk : walk SNMP mibs using SNMP v3
  • trapd : this program is able to receive SNMP v2 and v3 traps (you need to configure users for SNMP v3 traps)

You can run "go test" to perform unit test.

Using the code

  • The *_test.go files provide good examples of how to use these functions
  • file uder utils/ contain the main entry to the utility program. Then look at example.go and snmp.go to see how it works.

Not supported yet:

  • SNMP Informs receiver
  • SNMP v3 GetMultiple, GetBulk (these can be easily implemented since SNMP v3 Walk/Get/GetNext is working)
You can’t perform that action at this time.