Re: snmptrap to localhost

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; ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-22-2007
rakesh zingade
 
Posts: n/a
Default Re: snmptrap to localhost

--===============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> &lt;<a href="mailto:danicoelho7@gmail.com">danicoelho7@gm ail.com</a>&gt; 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&nbsp; -v 1 -c public&nbsp; localhost&nbsp;&nbsp; ''&nbsp; 0 0&nbsp; '' coldStart.0<br>or</div>
<div>snmptrap&nbsp; -v 1 -c public&nbsp;&nbsp; <a href="http://127.0.0.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1</a>&nbsp; ''&nbsp; 0 0&nbsp; '' coldStart.0</div>
<div>or</div>
<div>snmptrap&nbsp; -v 1 -c public&nbsp;&nbsp; <a href="http://172.18.50.103" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">172.18.50.1 03</a>&nbsp; ''&nbsp; 0 0&nbsp; '' 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>&nbsp;</div>
<div>Thanks in advance.</div><span class="sg">
<div>&nbsp;</div>
<div>Daniel Coelho<br><br>&nbsp;</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> &lt;<a href="mailto:rakeshzingade@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rakeshzinga de@gmail.com
</a>&gt; 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> &lt;<a href="mailto:danicoelho7@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
danicoelho7@gmail.com</a>&gt; 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>&nbsp;</div>
<div>when I&nbsp;do</div>
<div>snmptrap&nbsp; -v 1 -c public&nbsp;&nbsp;not_localhost_IP&nbsp;&nbsp; ''&nbsp; 0 0&nbsp; '' coldStart.0</div>
<div>the trap is received by the other host (I checked with tcpdump),</div>
<div>&nbsp;</div>
<div>but when I do</div>
<div>snmptrap&nbsp; -v 1 -c public&nbsp;&nbsp;local_IP_or_localhost&nbsp;&nbsp ; ''&nbsp; 0 0&nbsp; '' coldStart.0</div>
<div>I get nothing with the tcpdump port 162 and udp.</div>
<div>&nbsp;</div>
<div>Why can't I receive traps sent from&nbsp;localhost to localhost?</div></span></div><span>
<div>&nbsp;</div>
<div>Daniel Coelho</div>
<div>&nbsp;</div>
<div>&nbsp;</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>&nbsp;<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>&nbsp;</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&nbsp; -v&nbsp; 1&nbsp; -m ALL -c&nbsp; public localhost .1.3.6.1.6.3&nbsp; localhost 6 1 20071105 <br>
<br>
Actually the syntax is <br>
<br>
snmptrap -v 1&nbsp; -c &lt;community&gt; manager_address OID agent_address
&lt;reasion for sending trap&gt; &lt;trap-type&gt; &lt;Time stamp&gt;<br>
<br>
snmptrap -v 2c -c &lt;community&gt; manager_address &lt;Time stamp&gt; 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==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:01 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0