Search code examples
network-programmingsnmpsnmpsharpnet

SnmpSharpNet Add User (SNMPv3)


I'm very simply trying to add a user to the device given the security name, auth key, auth protocol, priv key, and priv protocol using VB.net. At this point, NOT using VB.net is not an option.

SNMPSharpNet does not seem to have a solution for this problem. Open to all and any alternatives. If I would know what OID's to store these values in then I would be all set, so that would be extremely helpful as well. Also open to using the PowerSNMP library.


Solution

  • The answer is to set usmUserStatus + index of new user equal to 4 (CREATE_AND_WAIT) and then set usmUserCloneFrom to usmSecurityName + index of user you want to clone from.