[tkined] straps: unable to bind trap socket: permission denied

Chad Smith (csmith@tsg.adc.com)
Thu, 5 Nov 1998 11:02:15 -0600 (CST)

Hi all,

I'm fairly new to scotty but am learning quickly as I'm upgrading my
application from tcl7.6 to tcl8. Part of that conversion has warranted an
upgrade to scotty2.1.10. I've built this version of scotty, and everything
seems to work fine except for the trap registration. Here's the code that
fails:

# Open the trap reception port - this causes the straps daemon to be executed
if [catch {set _snmpTrapHandle [snmp session -port 10162]} err] {
return -code error [list snmpTrapInit $err]
}

# Cause snmpTrapHandler to be executed every time a trap is received
if [catch {$_snmpTrapHandle bind {} trap "$this snmpTrapHandler %V"} err] {
return -code error [list snmpTrapInit "Couldn't bind trap reception port"]
}

>From the command line, I try:

% set s [snmp session -port 10162]
snmp2
% $s bind {} trap "puts foo"
straps: unable to bind trap socket: Permission denied
can not connect straps socket: no such file or directory

I searched through the mailing list archives and was able to find a
problem exactly like this from 4/97, but there were no responses to that email.

I have TNM_LIBRARY and TNM_STRAPS set appropriately. And I did a 'make
sinstall' as root to install straps appropriately. Any ideas would be
much appreciated!

Thanks,
--chad smith

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