This is a discussion on Re: snmptrap to localhost within the SNMP Users forums, part of the Networking and Network Related category; --===============2054368155== Content-Type: multipart/alternative; boundary="----=_Part_15247_6056139.1179844577897" ------=_Part_15247_6056139.1179844577897 Content-Type: text/plain; charset=ISO-8859-1; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============2054368155==
Content-Type: multipart/alternative; boundary="----=_Part_15247_6056139.1179844577897" ------=_Part_15247_6056139.1179844577897 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 5/22/07, Daniel Coelho <danicoelho7@gmail.com> wrote: > > When I do > snmptrap -v 1 -c public localhost '' 0 0 '' coldStart.0 > or > snmptrap -v 1 -c public 127.0.0.1 '' 0 0 '' coldStart.0 > or > snmptrap -v 1 -c public 172.18.50.103 '' 0 0 '' coldStart.0 > I get nothing with tcpdump. (172.18.50.103 being my IP) > > Thanks in advance. > > Daniel Coelho > > > On 5/22/07, rakesh zingade <rakeshzingade@gmail.com> wrote: > > > > > > > > On 5/22/07, Daniel Coelho < danicoelho7@gmail.com> wrote: > > > > > Hi, > > > > > > when I do > > > snmptrap -v 1 -c public not_localhost_IP '' 0 0 '' coldStart.0 > > > the trap is received by the other host (I checked with tcpdump), > > > > > > but when I do > > > snmptrap -v 1 -c public local_IP_or_localhost '' 0 0 '' > > > coldStart.0 > > > I get nothing with the tcpdump port 162 and udp. > > > > > > Why can't I receive traps sent from localhost to localhost? > > > > > > Daniel Coelho > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > 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/...net-snmp-users > > > > > > > > > > are not_localhost_IP and local_IP_or_localhost defined in /etc/hosts or > > config files? > > > > Try with only localhost or 127.0.01 > > > > -- > > Rakesh P. Zingade > > +919860129598 > > First do not send me an email directly .. send it through net-snmp users community so others can help you and learn from the messages. Try this: snmptrap -v 1 -m ALL -c public localhost .1.3.6.1.6.3 localhost 6 1 20071105 Actually the syntax is snmptrap -v 1 -c <community> manager_address OID agent_address <reasion for sending trap> <trap-type> <Time stamp> snmptrap -v 2c -c <community> manager_address <Time stamp> Trap OID First run your snmptrapd in a shell then from other shell try to send snmptrap... If you still had a problem then send us what messages you are getting after executing snmptrapd and snmptrap -- Rakesh P. Zingade +919860129598 ------=_Part_15247_6056139.1179844577897 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <br><div><span class="gmail_quote">On 5/22/07, <b class="gmail_sendername">Daniel Coelho</b> <<a href="mailto:danicoelho7@gmail.com">danicoelho7@gm ail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div>When I do</div> <div>snmptrap -v 1 -c public localhost '' 0 0 '' coldStart.0<br>or</div> <div>snmptrap -v 1 -c public <a href="http://127.0.0.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a> '' 0 0 '' coldStart.0</div> <div>or</div> <div>snmptrap -v 1 -c public <a href="http://172.18.50.103" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">172.18.50.1 03</a> '' 0 0 '' coldStart.0<br>I get nothing with tcpdump. ( <a href="http://172.18.50.103" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">172.18.50.1 03</a> being my IP)</div> <div> </div> <div>Thanks in advance.</div><span class="sg"> <div> </div> <div>Daniel Coelho<br><br> </div></span><div><span class="e" id="q_112b42a629da0e4b_2"> <div><span class="gmail_quote">On 5/22/07, <b class="gmail_sendername">rakesh zingade</b> <<a href="mailto:rakeshzingade@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rakeshzinga de@gmail.com </a>> wrote:</span> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><br><br> <div> <div><span><span class="gmail_quote">On 5/22/07, <b class="gmail_sendername">Daniel Coelho</b> <<a href="mailto:danicoelho7@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> danicoelho7@gmail.com</a>> wrote:</span></span></div> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div><span> <div>Hi,</div> <div> </div> <div>when I do</div> <div>snmptrap -v 1 -c public not_localhost_IP '' 0 0 '' coldStart.0</div> <div>the trap is received by the other host (I checked with tcpdump),</div> <div> </div> <div>but when I do</div> <div>snmptrap -v 1 -c public local_IP_or_localhost   ; '' 0 0 '' coldStart.0</div> <div>I get nothing with the tcpdump port 162 and udp.</div> <div> </div> <div>Why can't I receive traps sent from localhost to localhost?</div></span></div><span> <div> </div> <div>Daniel Coelho</div> <div> </div> <div> </div></span><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by DB2 Express<br>Download DB2 Express C - the FREE version of DB2 express and take<br>control of your XML. No limits. Just data. Click to get it now. <br><a href="http://sourceforge.net/powerbar/db2/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://sourceforge.net/powerbar/db2/</a><br>____________________________________________ ___<br>Net-snmp-users mailing list <br><a href="mailto:Net-snmp-users@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Net-snmp-users@lists.sourceforge.net</a><br>Please see the following page to unsubscribe or change other options: <br><a href="https://lists.sourceforge.net/lists/listinfo/net-snmp-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.sourceforge.net/lists/listinfo/net-snmp-users</a><br><br></blockquote> </div><br><br clear="all">are not_localhost_IP and local_IP_or_localhost defined in /etc/hosts or config files?<br> <br>Try with only localhost or 127.0.01<br><span><br>-- <br>Rakesh P. Zingade<br>+919860129598 </span></blockquote></div></span></div></blockquote><div><br> </div>First do not send me an email directly .. send it through net-snmp users community so others can help you and learn from the messages. <br></div><br><br clear="all"> Try this:<br> <br> snmptrap -v 1 -m ALL -c public localhost .1.3.6.1.6.3 localhost 6 1 20071105 <br> <br> Actually the syntax is <br> <br> snmptrap -v 1 -c <community> manager_address OID agent_address <reasion for sending trap> <trap-type> <Time stamp><br> <br> snmptrap -v 2c -c <community> manager_address <Time stamp> Trap OID<br> <br> First run your snmptrapd in a shell then from other shell try to send snmptrap...<br> <br> If you still had a problem then send us what messages you are getting after executing snmptrapd and snmptrap <br> <br><br>-- <br>Rakesh P. Zingade<br>+919860129598 ------=_Part_15247_6056139.1179844577897-- --===============2054368155== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============2054368155== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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/...net-snmp-users --===============2054368155==-- |