Re: restarting snmpd does not generate a trap

PoWah Wong <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
--- Dave Shield <[email protected]> wrote:

> On 07/12/2007, PoWah Wong <[email protected]>
> wrote:
> > I modify /usr/local/share/snmp/snmpd.conf
> > to have:
> 
> > trapsess -v 3 -u test_MD5_AES -l authPriv -a MD5
> -A
> > 12345678 -x AES -X 87654321 -e
> > 0x800000000102030405060708 172.20.11.58:162
> >
> > However, restarting snmpd does not generate a
> trap.
> >
> > Then I modify /var/net-snmp/snmptrapd.conf
> > to have:
> > createUser 0x80001f88806a19937bd3c75547
> test_MD5_AES
> > MD5 12345678 AES 87654321
> 
> 
> That's not the same engine ID that you specified for
> the
> "trapsess" line.   What happens if you shut down the
> snmptrapd process, change the snmptrapd.conf file to
> read
> 
> > createUser 0x800000000102030405060708 test_MD5_AES
> > MD5 12345678 AES 87654321
> 
> restart snmptrapd, and then restart snmpd.
> 
> Do you receive the trap or not?
>
> If not, then try running
> 
>    snmptrap -v 3 -u test_MD5_AES -l authPriv -a MD5
> -A
>      12345678 -x AES -X 87654321 -e
>      0x800000000102030405060708 172.20.11.58:162 
> .1.2.3.4.5.6.7.8
> 
> (from the same system that snmpd is running on).
> Does snmptrapd receive that trap or not?
> 
> Dave
> 

On the snmpd machine (fc6.mypc.com),
/usr/local/share/snmp/snmpd.conf is:
createUser -e 0x800000000102030405060708 test_MD5_AES
MD5 12345678 AES 87654321
trapsess -v 3 -u test_MD5_AES -l authPriv -a MD5 -A
12345678 -x AES -X 87654321 -e
0x800000000102030405060708 172.20.11.58

# snmptrap -v 3 -u test_MD5_AES -l authPriv -a MD5 -A
12345678 -x AES -X 87654321 -e
0x800000000102030405060708 172.20.11.58:162 100
.1.2.3.4.5.6.7.8

A trap is received on the snmptrapd machine
(172.20.11.58):
2007-12-10 09:28:29 fc6.mypc.com [UDP:
[172.20.11.245]:32802]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (100)
0:00:01.00       SNMPv2-MIB::snmpTrapOID.0 = OID:
iso.2.3.4.5.6.7.8

However, a trap is not received on 172.20.11.58 when
restarting snmpd on fc6.mypc.com.


      Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail.  Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca 

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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.