GoSNMPServer
GoSNMPServer copied to clipboard
GoSNMPServer is an SNMP server library fully written in Go. It provides Server Get, GetNext, GetBulk, Walk, BulkWalk, Set and Traps. It supports IPv4 and IPv6, using SNMPv2c or SNMPv3.
I found that after receiving the packet from the network, the code in the warehouse seems to execute each event in a single step. Is there a high concurrency problem...
Hey! Applying this patch: ```diff diff --git a/cmd/gosnmpserver/main.go b/cmd/gosnmpserver/main.go index 1a6c7f4c8faf..3b27dfff29e5 100644 --- a/cmd/gosnmpserver/main.go +++ b/cmd/gosnmpserver/main.go @@ -60,9 +62,8 @@ func runServer(c *cli.Context) error { { UserName: c.String("v3Username"), AuthenticationProtocol: gosnmp.MD5,...
I am using SnmpB(windows exe application) and Pysnmp with Python3, I created an usm as following: master := GoSNMPServer.MasterAgent{ Logger: GoSNMPServer.NewDefaultLogger(), SecurityConfig: GoSNMPServer.SecurityConfig{ AuthoritativeEngineBoots: 0, Users: []gosnmp.UsmSecurityParameters{ { UserName: "admin",...
Hi @slayercat This looks like a great program you have built. Apologies I'm not a developer/coder. I wanted to build an open source Trap receiver and display the trap in...
I don't know what you did by reverting that commit, but the version `v0.5.2` breaks auth with the following issue: ``` marshal: crypto/aes: invalid key size 0 ``` Tested using...
I have a problem with a data race in the `GoSNMPServer` during shutdown. This happens pretty reproducible in my test code. Ideally the Shutdown method would interrupt the `ServeNextRequest` method...
Once the `GoSNMPServer.NewSNMPServer`, as far as I know, there is no way to update or change the OIDs list. In some cases, new entries should be added or removed. Could...
toRet := []*GoSNMPServer.PDUValueControlItem{ { OID: APRA_SNMPREG_battery_Rated_Capacity, Type: gosnmp.Integer, //Type: gosnmp.Asn1BER(slayercat.Integer), OnGet: func() (value interface{}, err error) { fmt.Printf("Received get") return GoSNMPServer.Asn1IntegerWrap(batteryRatedCapacity), nil }, OnSet: func(value interface{}) (err error) { fmt.Printf("Received...
suggest some golang package which supports golang based snmpserver completely with all get/set/trap/walk options with good example .
Does GosnmpServer support TCP? in sample code, i see only UDP