A manager using a single socket and multiple agents?

Ed Fair <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <CAK3Sf8ibQAf9gC8EoNZbsSYf0efw2G=K6m9dOX_jPreHrfA6tQ@mail.gmail.com>
I'm trying to write an SNMP manager using the net-snmp API.  The manager
will use UDP in IPv4 and IPv6, and will be sending get-requests (and
getbulk, and getnext) to 10000 agents (arbitrary number, but you get the
idea - a relatively large number).  Is there any way to do this using just
a single session?

I've compiled and experimented with the demo apps, they seem to use one
session per agent.

Creating 10000 separate sessions seems excessive (as I understand, this
would consume 10000 sockets and 10000 distinct SRC PORTS from my host).

Creating/using/closing 10000 sessions seems excessive as well.

The reason I'm going here:  my manager must interact with a firewall before
sending any requests to any agents; a single firewall interaction
identifying a single UDP source port would be much more desirable than
10000 firewall interactions identifying 10000 different UDP source ports.

Thanks in advance for your comments.

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.