Configuring snmpv3 informs

Daniel Savard <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi everyone!

I am trying to configure snmpv3 informs and I am a little bit confuse about
the overall process.

My snmptrapd daemon is configured using options: -Lf /var/log/snmptrapd.log
at command line and doNotLogTraps false in the snmptrapd.conf file. I
created the user in the /var/lib/net-snmp/snmptrapd.conf file specifying the
authPassword, privPassword and both associated protocols. I didn't specify
an engineID. Stopped, started, stopped, started and checked the user has
been created.

On the client, I configured in the snmpd.conf the following (I have other
definitions, but these are relevant to my problem):

agentSecName myUser
trapsess -v3 -Ci mySnmpTrapdserver
authtrapenable 1
linkUpDownNotifications yes
defaultMonitors yes

I have also the following in the snmp.conf

defVersion 3
defSecurityName myUser
defSecurityLevel authPriv
defAuthType MD5
defPrivType DES


Where myUser is the user created on the server in the
/var/lib/net-snmp/snmptrapd.conf file.

Now, I am able to send informs using the command snmpinform with all the
flags, however, when I am starting the snmpd on the client, I am having the
following messages in its log:

snmpd: send_trap: No securityName specified (Sub-id not found: iso ->
snmperrErrorFlag)
failed to run mteTrigger querysnmpd: send_trap: No securityName specified
failed to run mteTrigger querysnmpd: send_trap: No securityName specified
failed to run mteTrigger querysnmpd: send_trap: No securityName specified
failed to run mteTrigger querysnmpd: send_trap: No securityName specified
failed to run mteTrigger querysnmpd: send_trap: No securityName specified
failed to run mteTrigger querysnmpd: send_trap: No securityName specified
failed to run mteTrigger querysnmpd: send_trap: No securityName specified
failed to run mteTrigger querysnmpd: send_trap: No securityName specified
failed to run mteTrigger querysnmpd: send_trap: No securityName specified
NET-SNMP version 5.3.0.1

And if I am inducing a authenticationFailure, I am getting the following in
the log of the client:

Authentication failed for myUser
snmpd: send_trap: No securityName specified (plaintext scopedPDU header type
00: s/b 30)

and nothing in the server's log. I even added -u myUser in the trapsess
line, the No securityName message disappeared, however, no message has been
sent to the server.

What am I missing?

--
-----------------
Daniel Savard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.