RE: Problems using snmptrap
From: Bowers Mike-cmb004 [mailto:michael.bow...@motorola.com] Sent: Wednesday, February 03, 2010 5:47 AM Nothing at all. When I execute the command it immediately returns the prompt. That's why I'm beginning to suspect the snmptrap executable is either messed up, or I'm missing some sort of configuration somewhere. Other commands in the util suite will show some sort of usage info when -h is given as an option. However, if I try this with snmptrap I still get absulutely nothing - it immediately returns to the command prompt. Does your fiewall have port 162 open? Have you tried sending to 127.0.0.1 (Same machine for send and receive, correct?)? HTH, Mike -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ 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: Problems using snmptrap
On 5 February 2010 00:50, Mike Ayers mike_ay...@tvworks.com wrote: Does your firewall have port 162 open? Have you tried sending to 127.0.0.1 (Same machine for send and receive, correct?)? But surely this would only affect whether the trap was *received* by snmptrapd? Mike(B) has said that turning on debugging on the client side indicates that the notification was never actually sent in the first place. I'm inclined to agree that this points the finger at a problem with the snmptrap command itself. Dave -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ 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: Problems using snmptrap
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 3 February 2010 03:01, Bowers Mike-cmb004 michael.bow...@motorola.com wrote: My setup is as follows - I have two command prompts open on a windows PC. In one I'm running snmptrapd using the command snmptrapd -Lo -a 10.2.135.137. So the trap receiver is listening on this address (and this address only). I've created the sample MIB referenced in the tutorial docs as follows: [snip] In a second command prompt I'm trying to send traps using the following command from the tutorial at http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptrap: snmptrap -v 1 -c public host UCD-TRAP-TEST-MIB::demotraps 6 17 SNMPv2-MIB::sysLocation.0 s Just here That looks about right. When I do this nothing happens - no errors in the sending window, nothing on the receiving command prompt window. What are you using for host in this command? However, if I load the same MIB contents in to iReasoning, and use it to send the trap, I see the trap received in the command prompt running the snmptrapd command. Which indicates that the receiver is working fine. So the problem is most likely at the sending side. I'm sure there's a simple setup somewhere that I've overlooked but I haven't found anything yet that has pointed me in the right direction. The one thing that springs to mind is to make sure that the destination specified on the snmptrap command line matches the address that the receiver is listening on. If that doesn't fix it, try running both receiver and sender with the flag '-d', to dump the raw packets. What do you see on either side? Dave -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ 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: Problems using snmptrap
On 3 February 2010 13:01, Bowers Mike-cmb004 michael.bow...@motorola.com wrote: 3) With -d on the trap receiver I see packet dumps only when sending from the mib browser. If I send using snmptrap I see nothing. Try adding '-d' to the snmptrap command line. What do you see there? Dave -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ 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: Problems using snmptrap
Sorry for the direct email - will keep that in mind! In response to your questions: 1) Yes - the trap receiver is listening on the specified addressed. I also tried running the snmptrapd command without that address specified with the same results. 2) For host in the snmptrap command I've tried 10.2.135.137 as well as 10.2.135.137:162 - same results - nothing happens. 3) With -d on the trap receiver I see packet dumps only when sending from the mib browser. If I send using snmptrap I see nothing. I'm suspecting that there's something wrong with the snmptrap executable at this point. If I try running snmptrap -h I still get absolutely nothing on the console. Mike -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Wednesday, February 03, 2010 3:43 AM To: Bowers Mike-cmb004 Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Problems using snmptrap [ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 3 February 2010 03:01, Bowers Mike-cmb004 michael.bow...@motorola.com wrote: My setup is as follows - I have two command prompts open on a windows PC. In one I'm running snmptrapd using the command snmptrapd -Lo -a 10.2.135.137. So the trap receiver is listening on this address (and this address only). I've created the sample MIB referenced in the tutorial docs as follows: [snip] In a second command prompt I'm trying to send traps using the following command from the tutorial at http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptrap: snmptrap -v 1 -c public host UCD-TRAP-TEST-MIB::demotraps 6 17 SNMPv2-MIB::sysLocation.0 s Just here That looks about right. When I do this nothing happens - no errors in the sending window, nothing on the receiving command prompt window. What are you using for host in this command? However, if I load the same MIB contents in to iReasoning, and use it to send the trap, I see the trap received in the command prompt running the snmptrapd command. Which indicates that the receiver is working fine. So the problem is most likely at the sending side. I'm sure there's a simple setup somewhere that I've overlooked but I haven't found anything yet that has pointed me in the right direction. The one thing that springs to mind is to make sure that the destination specified on the snmptrap command line matches the address that the receiver is listening on. If that doesn't fix it, try running both receiver and sender with the flag '-d', to dump the raw packets. What do you see on either side? Dave -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ 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: Problems using snmptrap
Nothing at all. When I execute the command it immediately returns the prompt. That's why I'm beginning to suspect the snmptrap executable is either messed up, or I'm missing some sort of configuration somewhere. Other commands in the util suite will show some sort of usage info when -h is given as an option. However, if I try this with snmptrap I still get absulutely nothing - it immediately returns to the command prompt. -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Wednesday, February 03, 2010 7:18 AM To: Bowers Mike-cmb004 Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Problems using snmptrap On 3 February 2010 13:01, Bowers Mike-cmb004 michael.bow...@motorola.com wrote: 3) With -d on the trap receiver I see packet dumps only when sending from the mib browser. If I send using snmptrap I see nothing. Try adding '-d' to the snmptrap command line. What do you see there? Dave -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ 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: Problems using snmptrap
On 1 February 2010 21:18, Bowers Mike-cmb004 michael.bow...@motorola.com wrote: I've tried for the last couple of hours in vain to get the snmptrap command line utility to work. I'm using verision 5.5 on Windows. I'm able to run the snmptrapd utility and am able to send traps to it successfully from a mib browser. The MIB I'm using for the trap is the one that is given in the tutorial at the netsnmp site. However, when I try to send traps from the command line using snmptrap I see no errors, but the snmptrapd console shows nothing either. All the other utils seem to work except snmptrap. Any pointers? Perhaps you could give us some details about what exactly you've tried. I try to send traps from the command line is a bit vague. Please post:: - the trap-related settings from snmpd.conf - the snmptrap command(s) that you have been trying - the snmptrapd.conf settings Maybe then we might be able to suggest what could be wrong. Dave -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ 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