Re: Snmptrap not forwarding on proper port
On 29 June 2011 17:45, George wrote: > but note that ./snmptrapd -f -Le did not keep the screen up on freebsd to > view the data live Strange What version of snmptrapd is this? > Jun 29 12:43:46 freebsd snmptrapd[93523]: [UDP: > [10.1.1.228]:50079->[0.0.0.0]]: Trap , >DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (163058628) 18 days, > 20:56:26.28, >SNMPv2-MIB::snmpTrapOID.0 = OID: UCD-DEMO-MIB::ucdDemoPublic, >SNMPv2-MIB::sysLocation.0 = STRING: yahoo You issued the same 'snmptrap' command three times, yes? What is the "format2" string that you're using? Because this looks more like the default layout, rather than the format2 '%B [%b]: %A [%a]: Trap %#v\n' output that I was suggesting. Dave -- 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
Windows 7 and net-snmp configuration
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/snmpdXX Dave wrote: 2011/6/6 : > 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
Windows 7 and net-snmp configuration
I did a mistake last mail.. :( I can only force an snmp get when the windows integrated service is started. Not if net-snmp is started. Then I only get: Timeout: No Response from 127.0.0.1 pls help. I wrote: 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/snmpdXX Dave wrote: 2011/6/6 : > 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 -- 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
IPv6 tests fail
Hi folks, My site has servers and workstations running Debian squeeze. I've got Cacti running on one server and it uses snmp to query all of the hosts it can access using IPv4. That works fine. But, there are workstations in remote locations that the Cacti server can only reach if I do lots of tunneling or use IPv6. The latter seems a better idea to me, so I'm attempting to get snmpd to respond to IPv6 requests, but am not having much luck. So far I've tried configuring /etc/snmp/snmpd.conf with, for example: agentAddress udp:6161,tcp6:161,udp6:1616 Which gives: ~# netstat -lpn |grep snmp tcp6 0 0 :::161:::* LISTEN 3163/snmpd udp 0 0 0.0.0.0:50305 0.0.0.0:* 3163/snmpd udp 0 0 0.0.0.0:58502 0.0.0.0:* 3163/snmpd udp 0 0 0.0.0.0:6161 0.0.0.0:* 3163/snmpd udp6 0 0 :::1616 :::* 3163/snmpd ~# _ That looks okay, and the IPv4 UDP port responds as expected: ~# snmpstatus -v2c -c public localhost:6161 [UDP: [127.0.0.1]:6161->[0.0.0.0]]=>[Linux gwz-21 2.6.32-5-686 #1 SMP Mon Jun 13 04:13:06 UTC 2011 i686] Up: 0:01:42.98 Interfaces: 3, Recv/Trans packets: 185737/316683 | IP: 169467/305191 1 interface is down! ~# _ But, the IPv6 ports do not -- all I get from them is timeouts: ~# snmpstatus -v2c -c public tcpipv6:[::1]:161 Timeout: No Response from tcpipv6:[::1]:161 ~# snmpstatus -v2c -c public udpipv6:[::1]:1616 Timeout: No Response from udpipv6:[::1]:1616 ~# _ I'm probably missing something. Can anyone help? Thanks, Jaap -- 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
Re: IPv6 tests fail
On 30 June 2011 11:51, Jaap Winius wrote: > So far I've tried configuring /etc/snmp/snmpd.conf with, for example: > > agentAddress udp:6161,tcp6:161,udp6:1616 What are your access control settings? Dave -- 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
Re: IPv6 tests fail
Quoting Dave Shield : > On 30 June 2011 11:51, Jaap Winius wrote: >> So far I've tried configuring /etc/snmp/snmpd.conf with, for example: >> >> agentAddress udp:6161,tcp6:161,udp6:1616 > > What are your access control settings? In /etc/hosts.allow I've got: snmpd: ALL Plus, I'm running xinetd, which has IPv6 support, but I'm not sure if that makes too much difference. I've also got "rouser noauth" in my snmpd.conf, although I'm not using snmp v3 at the moment. No com2sec or com2sec6 settings. Cheers, Jaap -- 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
Re: IPv6 tests fail
On 30 June 2011 13:25, Jaap Winius wrote: >> What are your access control settings? > > In /etc/hosts.allow I've got: > > snmpd: ALL Probably not relevant. I'm asking about the SNMP access control settings. > Plus, I'm running xinetd, which has IPv6 support, but I'm not sure if that > makes too much difference. Nope - see above. > I've also got "rouser noauth" in my snmpd.conf, > although I'm not using snmp v3 at the moment. If you're not using SNMPv3, then no - this isn't relevant either. > No com2sec or com2sec6 settings. You must have something else, otherwise the IPv4 queries wouldn't be working. No "rocommunity" or similar entries? Dave -- 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
Re: IPv6 tests fail
Quoting Dave Shield : > You must have something else, otherwise the IPv4 queries wouldn't > be working. No "rocommunity" or similar entries? I do have this: rocommunity public Oh, I see what you mean. Now I've added this: rocommunity6 public ... and it works! Thanks, Dave! Cheers, Jaap -- 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
dropping bad AgentX request (wrong mode 2)
Hi there, I implemented a subagent that handles snmp requests for a proprietary MIB. I can perform snmpwalk without issues. However, when I attempt to use snmpset to set an integer variable to a different value, my subagent output this error: dropping bad AgentX request (wrong mode 2) I am using net-snmp version 5.5 I googled on the net and the only source I got was http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg15741.html but there were no follow up. I did add debug_register_tokens( "agentx/subagent" ); rebuilt and reran the subagent, and below is the output I got. Strange thing is that this error did not prevent the subagent to perform the expected actions. Can someone please help me in understanding why I am getting this error, and what I should do to get rid of this error please? Thanks very much! Yiwen # ./ncSubAgent -f -L -DappRunTable,verbose:appRunTable,internal:appRunTable No log handling enabled - turning on stderr logging registered debug token appRunTable, 1 registered debug token verbose:appRunTable, 1 registered debug token internal:appRunTable, 1 verbose:appRunTable:init_appRunTable: called verbose:appRunTable:initialize_table_appRunTable: called internal:appRunTable:_appRunTable_initialize_interface: called verbose:appRunTable:appRunTable_init_data: called internal:appRunTable:_appRunTable_container_init: called verbose:appRunTable:appRunTable_container_init: called appRunTable:init_appRunTable: Registering appRunTable as a mibs-for-dummies table. internal:appRunTable:_cache_load: called verbose:appRunTable:appRunTable_container_load: called verbose:appRunTable:appRunTable_container_load: inserted 0 records NET-SNMP version 5.5 AgentX subagent connected registered debug token agentx/subagent, 1 agentx/subagent: checking status of session 0x8695c30 agentx/subagent: synching input, op 0x01 agentx/subagent: session 0x8695c30 responded to ping verbose:appRunTableEntry: readline read in: INTAS jXIO 1.0.1 26860 1 1 0 0Initial Application Registration verbose:appRunTableEntry: readline read in: INTAS jXIO 1.0.1 26860 1 2 0 0Initial Application Registration verbose:appRunTableEntry: readline read in: INTAS jXIO 1.0.1 26860 1 1 0 0Initial Application Registration agentx/subagent: handling agentx request (req=0x11e,trans=0x11d,sess=0x21) agentx/subagent: -> testset agentx/subagent: checking status of session 0x8695c30 internal:appRunTable:_cache_free: called internal:appRunTable:_container_free: called verbose:appRunTable:appRunTable_container_free: called internal:appRunTable:_cache_load: called verbose:appRunTable:appRunTable_container_load: called internal:appRunTable:appRunTable_allocate_rowreq_ctx: called verbose:appRunTable:appRunTable_rowreq_ctx_init: called verbose:appRunTable:appRunTable_indexes_set: called verbose:appRunTable:appRunTable_indexes_set_tbl_idx: called verbose:appRunTable:appRunTable_index_to_oid: called verbose:appRunTable:appRunTable_container_load: inserted 1 records internal:appRunTable:_mfd_appRunTable_pre_request: called verbose:appRunTable:appRunTable_pre_request: called internal:appRunTable:_mfd_appRunTable_object_lookup: called verbose:appRunTable:appRunTable_row_prep: called internal:appRunTable:_mfd_appRunTable_check_objects: called internal:appRunTable:_appRunTable_check_column: called for 8 verbose:appRunTable:appRunAdminState_check_value: called agentx/subagent: synching input, op 0x01 agentx/subagent: handling agentx subagent set response (mode=162,req=0x11e,trans=0x11d,sess=0x21) agentx/subagent: going from RESERVE1 -> RESERVE2 agentx/subagent: session 0x8695c30 responded to ping internal:appRunTable:_mfd_appRunTable_undo_setup: called verbose:appRunTable:appRunTable_allocate_data: called verbose:appRunTable:appRunTable_undo_setup: called internal:appRunTable:_appRunTable_undo_setup_column: called for 8 verbose:appRunTable:appRunAdminState_undo_setup: called agentx/subagent: handling agentx subagent set response (mode=162,req=0x11e,trans=0x11d,sess=0x21) agentx/subagent: FINISHED agentx/subagent: handling agentx request (req=0x11f,trans=0x11d,sess=0x21) agentx/subagent: -> commitset internal:appRunTable:_mfd_appRunTable_set_values: called internal:appRunTable:_appRunTable_set_column: called for 8 verbose:appRunTable:appRunAdminState_set: called internal:appRunTable:_mfd_appRunTable_check_dependencies: called internal:appRunTable:appRunTable_check_dependencies: called internal:appRunTable:_mfd_appRunTable_commit: called verbose:appRunTable:appRunTable_commit: called appRunTable:appRunTable_dirty_set: called. was 0, now 1 agentx/subagent: handling agentx request (req=0x11f,trans=0x11d,sess=0x21) agentx/subagent: -> commitset dropping bad AgentX request (wrong mode 2) agentx/subagent: handling agentx subagent set response (mode=162,req=0x11f,trans=0x11d,sess=0x21) agentx/subagent: FINISHED agentx/subagent:
Unable to build net-snmp on linux
Hi All, I am trying to install net-snmp on my linux machine. kanatara-lnx:50> uname -a Linux kanatara-lnx 2.6.9-42.7.ELsmp #1 SMP Tue Sep 5 18:29:39 EDT 2006 i686 i686 i386 GNU/Linux kanatara-lnx:51> I have downloaded net-snmp-5.6.1.1.zip from http://www.net-snmp.org. when I build, I hitting the following linking error: /bin/sed: can't read /usr/lib/libbeecrypt.la: No such file or directory I am seeing a shared library in /usr/lib. But, There is no static library. kanatara-lnx:53> ls /usr/lib/*beecr* /usr/lib/libbeecrypt.so.6 /usr/lib/libbeecrypt.so.6.2.0 Please help me to fix this error. Build_logs: --- _access/udp_endpoint_common.lo mibgroup/udp-mib/data_access/udp_endpoint_linux.lo mibgroup/ip-mib/data_access/ipaddress_ioctl.lo mib_modules.lo auto_nlist.lo libnetsnmpagent.la ../snmplib/libnetsnmp.la -lrpm -lrpmdb -lrpmio -lpopt -lz grep: /usr/lib/libbeecrypt.la: No such file or directory /bin/sed: can't read /usr/lib/libbeecrypt.la: No such file or directory libtool: link: `/usr/lib/libbeecrypt.la' is not a valid libtool archive make-3.79.1-p7[1]: *** [libnetsnmpmibs.la] Error 1 make-3.79.1-p7[1]: Leaving directory `/scratch/net-snmp-5.6.1.1/agent' make-3.79.1-p7: *** [subdirs] Error 1 kanatara-lnx:49> kanatara-lnx:49> Thanks, -karthi -- 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
Re: Unable to build net-snmp on linux
Comments inline. On Fri, Jul 1, 2011 at 4:27 AM, N. Karthikeyan wrote: > Hi All, > >I am trying to install net-snmp on my linux machine. > > kanatara-lnx:50> uname -a > Linux kanatara-lnx 2.6.9-42.7.ELsmp #1 SMP Tue Sep 5 18:29:39 EDT 2006 i686 > i686 > i386 GNU/Linux > kanatara-lnx:51> > >I have downloaded net-snmp-5.6.1.1.zip from http://www.net-snmp.org. > >> Well, *.zip is generally for Windows. For Linux, you will have to get *.tar.gz from the site and build it. when I build, I hitting the following linking error: > > /bin/sed: can't read /usr/lib/libbeecrypt.la: No such file or directory > >I am seeing a shared library in /usr/lib. But, There is no static > library. > > kanatara-lnx:53> ls /usr/lib/*beecr* > /usr/lib/libbeecrypt.so.6 /usr/lib/libbeecrypt.so.6.2.0 > >Please help me to fix this error. > > Build_logs: > --- > _access/udp_endpoint_common.lo > mibgroup/udp-mib/data_access/udp_endpoint_linux.lo > mibgroup/ip-mib/data_access/ipaddress_ioctl.lo mib_modules.lo auto_nlist.lo > libnetsnmpagent.la ../snmplib/libnetsnmp.la -lrpm -lrpmdb -lrpmio -lpopt > -lz > > grep: /usr/lib/libbeecrypt.la: No such file or directory > /bin/sed: can't read /usr/lib/libbeecrypt.la: No such file or directory > libtool: link: `/usr/lib/libbeecrypt.la' is not a valid libtool archive > make-3.79.1-p7[1]: *** [libnetsnmpmibs.la] Error 1 > make-3.79.1-p7[1]: Leaving directory `/scratch/net-snmp-5.6.1.1/agent' > make-3.79.1-p7: *** [subdirs] Error 1 > kanatara-lnx:49> > kanatara-lnx:49> > > > Thanks, > -karthi > > > -- > 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 > -- -- Ashwin Kumar -- 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