Help with setting up snmptrapd for SNMPV3

This is a discussion on Help with setting up snmptrapd for SNMPV3 within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============0312102505== Content-Type: multipart/alternative; boundary="------------070804020009090209020601" This is ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-15-2007
Matt Matson
 
Posts: n/a
Default Help with setting up snmptrapd for SNMPV3

This is a multi-part message in MIME format.
--===============0312102505==
Content-Type: multipart/alternative;
boundary="------------070804020009090209020601"

This is a multi-part message in MIME format.
--------------070804020009090209020601
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I'm able to send v1/v2 traps, but not v3. Here is my configuration and
attempts at sending authenticated traps. Thanks in advance.
----

[root@sf2sv01]# grep -v "^\S" snmptrapd.conf
authCommunity log,execute,net public
authUser log,execute,net myuser authpriv

----

<from /var/net-snmp/snmptrapd.conf -- initial config>

createUser myuser MD5 "mypassword" DES

----

[root@sf2sv01]# snmptrapd -c ./snmptrapd.conf -Lf
/usr/local/share/snmp/snmptrapd.log

(starts successfully and encrypts/garbles the createUser entry in
/var/net-snmp/snmptrapd.conf)

----

<sending a v2c trap works as expected>

[root@sf2sv01]# snmptrap -v2c -cpublic 127.0.0.1 '' .1.3.6.1.4.1.2021.251.1


<trap received and entry made in snmptrapd.log>

2007-09-15 10:37:33 sf2sv01[UDP: [127.0.0.1]:32770]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (41877147) 4 days,
20:19:31.47SNMPv2-MIB::snmpTrapOID.0 = OID: UCD-SNMP-MIB::ucdStart

----

<sending v3 trap returns to Linux prompt without any errors but yields
no messages in snmptrapd log>

[root@sf2sv01]# snmptrap -v 3 -u myuser -l authPriv -a MD5 -A mypass -x
DES -X mypass 127.0.0.1 '' .1.3.6.1.4.1.2021.251.1



--------------070804020009090209020601
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<small><big>I'm able to send v1/v2 traps, but not v3.&nbsp; Here is my
configuration and attempts at sending authenticated traps.&nbsp; Thanks in
advance.</big><br>
----<br>
<br>
[root@sf2sv01]# grep -v "^\S" snmptrapd.conf<br>
authCommunity log,execute,net public<br>
authUser log,execute,net myuser authpriv<br>
<br>
----<br>
<br>
&lt;from /var/net-snmp/snmptrapd.conf -- initial config&gt;<br>
<br>
createUser myuser MD5 "mypassword" DES<br>
<br>
----<br>
<br>
[root@sf2sv01]# snmptrapd -c ./snmptrapd.conf -Lf
/usr/local/share/snmp/snmptrapd.log<br>
<br>
(starts successfully and encrypts/garbles the createUser entry in
/var/net-snmp/snmptrapd.conf)<br>
<br>
----<br>
<br>
&lt;sending a v2c trap works as expected&gt;<br>
<br>
[root@sf2sv01]# snmptrap -v2c -cpublic 127.0.0.1 ''
..1.3.6.1.4.1.2021.251.1<br>
<br>
<br>
&lt;trap received and entry made in snmptrapd.log&gt; <br>
<br>
2007-09-15 10:37:33 sf2sv01[UDP: [127.0.0.1]:32770]:<br>
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (41877147) 4 days,
20:19:31.47SNMPv2-MIB::snmpTrapOID.0 = OID: UCD-SNMP-MIB::ucdStart<br>
<br>
----<br>
<br>
&lt;sending v3 trap returns to Linux prompt without any errors but
yields no messages in snmptrapd log&gt;<br>
<br>
[root@sf2sv01]# snmptrap -v 3 -u myuser -l authPriv -a MD5 -A mypass -x
DES -X mypass 127.0.0.1 '' .1.3.6.1.4.1.2021.251.1<br>
<br>
<br>
</small>
</body>
</html>

--------------070804020009090209020601--


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============0312102505==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============0312102505==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0