Menu

#1164 problem to launch agent on mutiple transports

closed
nobody
agent (1105)
6
2012-11-08
2004-08-25
Anonymous
No

This problem is found in v5.0.9 and on linux system.

There is a problem to launch agents on mutiple
transports. The following CLI will fail.
"snmpd tcp:161,tcp6:161,udp:161,udp6:161"

If you enable SO_REUSEADDR code in snmpUDPDomain.c
and snmpUDPIPv6Domain.c, udp and udp6 can be
launched together. For tcp and tcp6, bind() seems not
allowing to multiple apps to open the same port. Bind()
always failed for the second transport - errno IN USE.
So, "snmpd udp:161,udp6:161" is ok. But "snmpd
tcp:161,tcp6:161" will fail.

This is the same issue if you set agentaddress in
snmpd.conf.

Discussion

  • Robert Story

    Robert Story - 2004-10-08

    Logged In: YES
    user_id=76148

    While SO_REUSEADDR appears to help, bu letting the agent
    start succesfully, data will only be received via the second
    transport. If you bind to a specific address, you may bind
    to both transports (eg 'udp:localhost:161,upd6:[:1]:161').

    Not sure if this is a kernel problem, or transport problem.

     
  • Thomas Anders

    Thomas Anders - 2005-10-18

    Logged In: YES
    user_id=848638

    Can you please retest with a recent version, preferrably
    5.2.2.rc1 or later, and report back?

    What kernel version and platform/distro is this?

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 180 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.

MongoDB Logo MongoDB