RE: How to control agent sending SNMP request multiple times

This is a discussion on RE: How to control agent sending SNMP request multiple times within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============0317079277== Content-class: urn:content-classes:message Content-Type: multipart/alternative; ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-12-2007
Pamidipati Suresh-G20238
 
Posts: n/a
Default RE: How to control agent sending SNMP request multiple times

This is a multi-part message in MIME format.

--===============0317079277==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C80CC0.77C8D5BA"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C80CC0.77C8D5BA
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
Which version of Net-snmp are you using..?
With "-r 0" option in snmp request and agentxRetries as 0, there should
be only one request received by the subagent.=20
Are you sure snmpd is reading the same file "snmpd.conf" in which you
added "agentxRetries 0"..?=20
[You can check that by adding some invalid token/data in snmpd.conf and
see if it throws any error ]
Did you mention retries as 0 ( -r 0) while sending snmp request..?
=20
Regards,
Suresh.
=20
=20

-----Original Message-----
From: snmpgi [mailto:snmpgi@users.sourceforge.net]=20
Sent: Friday, October 12, 2007 4:02 PM
To: Pamidipati Suresh-G20238; net-snmp-users@lists.sourceforge.net
Subject: RE: How to control agent sending SNMP request multiple times


Hi,
Thanks for the reply. I did as u told but still its forwarding the
requests to subagent multiple timings. But this time the request id is
the same. Previously it was different. But I want the request to be
sent only one time. For this wat else I need to do. Please do help me in
this regard.
Thanks,




Hi,
=20
The default value of no of agentxRetries (from SNMPD to Subagent for
Agentx requests) is 5.
You can configure this by specifying the token agentxRetries in
snmpd.conf file as below.
=20
agentxRetries 0=20
# This means 0 retries.
=20
And the default value of no of retries of any snmp request (snmpget,
snmpset, snmpgetnext, etc from snmp manager to SNMPD) is also 5. You can
specify any other value for retries using -r option in snmp request.
Example is given below.
=20
snmpgetnext -v2c -c public -r 0 localhost 1
=20
=20
Regards,
Suresh.
=20
=20
=20
=20

-----Original Message-----
From: net-snmp-users-bounces@lists.sourceforge.net
[mailto:net-snmp-users-bounces@lists.sourceforge.net] On Behalf Of
snmpgi
Sent: Friday, October 12, 2007 11:18 AM
To: net-snmp-users@lists.sourceforge.net
Subject: How to control agent sending SNMP request multiple times


Hi,
I am running an MasterAgent and a Subagent. When I send a snmpget
request the master is sending the same to subagent through agentx about
50 times before timeout. Is there any way by which i can control the
master to forward the snmp request to subagent only for 4 to 5 times and
not more than that. Since this creating a problem in our system.






_____ =20

Unlimited freedom, unlimited storage. Get
<http://in.rd.yahoo.com/tagline_mail_...com/l/in/yahoo
/mail/yahoomail/tools/tools-08.html/> it now




_____ =20

Why delete messages? Unlimited storage is just
<http://in.rd.yahoo.com/tagline_mail_...com/l/in/yahoo
/mail/yahoomail/tools/tools-08.html/> a click away.


------_=_NextPart_001_01C80CC0.77C8D5BA
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2900.3132" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D932550011-12102007>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D932550011-12102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D932550011-12102007>Which=20
version of Net-snmp are you using..?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D932550011-12102007>With=20
"-r 0" option in snmp request and agentxRetries as 0, there should be =
only one=20
request received by the subagent. </SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D932550011-12102007>Are=20
you sure snmpd is reading the same file "snmpd.conf" in which you added =
"<SPAN=20
class=3D707283108-12102007><FONT face=3DArial color=3D#0000ff =
size=3D2>agentxRetries=20
0"..? </FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D932550011-12102007><SPAN=20
class=3D707283108-12102007>[You can check that by adding some invalid=20
token/data&nbsp;in&nbsp;snmpd.conf and see if it throws any error=20
]</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D932550011-12102007><SPAN=20
class=3D707283108-12102007>Did you mention retries as 0&nbsp;( -r&nbsp; =
0)=20
while&nbsp;sending&nbsp;snmp request..?</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D932550011-12102007><SPAN=20
class=3D707283108-12102007></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D932550011-12102007><SPAN=20
class=3D707283108-12102007>Regards,</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D932550011-12102007><SPAN=20
class=3D707283108-12102007>Suresh.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D932550011-12102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> =
snmpgi=20
[mailto:snmpgi@users.sourceforge.net] <BR><B>Sent:</B> Friday, October =
12,=20
2007 4:02 PM<BR><B>To:</B> Pamidipati Suresh-G20238;=20
net-snmp-users@lists.sourceforge.net<BR><B>Subject:</B> RE: How to =
control=20
agent sending SNMP request multiple=20
times<BR><BR></FONT></DIV>Hi,<BR>&nbsp;&nbsp; Thanks for the reply. I =
did as u=20
told but still its forwarding the requests to subagent multiple =
timings. But=20
this time the request id is the same. Previously it was =
different.&nbsp;=20
But&nbsp; I want the request to be sent only one time. For this wat =
else I=20
need to do. Please do help me in this=20
regard.<BR>Thanks,<BR><BR><B><I></I></B><BR>
<BLOCKQUOTE class=3Dreplbq=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: =
rgb(16,16,255) 2px solid">
<META content=3D"MSHTML 6.00.2900.3132" name=3DGENERATOR>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>The default value&nbsp;of no of agentxRetries (from SNMPD =
to Subagent=20
for Agentx requests) is 5.</FONT></SPAN></DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>You can configure this by specifying the token =
agentxRetries in=20
snmpd.conf file as below.</FONT></SPAN></DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>agentxRetries 0 </FONT></SPAN></DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff size=3D2>#=20
This means 0 retries.</FONT></SPAN></DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>And the default value of no of retries of any snmp request =
(snmpget,=20
snmpset, snmpgetnext, etc from snmp manager to SNMPD) is also 5. You =
can=20
specify any other value for retries&nbsp;using&nbsp;-r option in =
snmp=20
request.&nbsp;Example is given below.</FONT></SPAN></DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>snmpgetnext -v2c -c public -r 0 localhost =
1</FONT></SPAN></DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>Suresh.</FONT></SPAN></DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D707283108-12102007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20
net-snmp-users-bounces@lists.sourceforge.net=20
[mailto:net-snmp-users-bounces@lists.sourceforge.net] <B>On Behalf =
Of=20
</B>snmpgi<BR><B>Sent:</B> Friday, October 12, 2007 11:18 =
AM<BR><B>To:</B>=20
net-snmp-users@lists.sourceforge.net<BR><B>Subject:</B> How to =
control=20
agent sending SNMP request multiple=20
times<BR><BR></FONT></DIV>Hi,<BR>&nbsp;&nbsp;&nbsp; I am running =
an=20
MasterAgent and a Subagent. When I send a snmpget request the =
master is=20
sending the same to subagent through agentx about 50 times before =
timeout.=20
Is there any way by which i can control the master to forward the =
snmp=20
request to subagent only for 4 to 5 times and not more than that. =
Since=20
this creating a problem in our system.<BR><BR><BR><BR><BR><BR>
<DIV><!--2--></DIV>
<HR SIZE=3D1>
Unlimited freedom, unlimited storage. <A=20
=
href=3D"http://in.rd.yahoo.com/tagline_mail_2/*http://help.yahoo.com/l/in=
/yahoo/mail/yahoomail/tools/tools-08.html/">Get=20
it now</A></BLOCKQUOTE></BLOCKQUOTE><BR>
<P><!--1-->
<HR SIZE=3D1>
</HR>Why delete messages? Unlimited storage is <A=20
=
href=3D"http://in.rd.yahoo.com/tagline_mail_1/*http://help.yahoo.com/l/in=
/yahoo/mail/yahoomail/tools/tools-08.html/">just=20
a click away.</A></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C80CC0.77C8D5BA--


--===============0317079277==
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
--===============0317079277==
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

--===============0317079277==--

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 06:07 AM.


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