First al all thanks for your help.
But the problem is yet unresolved.
I know that my problem is ACCESS CONTROL. I read this section, but I
dont understand very well.
I found out that snmptrap loads the mibs from
/usr/local/share/snmp/mibs not /usr/share/snmp/mibs/ where I thought.
When I changed my mib I obtained the line "No access configuration -
dropping trap":
condor:~ # snmptrapd -m all -Lo -f
Warning: no access control information configured.
This receiver will *NOT* accept any incoming notifications.
NET-SNMP version 5.4
No access configuration - dropping trap.

But the problem of ACCESS CONTROL is yet unresolved.
Whit the option -d I obtain:

condor:/etc/snmp # snmptrapd -m all -Le -f -d
Warning: no access control information configured.
This receiver will *NOT* accept any incoming notifications.
NET-SNMP version 5.4

Received 52 bytes from UDP: [192.168.1.168]:1096
0000: 30 32 02 01 00 04 0D 7A 77 65 69 63 6F 6D 5F 6E 02.....zweicom_n
0016: 6F 74 61 76 A4 1E 06 0A 2B 06 01 04 01 81 97 50 otav....+......P
0032: 02 01 40 04 7F 00 00 01 02 01 06 02 02 01 2F 43 ..@.........../C
0048: 01 00 30 00 ..0.

No access configuration - dropping trap.

I tried to configure ACCESS CONTROL with the follow lines in the
snmpd.conf file:
# sec.name source community
com2sec local localhost zweicom_notav
com2sec mynetwork 192.168.1.0/24 zweicom_notav

####
# Second, map the security names into group names:

# sec.model sec.name
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork

####
# Third, create a view for us to let the groups have rights to:

# incl/excl subtree mask
view all included .1 80

####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

# context sec.model sec.level match read write notif
#access MyROGroup "" any noauth exact all none none
#access MyRWGroup "" any noauth exact all all none
access MyROGroup "" any auth exact all all all
access MyRWGroup "" any auth exact all all all

But Its doesnt work.

Thanks a lot.

On 16/07/07, Thomas Anders wrote:
> Eduardo Saavedra Cea wrote:
> > I want to receive traps with snmptrapd, but It doesn't work.
> > This demon dont print anything to standar out neither to syslog when I
> > send the trap whit sendtrap:
> > snmptrap -v 1 -c zweicom_notav 192.168.1.168:162
> > .1.3.6.1.4.1.19408.2.1 localhost 6 303 .1.3.6.1.4.1.19408.1.1.2.0
> >
> > I start with:
> > condor:~ # snmptrapd -m all -f -Lo -C -c /etc/snmp/snmpd.conf
> > NET-SNMP version 5.4
> >
> > I know the traps arrive because I try strace:
> > condor:~ # strace snmptrapd -m all -f -Lo -C -c /etc/snmp/snmpd.conf
> > .....

>
> What's the content of /etc/snmp/snmpd.conf (a somewhat strange config
> file name for snmptrapd, btw) and /etc/hosts.{allow,deny}? If you add
> "-d" to the snmptrapd invocation, does it log the incoming packet? Have
> you read the "ACCESS CONTROL" section in the snmptrapd manual page?
>
>
> +Thomas
>
> --
> Thomas Anders (thomas.anders at blue-cable.de)
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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