Dear Dave,

What setting do you have in your "snmpd.conf" file?

Below is setting in my snmpd.conf 


/usr/local/share/snmp#cat snmpd.conf
###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#

###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent..
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]
rocommunity  public






###########################################################################
# SECTION: Agent Operating Mode
#
#   This section defines how the agent will operate when it
#   is running.
# agentaddress: The IP address and port number that the agent will listen on.
#   By default the agent listens to any and all traffic from any
#   interface on the default SNMP port (161).  This allows you to
#   specify which address, interface, transport type and port(s) that you
#   want the agent to listen on.  Multiple definitions of this token
#   are concatenated together (using ':'s).
#   arguments: [transport:]po...@interface/address],...
agentaddress  161

com2sec notConfigUser  default       public




#       groupName      securityModel securityName

group   notConfigGroup v1           notConfigUser

group   notConfigGroup v2c           notConfigUser




# Make at least  snmpwalk -v 1 localhost -c public system fast again.

#       name           incl/excl     subtree         mask(optional)

view    allview    included   .1.3.6

view    systemview    included   .1.3.6.1.2.1.1

view    systemview    included   .1.3.6.1.2.1.25.1.1




#       group          context sec.model sec.level prefix read   write  notif

access  notConfigGroup ""      any       noauth    exact  allview none none

# Proxy IBM Agnt Requests for port number
proxy -v 1 -c public 127.0.0.1:161 1.3.6.1.4.1.2.2.1.1.0
proxy -v 1 -c public 127.0.0.1:161 1..3.6.1.4.1.2.2.1.1.1.0
# Proxy iftable(IF-MIB: Interface Names & Stats), iptable and ifalias
proxy -v 1 -c public 127.0.0.1:161 .1.3.6.1.2.1
proxy -v 1 -c public 127.0.0.1:161 .1.3.6.1.2.1.4.20.1
# Proxy RFC1213-MIB (Route Info)
proxy -v 1 -c public 127.0.0.1:161 .1.3.6.1.2.1.4.21.1
# Proxy SysUptime (netsnmp doesn't work)
proxy -v 1 -c public 127.0.0.1:161 1..3.6.1.2.1.25.1.1.0
# Proxy the SNMP Descr so OS shows up properly in zenoss parsing
proxy -v 1 -c public 127.0.0.1:161 .1.3.6.1.2.1.1.1.0

Where exactly is this file?

 /usr/local/share/snmp/snmpd.conf 

Please help me to solve this problem

Best Regards,


________________________________
From: Dave Shield <[email protected]>
To: down Load <[email protected]>
Cc: [email protected]
Sent: Tuesday, March 31, 2009 4:45:32 PM
Subject: Re: snmpwalk can't walk when start by /usr/local/sbin/snmpd

2009/3/31 down Load <[email protected]>:
>> What is the exact command(s) that you are trying?
> /usr/local/sbin/snmpd

That's not what I was asking.
You keep saying "snmpwalk can't run"
So I was asking
  what is the exact snmpwalk command that "can't run" ?
  and what exactly do you mean by "can't run" ?

Fortunately you have included this information below.



> 1) i try to start by /usr/local/sbin/snmpd
> /usr/local/sbin/snmpd


> 4) run snmpwalk
> /usr/local/bin#./snmpwalk -v1 -cpublic localhost
> Timeout: No Response from localhost

This looks like an access control problem
What setting do you have in your "snmpd.conf" file?
Where exactly is this file?


Please read the Net-SNMP FAQ, which includes several
entries on this exact problem.

Dave



      
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to