UserMap Collection : Add Method |
Private Sub AddUser(username As String, authPass As String, _ authProt As AuthenticationConstants, privPass As String, privProt As PrivacyConstants) Dim snmpUser As New User snmpUser.Name = username snmpUser.AuthenticationPassword = authPass snmpUser.AuthenticationProtocol = authProt snmpUser.PrivacyPassword = privPass snmpUser.PrivacyProtocol = privProt Agent1.AuthoritativeEngine.Users.Add snmpUser End Sub