Re: snmpv3 traps and contexts

"Naylor, Mark" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <61C61BB7D4828E4EB72B065C85E3D8A65223FB@szexchange.schmid-telecom.com>
Hello Dave,

Many thanks for your answer. I tried two varaints, one
with authAccess and the other with setaccess; their behaviour
was the same. I'll explain.

I used the following commands to send traps; one is without
context and the other with.

snmptrap -e 0x01020304              -v 3 -u public  -l noAuthnoPriv
udp:localhost:162 42 coldStart.0
snmptrap -e 0x01020304 -n mycontext -v 3 -u public  -l noAuthnoPriv
udp:localhost:162 42 coldStart.0

The command without the context comes through without a problem.
The command with the context reaches the trapdaemon at port 162
(I see the debug stuff), but the trap seems to be rejected; it
is not logged. As I said before, for both conf files the result
was the same.

I played around with this stuff for quite a while before writing to
the mailing list, but could not get it to go. I'm not sure what I
should try next.

Many Thanks,

	Mark.


####################################################################
## Variant 1
createUser -e 0x01020304 public MD5 password DES password

view all    included  .1

group        pubGroup   usm  public

authAccess   log,execute,net   pubGroup  all  noauth   mycontext
authAccess   log,execute,net   pubGroup  all  noauth

####################################################################
## Variant 2
createUser -e 0x01020304 public MD5 password DES password

view all    included  .1

group        pubGroup   usm  public

setaccess pubGroup ""        usm noauth exact log all
setaccess pubGroup mycontext usm noauth exact log all

####################################################################

> authAccess feels the right thing to use here.
> 
> Instead of
>     authUser   log,execute,net   public authnopriv
> 
> Try something like
> 
>     group    pubGroup   usm  public
>     authAccess   log,execute,net   pubGroup  _all_  noauth   mycontext
> 
> Dave

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