Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dropping trap

1,408 views
Skip to first unread message

k b

unread,
Aug 17, 2010, 10:50:06 PM8/17/10
to
Hi,

I'm a newbie to net-snmp toolkit. snmptrap does not seem to be working. Error message returned: "No access configuration - dropping trap" and
"This receiver will *NOT* accept any incoming notifications."

Environment:
Net-SNMP 5.6 pre3
Windows Vista
Cygwin version: CYGWIN_NT-6.0-WOW64 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin

Thanks,
kam

$ ps -a
PID PPID PGID WINPID TTY UID STIME COMMAND
4292 1 4292 4292 con 1000 15:15:19 /usr/bin/bash
4452 1 4452 4452 con 1000 21:00:26 /usr/bin/bash
4016 4292 4016 6020 con 1000 22:00:56 /usr/local/sbin/snmptrapd
3672 4452 3672 3092 con 1000 22:05:57 /usr/bin/ps


$ snmptrap -v 1 -c public localhost NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification "" 6 17 "" netSnmpExampleHeartbeatRate i 123456

$

$ snmptraps.log does not exist under /var/log/

$ /usr/local/sbin/snmptrapd -f -Le -Dusm -d
registered debug token usm, 1
2010-08-17 22:00:57 /usr/local/share/snmp/snmptrapd.conf: line 23: Warning: Unkn
own token: logOption.
2010-08-17 22:00:58 Warning: no access control information configured.
(Config search path: /usr/local/etc/snmp;/usr/local/share/snmp;/usr/local/lib/
snmp;/home/studio17/.snmp)
This receiver will *NOT* accept any incoming notifications.
2010-08-17 22:00:58 NET-SNMP version 5.6.pre3
2010-08-17 22:03:16
Received 65 byte packet from UDP: [127.0.0.1]:50399->[0.0.0.0]:0
2010-08-17 22:03:16 0000: 30 3F 02 01 00 04 06 70 75 62 6C 69 63 A4 32 06
0?.....public.2.
2010-08-17 22:03:16 0016: 0B 2B 06 01 04 01 BF 08 02 03 00 01 40 04 C0 A8
.+..........@...
2010-08-17 22:03:16 0032: 01 40 02 01 06 02 01 11 43 01 00 30 14 30 12 06
.@......C..0.0..
2010-08-17 22:03:16 0048: 0B 2B 06 01 04 01 BF 08 02 03 02 01 02 03 01 E2
.+..............
2010-08-17 22:03:16 0064: 40
@
2010-08-17 22:03:16
2010-08-17 22:03:16 No access configuration - dropping trap.


snmpd.conf under( /usr/local/share/snmp ) directory is listed below:
###########################################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]

rocommunity public

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
# arguments: community [default|hostname|network/bits] [oid]

rwcommunity public

###########################################################################
# SECTION: Trap Destinations
#
# Here we define who the agent will send traps to.

# trapsink: A SNMPv1 trap receiver
# arguments: host [community] [portnum]

trapsink localhost public 162

# trap2sink: A SNMPv2c trap receiver
# arguments: host [community] [portnum]

trap2sink localhost public 162

# trapcommunity: Default trap sink community to use
# arguments: community-string

trapcommunity public


snmptrapd.conf is listed below:
####################################################################
#
# snmptrapd.conf
#
# - created by the snmpconf configuration program
#

logOption f /var/log/snmptraps.log

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dave Shield

unread,
Aug 18, 2010, 5:57:17 AM8/18/10
to
On 18 August 2010 03:50, k b <my_lo...@yahoo.com> wrote:
> I'm a newbie to net-snmp toolkit. snmptrap does not seem to be working.
> Error message returned: "No access configuration - dropping trap" and
> "This receiver will *NOT* accept any incoming notifications."

See the snmptrapd.conf(5) man page

In particular, the section entitled "Access Control"

Dave

chmnr...@gmail.com

unread,
Jun 2, 2014, 7:29:26 AM6/2/14
to
Dear k b & Dave,
For Error message returned: "No access configuration - dropping trap" and "This receiver will *NOT* accept any incoming notifications.


Configure ur agent community name in /etc/snmptrapd.conf file at SNMP Receiver End. using following syntax:-
authCommunity log <community-name>

and Restart the snmptrapd service at same.

Now send trap from snmp agent. I hope u will recieve full info about trap sender i.e. date,time,hostname,ipaddress,OID's all.


Kindly conform.....?

With Best Regards,
Chaman Rathee
0 new messages