trapsess problems

"Markus Hofer" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi 

I am currently working on implementing trap destinations using trapsess and I am running in some problems

Setup: I have 5 hosts
3 are one is using net-snmp-5.4.2.1(linux system)
1 is using net-snmp-5.4.1(linux system)
the other net-snmp-5.5(windows system)

What I want to do is to monitor traps simple by tcpdump on the linux hosts, what should work without any problems.

I added in the snmpd.conf file on the windows host the following lines

trapsess -v 3 -e 0x8000000001020304 -u snmpv3_SHA_authNoPriv_trap_dst6 -l authNoPriv -a SHA -A helloworld 10.16.10.60:162
(and similar ones for the other hosts)

However after restarting the agent(which should itself generate a trap), the snmpd.log says:

snmpd: send_trap: USM unknown security name (no such user exists) and therefore no traps are beeing sent
=>Why do i get an error like this?

I picked an example engineID which should be correct; i think the other parameters should be allright too, so as far as i see the configuration should be fine

Sending traps works, cause if i define trapsess like this:

trapsess -v 3 -u snmpv3_SHA_authNoPriv_trap_dst6 -l authNoPriv -a SHA -A helloworld 10.16.10.60:162
so without engineID the traps can be monitored by tcpdump without any problems!

I thought about if creating a user in the same config file would help, but cleary that does not make sense since the other trapsess definition works fine without any problems.

The same happens if I define trapsess on almost every other of the linux hosts, except one.

Interestengly enough the exact line like above

trapsess -v 3 -e 0x8000000001020304 -u snmpv3_SHA_authNoPriv_trap_dst3 -l authNoPriv -a SHA -A helloworld 10.16.10.60:162 

works on the host with 5.4.1, cause the log file gives

Aug 24 12:18:36 ssg3ux snmpd[14999]: Received TERM or STOP signal...  shutting down...
Aug 24 12:18:39 ssg3ux snmpd[15013]: NET-SNMP version 5.4.1

Adding the same line and config for another host however again leads to a problem...

trapsess -v 3 -e 0x8000000001020304 -u snmpv3_SHA_authNoPriv_trap_dst5 -l authNoPriv -a SHA -A helloworld 10.16.10.70:162

the log says:

Aug 24 12:21:38 ssg3ux snmpd[15036]: Received TERM or STOP signal...  shutting down...
Aug 24 12:21:38 ssg3ux snmpd[15036]: snmpd: send_trap: USM unknown security name (no such user exists)
Aug 24 12:21:40 ssg3ux snmpd[15044]: snmpd: send_trap: USM unknown security name (no such user exists)
Aug 24 12:21:40 ssg3ux snmpd[15044]: NET-SNMP version 5.4.1

which are error msgs generated when sending traps on stop&start.

I am really out of ideas why it behaves like that.
Can somebody give me a hint, what's the problem here?

I'd really appreciate it!

Greeting
Markus

-- 
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/atbrowser

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.