Right now working on an snmp module which needs to listen to bind and listen to
a port for incoming traps.
In doing so, I am seeing some very strange behavior, that is a little hard to
describe.
1. I did most of my development and testing by starting snmpd via command line
(not using /etc/init.d/snmpd). Why, was new to this and didn't quite know what
I was dong. However, I never had a problem.
2. During deployment testing, I noticed that the module was unable to connect
to the requested port (was using 1162).
3. After extensive testing, I have found, that when I start snmpd via command
line:
snmpd -Dportsnmp,TrapInterface,todmain,snmp_sess_add -LS0-6d -Lf
/var/log/snmpd.log -p /var/run/snmpd.pid
I can connect to any port I want.
If I try to start snmpd vi the OS (init script), it fails to bind to any port <
32767, generating a "netsnmp_tdomain_transport failed" error message.
Simply stopping the process and restarting by typing the snmpd command manually
allows snmpd to connect to the requested port and continue processing the
module.
Both methods are using identical snmpd.conf, with identical versions of the
module, loaded with dlmod. Both methods are using the same -D flags.
Current OS is Redhat 6.1. Net-snmp version is 5.5.
I could always choose a port > 32767, but that was not what the customer
requested, so am trying to meet their requirements. And, it seems like it
should work.
Any ideas.
Thanks,
Kyle Grundmann
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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