Michael:
I make everything work together by starting up snmp agent thread first, before
other threads start, so that the sockets opened by other threads will not be
shutdown by snmp agent.
This is a work around solution. I still don't know why snmp agent shutdown all
the other open sockets. If you find the reason, please let me know.
Thank you a lot for your help.
Thank you,
Linda
On Wednesday, April 30, 2014 10:26 AM, linda zhu <lzhu07...@yahoo.com> wrote:
Michael:
Thank you so much for you looking into my problem. I am running snmpd as a
thread in my SIP proxy (named BSP). When snmpd is not enabled, everything is
working fine. However, once snmpd is enabled, only connection to SNMPd is
working, all other connections do not work.
As you suggested, I issued command "netstat -lp", here is what happened.
If snmpd is not enabled, BSP listens to all the ports it should:
[root@proxy-mobile-2]# netstat -lp --numeric-ports
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 *:8052 *:*
LISTEN 19945/bsp
tcp 0 0 proxy-mobile-ob-vm-02.:5081
*:* LISTEN 19945/bsp
tcp 0 0 localhost:30052 *:*
LISTEN 19945/bsp
udp 0 0 proxy-mobile-ob-vm-02.d:8052
*:* 19945/bsp
udp 0 0 proxy-mobile-ob-vm-02.d:5081 *:*
19945/bsp
However, once I enabled snmpd, BSP no longer listen to these port, except 9000,
which is SNMP port I specified:
[root@proxy-mobile-2]# netstat -lp --numeric-ports
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local
Address Foreign Address State PID/Program name
tcp 0 0 *:8052 *:*
LISTEN -
tcp 0 0 localhost:30052
*:* LISTEN -
udp 0 0 proxy-mobile-ob-vm-02.d:8052 *:*
-
udp 0 0 *:9000
*:* 20076/bsp
udp 0 0 proxy-mobile-ob-vm-02.d:5081 *:*
-
Any idea what might cause it?
Thank you a lot,
Linda
On Wednesday, April 30, 2014 8:10 AM, Michael Bunk <m...@computer-leipzig.com>
wrote:
I cannot understand from your description what is going on, but did you
check basic things like
* that no firewall
interferes
* whether snmpd listens for tcp at all with "netstat -lp"
* snmpd logs
* starting "snmpd -f" to eventually see more error messages
Best regards,
Michael
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS
combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders