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", //c.String("v3Username"),
AuthenticationProtocol: gosnmp.MD5,
PrivacyProtocol: gosnmp.AES,
AuthenticationPassphrase: "12345678", //c.String("v3AuthenticationPassphrase"),
PrivacyPassphrase: "12345678", //c.String("v3PrivacyPassphrase"),
},
},
},
SubAgents: []*GoSNMPServer.SubAgent{
{
//CommunityIDs: []string{c.String("community")},
CommunityIDs: []string{"public"},
OIDs: mibImps.All(),
},
},
}
the snmp agent work well, while if change priv protocol to AES192 or AES256, SnmpB and Pysnmp can not get correct data, wireshark shows malf package. Tried AES192C and AES256C the result is the same.