Trapd v3

Moacir Ferreira <[email protected]> Fri, 10 Nov 2017 11:41:52 +0000
Newsgroups gmane.network.opennms.install
Message-ID <HE1P190MB018877FEA6C19E8B350C9B9DC8540@HE1P190MB0188.EURP190.PROD.OUTLOOK.COM>
--===============4001635076256275862==
Content-Language: pt-BR
Content-Type: multipart/alternative;
	boundary="_000_HE1P190MB018877FEA6C19E8B350C9B9DC8540HE1P190MB0188EURP_"

--_000_HE1P190MB018877FEA6C19E8B350C9B9DC8540HE1P190MB0188EURP_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am trying to setup opennms to receive snmp v3 traps from my devices. To d=
o so I have on /opt/opennms/etc/trapd-configuration.xml the following confi=
guration:

<trapd-configuration snmp-trap-port=3D"162" new-suspect-on-trap=3D"true">
  <snmpv3-user
        security-name=3D"snmpuser"
        security-level=3D"3"
        auth-passphrase=3D"VerySecret"
        auth-protocol=3D"MD5"
        privacy-passphrase=3D"VerySecret"
        privacy-protocol=3D"DES"/>
</trapd-configuration>


As none of my devices are able to be recognized for new-suspect-on-trap=3D"=
true", then I have used the following command to test it:


snmptrap -v 3 -u snmpuser -a MD5 -A VerySecret -l authPriv -x DES -X VerySe=
cret localhost 42 coldStart.0


The trapd logs in debug mode shows:


2017-11-03 18:49:29,547 DEBUG [DefaultUDPTransportMapping_0.0.0.0/162] o.s.=
m.MPv3: SNMPv3 header decoded: msgId=3D148741019, msgMaxSize=3D65507, msgFl=
ags=3D03, secModel=3D3
2017-11-03 18:49:29,547 DEBUG [DefaultUDPTransportMapping_0.0.0.0/162] o.s.=
s.USM: RFC3414 =A73.2.4 Unknown security name: 73:6e:6d:70:75:73:65:72
2017-11-03 18:49:29,547 WARN  [DefaultUDPTransportMapping_0.0.0.0/162] o.s.=
MessageDispatcherImpl: statusInfo=3D1.3.6.1.6.3.15.1.1.3.0 =3D 0, status=3D=
1404


What am I missing? Thanks!


Moacir


--_000_HE1P190MB018877FEA6C19E8B350C9B9DC8540HE1P190MB0188EURP_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
I am trying to setup opennms to receive snmp v3 traps from my devices. To d=
o so I have on&nbsp;<span>/opt/opennms/etc/trapd-configuration.xml</span> t=
he following configuration:<br>
<div style=3D"color: rgb(49, 55, 57);">
<div dir=3D"ltr">
<div id=3D"x_divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size:12pt; col=
or:#000000; font-family:Calibri,Helvetica,sans-serif">
<div style=3D"color:rgb(49,55,57)">
<div dir=3D"ltr">
<div id=3D"x_x_divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size:12pt; c=
olor:#000000; font-family:Calibri,Helvetica,sans-serif">
<p></p>
<div><br>
&lt;trapd-configuration snmp-trap-port=3D&quot;162&quot; new-suspect-on-tra=
p=3D&quot;true&quot;&gt;<br>
&nbsp; &lt;snmpv3-user <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; security-name=3D&quot;snmpuser&q=
uot; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; security-level=3D&quot;3&quot; <=
br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auth-passphrase=3D&quot;VerySecr=
et&quot; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auth-protocol=3D&quot;MD5&quot;<=
br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; privacy-passphrase=3D&quot;VeryS=
ecret&quot; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; privacy-protocol=3D&quot;DES&quo=
t;/&gt;<br>
&lt;/trapd-configuration&gt;<br>
</div>
<p></p>
<p><br>
</p>
<p>As none of my devices are able to be recognized for <span>new-suspect-on=
-trap=3D&quot;true&quot;</span>, then I have used the following command to =
test it:</p>
<p><br>
</p>
<p></p>
<div>snmptrap -v 3 -u snmpuser -a MD5 -A VerySecret -l authPriv -x DES -X V=
erySecret localhost 42 coldStart.0<br>
</div>
<br>
<p></p>
<p>The trapd logs in debug mode shows:</p>
<p><br>
</p>
<p></p>
<div>2017-11-03 18:49:29,547 DEBUG [DefaultUDPTransportMapping_0.0.0.0/162]=
 o.s.m.MPv3: SNMPv3 header decoded: msgId=3D148741019, msgMaxSize=3D65507, =
msgFlags=3D03, secModel=3D3<br>
2017-11-03 18:49:29,547 DEBUG [DefaultUDPTransportMapping_0.0.0.0/162] o.s.=
s.USM: RFC3414 =A73.2.4
<b>Unknown security name: 73:6e:6d:70:75:73:65:72</b><br>
2017-11-03 18:49:29,547 WARN&nbsp; [DefaultUDPTransportMapping_0.0.0.0/162]=
 o.s.MessageDispatcherImpl: statusInfo=3D1.3.6.1.6.3.15.1.1.3.0 =3D 0, stat=
us=3D1404<br>
</div>
<p></p>
<p><br>
</p>
<p>What am I missing? Thanks!</p>
<p><br>
</p>
<p>Moacir<br>
</p>
<p><br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

--_000_HE1P190MB018877FEA6C19E8B350C9B9DC8540HE1P190MB0188EURP_--


--===============4001635076256275862==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============4001635076256275862==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
--===============4001635076256275862==--