Can any one give me some help on basic setup of configuration files? I think if any one is having the snmpd.conf with basic set up. it will be fine for me.

I  am trying to configure it by running "snmpconf -g basic_setup".  I am trying to provide everything as default. I am attaching the snmpd.conf/snmp.conf and snmptrapd.conf file here. All teh files are under c:/usr/etc/snmp

What is the basic test should I do so that i can be sure it is working fine. I am tring to run "snmpwalk -v 1 -c public localhost system" .. It is is giving error as "Timeout: No Response from localhost". Definitely it is an set up problem.

What all I have done.

1. built the win32.dsw under win32 directory . It has succesfully built all the libraries and executables. Before building i have followed the 

"Microsoft Visual C++ - Extending the Agent" steps to implement my mib.
2. run the "install-net-snmp.bat -debug" to install teh same.
3. net start "Net-SNMP Agent"
4. net start "Net-SNMP Trap Handler"
After this for any command , it is saying "Timeout: No Response from localhost"
I lost in setting up the configuration.
Please help me.
Thanks & regards
Mamon
 

 

 


Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
###########################################################################
#
# 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.

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser  noauth  
rwuser  noauth noauth 

# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rouser  noauth  

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity  default  
rocommunity  default  

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity  default  












###########################################################################
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysLocation.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  location_string

syslocation  Bangalore

# syscontact: The contact information for the administrator
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysContact.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

syscontact  partha

# sysservices: The proper value for the sysServices object.
#   arguments:  sysservices_number

sysservices 0



###########################################################################
# SECTION: Trap Destinations
#
#   Here we define who the agent will send traps to.

# trapsink: A SNMPv1 trap receiver
#   arguments: host [community] [portnum]

trapsink  kundu  

# trap2sink: A SNMPv2c trap receiver
#   arguments: host [community] [portnum]

trap2sink  localhost  

# informsink: A SNMPv2c inform (acknowledged trap) receiver
#   arguments: host [community] [portnum]

informsink  localhost snmp-trap 

# trapcommunity: Default trap sink community to use
#   arguments: community-string

trapcommunity  snmp-trap

# authtrapenable: Should we send traps when authentication failures occur
#   arguments: 1 | 2   (1 = yes, 2 = no)

authtrapenable  2



###########################################################################
#
# snmp.conf
#
#   - created by the snmpconf configuration program
#



###########################################################################
# SECTION: Debugging output options
#
#   This section allows debugging output of various kinds to
#   be turned on or off.

# dodebugging: Turns debugging output on or off (0|1)
#   arguments: (0|1)

dodebugging  0
dodebugging  0

# debugtokens: Debugging tokens specify which lines of debugging
#   output you'd actually like to see.  Each section of code is most
#   likely instrumented with a particular "tag".  So, to see that tag you
#   would specify it here.  Specifying a tag will match against all
#   tags that begin with that prefix, so the tag "test" will match
#   "test_function" and "test_something" and...
#   There are a few special tokens as well:
#   - ALL:   turns on all the tokens (which generates lots of output)
#   - trace: prints 'trace' lines showing source code files and
#   -        line numbers as they're traversed.
#   - dump:  Nicely breaks down packets as they're parsed or sent out.
#   command line equivelent: -Dtoken[,token...]
#   arguments: token[,token...]

debugtokens  ALL



###########################################################################
# SECTION: Textual mib parsing
#
#   This section controls the textual mib parser.  Textual
#   mibs are parsed in order to convert OIDs, enumerated
#   lists, and ... to and from textual representations
#   and numerical representations.

# mibdirs: Specifies directories to be searched for mibs.
#   Adding a '+' sign to the front of the argument appends the new
#   directory to the list of directories already being searched.
#   arguments: [+]directory[:directory...]

mibdirs C:/usr/share/snmp/mibs






#
# Unknown directives read in from other files by snmpconf
#
persistentDir C:/usr/snmp/persist
tempFilePattern C:/usr/temp/snmpdXXXXXX
###########################################################################
#
# snmptrapd.conf
#
#   - created by the snmpconf configuration program
#






###########################################################################
# SECTION: Logging options
#
#   Logging options

# outputoption: Toggle options controlling output display
#   See -O options in the snmptrapd.conf man page

outputoption  
###########################################################################
# SECTION: Runtime options
#
#   Runtime options

# pidfile: Store Process ID in file
#   arguments: PID file

pidfile  c:/usr/pid.txt






Reply via email to