RE: Using Trap Sink

Mario Godin (mgodin@inware.com)
Fri, 2 May 1997 09:30:28 -0400

Check your community strings. That could be one cause of the problem.

By the way, we also the the 'unable to bind to multicast trap socket' =
message but we still receive traps.

-----Original Message-----
From: David Livingstone [SMTP:davidl@scdes.cn.ca]
Sent: Wednesday, April 30, 1997 4:12 PM
To: tkined@ibr.cs.tu-bs.de
Subject: Using Trap Sink

I am trying to follow the "Getting started with Tkined" and
have run into a problem when attempting to listen for v1 traps(Trap
Sink). The main problem is that I never receive anything even
though I know traps are being sent - ie using snmptrap from(ie
cmu-snmp-linux-3.2) another machine to the machine running
tkined/scotty. I know the traps are received becacuse when
I run snmptrapd -v 1 -s(also from cmu-snmp-linux-3.2) from
the monitoring machine(after I have stopped scotty) the traps
are logged in syslog correctly. Also when scotty is running and
Trap Sink listen is enabled a netstat shows snmp-trap listening
correctly.

Scotty was compiled with --disable-multicast because when I first=20
tested I would receive a "straps: unable to bind multicast trap socket
: Address already in use." error msg when Trap Sink listen was enabled.
The output of the make is provided at the end of the email.=20

Also, if I select Trap Sink listen and then exit from tkined
gracefully the tkined1.4.5 will hang indefinetely. If Trap Sink listen
is not selected then exiting is clean.

Any ideas of what I should look at next ?

Setup
-----

- Linux Slackware 3.1 with Kernel 2.0.30
- libc 5.3.12
- scotty-2.1.5
- tcl 7.5, tk 4.1

Output of make
-------------
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
-DTNMLIB=3D\"/usr/local/lib/tnm2.1.5\" ./../tnm/generic/tnmInit.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmUtil.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmJob.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
-DTKINEDLIB=3D\"/usr/local/lib/tkined1.4.5\" ./../tnm/generic/tnmIned.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmSyslog.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmIcmp.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmDns.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmEvent.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmUdp.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmSunRpc.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmNtp.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmRpc.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmHttp.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../tnm/generic/tnmNetdb.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../unix/tnmUnixInit.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../unix/tnmUnixLog.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
./../unix/tnmUnixSocket.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include =
-DNTPING=3D\"/usr/local/bin/ntping\" ./../unix/tnmUnixIcmp.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include mount_clnt.c
mount_clnt.c: In function `mountproc_null_1':
mount_clnt.c:18: warning: passing arg 3 from incompatible pointer type
mount_clnt.c:18: warning: passing arg 5 from incompatible pointer type
mount_clnt.c: In function `mountproc_mnt_1':
mount_clnt.c:30: warning: passing arg 3 from incompatible pointer type
mount_clnt.c:30: warning: passing arg 5 from incompatible pointer type
mount_clnt.c: In function `mountproc_dump_1':
mount_clnt.c:42: warning: passing arg 3 from incompatible pointer type
mount_clnt.c:42: warning: passing arg 5 from incompatible pointer type
mount_clnt.c: In function `mountproc_umnt_1':
mount_clnt.c:54: warning: passing arg 3 from incompatible pointer type
mount_clnt.c:54: warning: passing arg 5 from incompatible pointer type
mount_clnt.c: In function `mountproc_umntall_1':
mount_clnt.c:66: warning: passing arg 3 from incompatible pointer type
mount_clnt.c:66: warning: passing arg 5 from incompatible pointer type
mount_clnt.c: In function `mountproc_export_1':
mount_clnt.c:78: warning: passing arg 3 from incompatible pointer type
mount_clnt.c:78: warning: passing arg 5 from incompatible pointer type
mount_clnt.c: In function `mountproc_exportall_1':
mount_clnt.c:90: warning: passing arg 3 from incompatible pointer type
mount_clnt.c:90: warning: passing arg 5 from incompatible pointer type
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include mount_xdr.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include ether_clnt.c
ether_clnt.c: In function `etherproc_getdata_1':
ether_clnt.c:18: warning: passing arg 3 from incompatible pointer type
ether_clnt.c:18: warning: passing arg 5 from incompatible pointer type
ether_clnt.c: In function `etherproc_on_1':
ether_clnt.c:30: warning: passing arg 3 from incompatible pointer type
ether_clnt.c:30: warning: passing arg 5 from incompatible pointer type
ether_clnt.c: In function `etherproc_off_1':
ether_clnt.c:42: warning: passing arg 3 from incompatible pointer type
ether_clnt.c:42: warning: passing arg 5 from incompatible pointer type
ether_clnt.c: In function `etherproc_getsrcdata_1':
ether_clnt.c:54: warning: passing arg 3 from incompatible pointer type
ether_clnt.c:54: warning: passing arg 5 from incompatible pointer type
ether_clnt.c: In function `etherproc_getdstdata_1':
ether_clnt.c:66: warning: passing arg 3 from incompatible pointer type
ether_clnt.c:66: warning: passing arg 5 from incompatible pointer type
ether_clnt.c: In function `etherproc_selectsrc_1':
ether_clnt.c:78: warning: passing arg 3 from incompatible pointer type
ether_clnt.c:78: warning: passing arg 5 from incompatible pointer type
ether_clnt.c: In function `etherproc_selectdst_1':
ether_clnt.c:90: warning: passing arg 3 from incompatible pointer type
ether_clnt.c:90: warning: passing arg 5 from incompatible pointer type
ether_clnt.c: In function `etherproc_selectproto_1':
ether_clnt.c:102: warning: passing arg 3 from incompatible pointer type
ether_clnt.c:102: warning: passing arg 5 from incompatible pointer type
ether_clnt.c: In function `etherproc_selectlnth_1':
ether_clnt.c:114: warning: passing arg 3 from incompatible pointer type
ether_clnt.c:114: warning: passing arg 5 from incompatible pointer type
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include ether_xdr.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include rstat_clnt.c
rstat_clnt.c: In function `rstatproc_stats_3':
rstat_clnt.c:18: warning: passing arg 3 from incompatible pointer type
rstat_clnt.c:18: warning: passing arg 5 from incompatible pointer type
rstat_clnt.c: In function `rstatproc_havedisk_3':
rstat_clnt.c:30: warning: passing arg 3 from incompatible pointer type
rstat_clnt.c:30: warning: passing arg 5 from incompatible pointer type
rstat_clnt.c: In function `rstatproc_stats_2':
rstat_clnt.c:42: warning: passing arg 3 from incompatible pointer type
rstat_clnt.c:42: warning: passing arg 5 from incompatible pointer type
rstat_clnt.c: In function `rstatproc_havedisk_2':
rstat_clnt.c:54: warning: passing arg 3 from incompatible pointer type
rstat_clnt.c:54: warning: passing arg 5 from incompatible pointer type
rstat_clnt.c: In function `rstatproc_stats_1':
rstat_clnt.c:66: warning: passing arg 3 from incompatible pointer type
rstat_clnt.c:66: warning: passing arg 5 from incompatible pointer type
rstat_clnt.c: In function `rstatproc_havedisk_1':
rstat_clnt.c:78: warning: passing arg 3 from incompatible pointer type
rstat_clnt.c:78: warning: passing arg 5 from incompatible pointer type
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include rstat_xdr.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include pcnfsd_clnt.c
pcnfsd_clnt.c: In function `pcnfsd_null_1':
pcnfsd_clnt.c:24: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:24: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd_auth_1':
pcnfsd_clnt.c:36: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:36: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd_pr_init_1':
pcnfsd_clnt.c:48: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:48: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd_pr_start_1':
pcnfsd_clnt.c:60: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:60: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_null_2':
pcnfsd_clnt.c:72: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:72: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_info_2':
pcnfsd_clnt.c:84: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:84: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_pr_init_2':
pcnfsd_clnt.c:96: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:96: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_pr_start_2':
pcnfsd_clnt.c:108: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:108: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_pr_list_2':
pcnfsd_clnt.c:120: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:120: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_pr_queue_2':
pcnfsd_clnt.c:132: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:132: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_pr_status_2':
pcnfsd_clnt.c:144: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:144: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_pr_cancel_2':
pcnfsd_clnt.c:156: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:156: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_pr_admin_2':
pcnfsd_clnt.c:168: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:168: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_pr_requeue_2':
pcnfsd_clnt.c:180: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:180: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_pr_hold_2':
pcnfsd_clnt.c:192: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:192: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_pr_release_2':
pcnfsd_clnt.c:204: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:204: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_mapid_2':
pcnfsd_clnt.c:216: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:216: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_auth_2':
pcnfsd_clnt.c:228: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:228: warning: passing arg 5 from incompatible pointer type
pcnfsd_clnt.c: In function `pcnfsd2_alert_2':
pcnfsd_clnt.c:240: warning: passing arg 3 from incompatible pointer type
pcnfsd_clnt.c:240: warning: passing arg 5 from incompatible pointer type
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include pcnfsd_xdr.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmAsn1.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmMD5.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
-DSTRAPS=3D\"/usr/local/bin/straps\" ./../tnm/snmp/tnmSnmpNet.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmSnmpUtil.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmSnmpInst.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmSnmpSend.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmSnmpRecv.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmSnmpAgent.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmSnmpTcl.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmMibQuery.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmMibParser.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmMibTree.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmMibFrozen.c
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp =
./../tnm/snmp/tnmMibTcl.c
cc -shared tnmInit.o tnmUtil.o tnmJob.o tnmIned.o tnmSyslog.o tnmIcmp.o =
tnmDns.o tnmEvent.o tnmUdp.o tnmSunRpc.o tnmNtp.o tnmRpc.o tnmHttp.o =
tnmNetdb.o tnmUnixInit.o tnmUnixLog.o tnmUnixSocket.o tnmUnixIcmp.o =
mount_clnt.o mount_xdr.o ether_clnt.o ether_xd
r.o rstat_clnt.o rstat_xdr.o pcnfsd_clnt.o pcnfsd_xdr.o tnmAsn1.o =
tnmMD5.o tnmSnmpNet.o tnmSnmpUtil.o tnmSnmpInst.o tnmSnmpSend.o =
tnmSnmpRecv.o tnmSnmpAgent.o tnmSnmpTcl.o tnmMibQuery.o tnmMibParser.o =
tnmMibTree.o tnmMibFrozen.o tnmMibTcl.o -o tnm.so -
lieee -lfl
cc -c -O -I. -DHAVE_CONFIG_H ./../tnm/ntping/ntping.c
cc -rdynamic -o ntping ntping.o -lieee=20
cc -c -O -I. ./../tnm/snmp/straps.c
cc -rdynamic -o straps straps.o -lieee=20
cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include -I. =
-I./../tnm/generic -I/usr/include ./../unix/scotty.c
cc -rdynamic -o scotty scotty.o -L/usr/lib -ltcl -lieee -ldl -lm
cc -c -O -fPIC -I. -I./../tkined/generic -I/usr/include =
./../tkined/generic/tkiEditor.c
cc -c -O -fPIC -I. -I./../tkined/generic -I/usr/include =
./../tkined/generic/tkiObjects.c
cc -c -O -fPIC -I. -I./../tkined/generic -I/usr/include =
./../tkined/generic/tkiMethods.c
cc -c -O -fPIC -I. -I./../tkined/generic -I/usr/include =
-DTKINEDLIB=3D\"/usr/local/lib/tkined1.4.5\" =
./../tkined/generic/tkiMisc.c
cc -c -O -fPIC -I. -I./../tkined/generic -I/usr/include =
./../tkined/generic/tkiFlash.c
cc -c -O -fPIC -I. -I./../tkined/generic -I/usr/include =
./../tkined/generic/tkiStripchart.c
cc -c -O -fPIC -I. -I./../tkined/generic -I/usr/include =
./../tkined/generic/tkiBarchart.c
cc -c -O -fPIC -I. -I./../tkined/generic -I/usr/include =
./../tkined/generic/tkiUtil.c
cc -c -O -fPIC -I. -I./../tkined/generic -I/usr/include =
-DTKINEDLIB=3D\"/usr/local/lib/tkined1.4.5\" =
./../tkined/generic/tkiInit.c
cc -c -O -fPIC -I. -I./../tkined/generic -I/usr/include =
./../unix/tkiUnixInit.c
cc -shared tkiEditor.o tkiObjects.o tkiMethods.o tkiMisc.o tkiFlash.o =
tkiStripchart.o tkiBarchart.o tkiUtil.o tkiInit.o tkiUnixInit.o -o =
tkined.so -lieee=20

--

David Kerr Livingstone=20 Canadian National Railway, Signals & Communications 935 de La Gauchetiere St. West 12th Floor Montreal, Quebec, Canada H3B-2M9 Phone : (514)399-7731 Fax : (514)399-7503 Internet : davidl@cn.ca

--
!! This message is brought to you via the `tkined & scotty' mailing =
list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more =
information.

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.