On Mon, 2006-01-16 at 12:32 +0530, Naganarasimha wrote:
> Does each row in this table "udpEntry", represent one listener.

What do you mean by "listener" ?

Each row in the table corresponds to a single listening *port*
(either a particular port on a specific N/W interface, or
 a particular port on "all interfaces" - denoted by 0.0.0.0)

But that's not necessarily the same as a single listening
*application*. A given application could quite easily listen
on two or more different ports (and would then appear as two
or more different lines in the udpTable).

Or it could listen on the same nunbered port, but on two different
interfaces, which is the scenario that Robert has described.
Again, this will appear as two separate lines in the udpTable.

That's because as far as the application is concerned, these
*are* two distinct listeners - it'll use two different file
descriptors for the two ports, running "lsof" on that process
would show two listening entries, and running "netstat -a"
would also display two lines for these two listening sockets.

Compare that with a "wildcarded" listener, which listens for
connections to the specified port on *any* interface.  That
will use a single file descriptor, there'll only be one
entry displayed by "lsof", one line in the "netstat -a" output
and one row in the udpTable.


There's nothing unusual about SNMP here - it's reporting exactly
the same information as "netstat", in much the same way.



> And if the snmpd is started with <portaddress>@localport (ex snmpd
> tcp:[EMAIL PROTECTED] ) then I will not be able to access any mib
> variable with the ipaddress

Correct
Well, apart from being the wrong syntax for specifying ports,
and used inconsistently to boot!

There will be one listener, listening on the UDP port 127.0.0.1:161
And so there will be one entry in the udpTable for this listener.

But if you started snmpd as
      'snmpd 192.168.0.1:161,localhost:161'

then there will be *two* listeners, one listening on the UDP port
127.0.0.1:161, and one listening on the UDP port 192.168.0.1:161
So there will be two entries in the udpTable.


> 
> Hence I presume each entry in this table can be considered as one
> listner.

Yes.
But one listening *port*, not one listening *application*.
That seems to be the mistake you're making.

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to