Re: trapsess problems

"Markus Hofer" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Now I got the following question

When defining 
trapsess like this

createUser -e 0x8000000001020304 snmpv3_SHA_authNoPriv_trap_dst1 SHA helloworld

and

trapsess -v 3 -u snmpv3_SHA_authNoPriv_trap_dst2 -l authNoPriv -a SHA -A helloworld 10.16.10.11:162 

Again I used some dummy engineID
Does the generated trap by restarting the agent take the engineID I have specified?

The trap agent running on the target host says


usm: usm: USM processing begun...
USM processing begun...
usm: usm: match on user snmpv3_SHA_authNoPriv_trap_dst2
match on user snmpv3_SHA_authNoPriv_trap_dst2
usm: usm: no match on engineID (no match on engineID (80 00 1F 88 80 6C 97 72 D6 00 15 37 CB 80 00 1F 88 80 6C 97 72 D6 00 15 37 CB )
)
usm: usm: Unknown User(snmpv3_SHA_authNoPriv_trap_dst2)
Unknown User(snmpv3_SHA_authNoPriv_trap_dst2)

so i don't think so? How can I configure trapsess in such a way that the traps would be recognized by the trap agent correctly?

On the agent side I have configured snmptrad.conf like:

createUser -e 0x8000000001020304 snmpv3_SHA_authNoPriv_trap_dst2 SHA "helloworld"
authUser log snmpv3_SHA_authNoPriv_trap_dst2 authNoPriv

and started the agent by

 snmptrapd -Dusm -f -C -c /etc/snmp/snmptrapd.conf -Le


so snmptraps generated by 

snmptrap -v 3 -u snmpv3_SHA_authNoPriv_trap_dst2 -l authNoPriv -e 0x8000000001020304 -a SHA -A helloworld 10.16.10.11 42 coldStart.0

are recoginzed without any problems.

Would appreciate some help

Regards

Markus

-------- Original-Nachricht --------
> Datum: Tue, 24 Aug 2010 14:39:13 +0200
> Von: "Markus Hofer" <[email protected]>
> An: "Markus Hofer" <[email protected]>, [email protected]
> Betreff: Re: trapsess 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.
> 
> Ok. Here I am totally wrong. I need to create a user in snmpd.conf like
> 
> createUser snmpv3_SHA_authNoPriv_trap_dst2 SHA helloworld
>  
> in order to make things work. Now i get traps without any problem
> 
> But still the question: Why does sending traps work without engineID if i
> don't create a user like above?
> 
> Regards
> -- 
> Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
> jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/atbrowser

-- 
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.