On Fri, 2005-06-24 at 13:25, mahua dutta wrote:
> I am tring to run "snmpwalk -v 1 -c public localhost system" ..
>  It is is giving error as "Timeout: No Response from localhost".

That's because you haven't configured "public" as an acceptable
community string.  The *only* community string that you've
specified is "default".

Try
    snmpwalk -v 1 -c default localhost system



> # snmpd.conf
> # SECTION: Access Control Setup



> rwuser  noauth  
> rwuser  noauth noauth 
> rouser  noauth  

There is no point in having the same SNMPv3 username appear more than
once.   Choose *one* of these three lines, and delete the other two.

If you don't intend to use SNMPv3, then delete all three lines.


> rocommunity  default  
> rocommunity  default  
> rwcommunity  default  

Similarly, there is no point in having the same community string
appear more than once.  Delete all but one of these lines
(depending on whether you want to allow SET access or not).



> # SECTION: Trap Destinations
> trapsink  kundu  
> trap2sink  localhost  
> informsink  localhost snmp-trap 

There is no point in defining the same destination twice.
This will result in *two* copies of every trap being sent to
"localhost" (as well as another copy being sent to "kundu")

Decide where you want traps to be sent, and just have one
line referencing that particular destination.




________________________________________________________________________
> ###########################################################################
> # snmp.conf

I wouldn't bother with an 'snmp.conf' file, until you're sure that
you actually need one.



________________________________________________________________________
> ###########################################################################
> # snmptrapd.conf

Again, this isn't necessary for simply querying the agent for
information.   You'd usually only bother with a trapd.conf file
when you want to start doing clever things with incoming traps.



Start with a very simple 'snmpd.conf' file, containing just

        rocommunity public

and see how you get on with that.


Dave



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to