Re: SNMP non binding to socket 161

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
    [ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]


On 13/02/07, Adam Bell <[email protected]> wrote:
> Usually there is a state : LISTENING when it is operational.

There willbe a state LISTENING for *TCP* services, yes.
But SNMP is primarily a UDP-based protocol, so wouldn't
necessarily be displayed as "LISTENING".
   (It depends on the underlying O/S)

>                    Since the
> packets are queuing in the Recv-Q and sticking there, it is not even getting
> to the place where access control could decide.

Fair comment.

> The snmpd.conf file I was using was pretty paired down, I was starting with
> v2c so just declared the community strings.  I confirmed the get via a
> packet sniffer and it was correct.

One possibility is that the agent isn't reading the config file you expect.
Try using the option '-Dread_config' to check what it's actually working with.


> I am going to try the EXAMPLE.conf file today and see if that changes
> anything.

Hmmm...  not sure that'll help.  Particularly if you're working with a simple
config file already.


> Any other ideas? I would appreciate it.

Try starting the agent using

     snmpd  -f -Le       (plus any other options you need)

That will let you see any error messages that the agent might produce.

Another thing to check - shut down the agent, and run "netstat" again.
Does the "snmp" entry disappear?

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
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.