Thanks a lot for your help!

At this moment, I'm receiving traps in both cases:
- When I switch on/off the snmp daemon
- When I plug/unplug the cable from the NIC.

However, there is something strange going on with the EngineID.
Following you can find some more information from logs and configuration
files:

snmpd.conf
========================%<==========================================
createUser -e 0x80001F880430313032303330343035 usmuser MD5 md5passwd DES
despasswd
trapsess -e 0x80001F880430313032303330343035 -v3 -l AuthPriv -u usmuser
-a MD5 -A md5passwd -x DES -X despasswd localhost:162

========================%<==========================================


snmptrapd.conf

========================%<==========================================
createUser -e 0x80001F880430313032303330343035 usmuser MD5 md5passwd DES
despasswd

authuser log,execute,net usmuser priv

========================%<==========================================


bash# snmptrapd -f -Le -Dusm

========================%<==========================================
#This is the trap received when I disconnect the cable from the NIC

usm: USM processing begun...
usm: match on user usmuser
usm: no match on engineID (80 00 1F 88 04 30 31 30 32 30 33 30 34 30
35 )
usm: match on user usmuser
usm: no match on engineID (80 00 1F 88 04 30 31 30 32 30 33 30 34 30
35 )
usm: match on user usmuser
usm: Verification succeeded.
usm: USM processing completed.
2007-03-07 12:57:03 <UNKNOWN> [UDP: [127.0.0.1]:32779]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (3015) 0:00:30.15
SNMPv2-MIB::snmpTrapOID.0 = OID: IF-MIB::linkDown
IF-MIB::ifIndex.2 = INTEGER: 2       IF-MIB::ifAdminStatus.2 = INTEGER:
up(1)        IF-MIB::ifOperStatus.2 = INTEGER: down(2)
SNMPv2-MIB::snmpTrapEnterprise.0 = OID:
NET-SNMP-MIB::netSnmpAgentOIDs.10


========================%<==========================================

As you can see, there is a message saying that the engineID do not
match, but it is showing the trap correctly.

I have checked the trap at Wireshark, and I can see that the encription
flag is set to 1.

Regards,

Ricardo


El mié, 07-03-2007 a las 09:13 +0000, Dave Shield escribió: 
>    
> 
> 
> On 06/03/07, Ricardo Marin Vinuesa <[EMAIL PROTECTED]> wrote:
> > If I run snmpd -f -Le -d I see this:
> >
> > Sending 216 bytes to UDP: [192.168.175.247]:161
> 
> Aha!
> The agent is sending the notification to port 161
> (SNMP queries), rather than port 162 (traps).
> 
> That may well explain why snmtrapd isn't seeing anything.
> 
> Try using a snmpd.conf directive of the form:
> 
>     trapsess .....   localhost:162
> 
> i.e. specifying the port explicitly.
> 
> I thought that this particular bug  had been fixed with the
> latest code, but apparently not.
> 
> Dave
-- 
--
Ricardo Marín Vinuesa
GMV SOLUCIONES GLOBALES INTERNET, S.A.
Balmes, 268-270, 5º Planta
E-08006 Barcelona
Tel. +34 93 272 1848
Fax  +34 93 215 6187
www.gmv.com
www.gmv-sgi.com
SECURE e-SOLUTIONS


______________________
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
 puede contener informacion clasificada por su emisor como confidencial
 en el marco de su Sistema de Gestion de Seguridad de la 
Informacion siendo para uso exclusivo del destinatario, quedando 
prohibida su divulgacion copia o distribucion a terceros sin la 
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje 
 erroneamente, se ruega lo notifique al remitente y proceda a su borrado. 
Gracias por su colaboracion.
______________________
This message including any attachments may contain confidential 
information, according to our Information Security Management System,
 and intended solely for a specific individual to whom they are addressed.
 Any unauthorised copy, disclosure or distribution of this message
 is strictly forbidden. If you have received this transmission in error,
 please notify the sender immediately and delete it.
______________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to