RE: How to control agent sending SNMP request multiple times
snmpgi <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I'm using 5.4 version, and i added agentxRetries 0 in all the snmpd.conf (/usr/local/share/snmp/snmpd.conf, /var/net-snmp/snmpd.conf ,/etc/snmp/snmpd.conf ) and its working fine now. But I need another help. how can i check tat my agent is looking into which confi file from the 3 locations given above.? Regards, Pamidipati Suresh-G20238 <[email protected]> wrote: Message Hi, 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. Are you sure snmpd is reading the same file "snmpd.conf" in which you added "agentxRetries 0"..? [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..? Regards, Suresh. -----Original Message----- From: snmpgi [mailto:[email protected]] Sent: Friday, October 12, 2007 4:02 PM To: Pamidipati Suresh-G20238; [email protected] 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, 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. agentxRetries 0 # This means 0 retries. 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. snmpgetnext -v2c -c public -r 0 localhost 1 Regards, Suresh. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of snmpgi Sent: Friday, October 12, 2007 11:18 AM To: [email protected] 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. --------------------------------- Unlimited freedom, unlimited storage. Get it now --------------------------------- Why delete messages? Unlimited storage is just a click away.------------------------------------------------------------------------- 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/_______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users --------------------------------- Forgot the famous last words? Access your message archive online. Click here. ------------------------------------------------------------------------- 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/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users