--- On Fri, 6/26/09, Dave Shield <[email protected]> wrote:

> From: Dave Shield <[email protected]>
> Subject: Re: snmptrapd.conf: Error: bad security level (noauthnopriv,  
> authnopriv, authpriv)
> To: "PoWah Wong" <[email protected]>
> Cc: "net-snmp-users" <[email protected]>
> Received: Friday, June 26, 2009, 6:11 AM
> 2009/6/24 PoWah Wong <[email protected]>:
> >> Next - try sending the trap using
> >>
> >>     snmptrap -e 0x0102030405 -v 3 -u admin -l
> >>           
>    noauth 172.20.11.72 42 coldStart.0
> >>
> >> Do you see the trap logged or not?
> >> If yes, what about
> >>
> >>     snmptrap -e 0x0102030405 -v 3 -u admin -l
> >>             
> auth -a MD5 -A 12345678
> >>         
>    172.20.11.72 42 coldStart.0
> >>
> >> ?
> 
> 
> > Do not see the trap logged for both snmptrap
> commands.
> 
> Hmmm.... so *no* SNMPv3 traps are being received.
> What about a v2 or v1 trap?   Do you see
> those, or not?
> 
> How are you running the trap receiver?
> Where is it logging to?
> Do you see the startup messages when it's first run?
> 
> 
> Dave
>
Without the "-d" option, 
"snmptrapd -f -C -c /home/powah/snmp/snmptrapd.conf -Lo"
or
"snmptrapd -Lf /home/powah/tmp/log.log -f -C -c /home/powah/snmp/snmptrapd.conf"
do not see traps such as
v2 trap 
snmptrap -e 0x0102030405 -v 2c -u admin -c public 172.20.11.72 42 coldStart.0
nor when snmpd restart.

However, with the "-d" option, 
"snmptrapd -f -C -c /home/powah/snmp/snmptrapd.conf -Lo -d"
or 
"snmptrapd -Lf /home/powah/tmp/log.log -f -C -c /home/powah/snmp/snmptrapd.conf 
-d"
see all traps displayed on the screen or in the log.log file.

snmptrapd.conf is as follows:
createUser admin MD5 12345678 DES 87654321
createUser adminwindows MD5 12345678 DES 87654321

authuser log admin
logOption s u

Why the "-d" option make a difference?




      __________________________________________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com

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

Reply via email to