I currently managed it to write an configuration file with but when I start it 
as a windows service on machine B I can't force an snmpget from an machine A to 
machine B. 

when I do it locally with this command it works: 
C:\usr\bin>snmpget.exe -v 1 -c name 127.0.0.1 sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Hardware: Intel64 Family 6 Model 37 Stepping 2
AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7600 Multiprocessor Free
)


snmpd.conf:

rocommunity public



snmp.conf:


defaultport  161

# defversion: The default snmp version number to use.
#   override: with -v on the command line.
#   arguments: 1|2c|3

defversion  1

# defcommunity: The default snmpv1 and snmpv2c community name to use when 
needed.
#   If this is specified, you don't need to include the community
#   name as an argument to the snmp applications.  
#   override: with -c on the command line.
#   arguments: communityname

defcommunity  name

mibdirs C:/usr/share/snmp/mibs
persistentDir C:/usr/snmp/persist
tempFilePattern C:/usr/temp/snmpdXXXXXX


Dave wrote:

2011/6/6 <guyfawkes@...>:
> I have downloaded ucd-snmp-4.2.3-win32 and unpacked it.
> I found in the subdirectory ucd-snmp-4.2.3-win32\usr\bin
> the *.exe files and in ucd-snmp-4.2.3-win32\usr\mibs the mib files.
>
> What I can't find are the snmpd.conf, the snmp.conf and the snmp.local.conf.
>
> Where do i get these files

They are not distributed as part of the Net-SNMP packages
These are simple text files, which you should create yourself
(using your preferred text editor), to match your management
requirements.

The simplest 'snmpd.conf' would look something like

    rocommunity public

You don't actually need 'snmp.conf' or 'snmp.local.conf' files.


>    and where should they be located on my windows machine

Typically C:\usr\etc\snmp\

Dave
-- 
NEU: FreePhone - kostenlos mobil telefonieren!                  
Jetzt informieren: http://www.gmx.net/de/go/freephone

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to