dropping trap

k b <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
[email protected]..
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
[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.