Re: where to set retries/timeout time, problem in set request

"Awadhesh Kumar" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
Thanks for the quick response. After setting agentXRetries 0 in
snmpd.conffile  I had given following command from command line

snmpset  -c gss localhost:161 .1.3.6.1.4.1.303.3.3.9.35.5.2.1.1.0 i 17

I had restarted the agent in debug mode it is showing following packet. It
is showing that two SET request has been sent to sub-agent(Might be I am
wrong).  Seems that client is sending the request two times but if I give
command  "snmpset -r 0 ...." then it gives timeout error. And replacing the
0 with 1 it is sending the request to master agent two time and getting the
response. Is there any way to avoid the multiple request sent by client to
master agent in net-snmp because my client would be some third party client
like "emanate" snmp client


Received SNMP packet(s) from UDP: [127.0.0.1]:36620
  SET message
    -- SNMPv2-SMI::enterprises.303.3.3.9.35.5.2.1.1.0

Sending 76 bytes to TCP: [127.0.0.1]:57381
0000: 01 08 00 00  07 00 00 00  56 00 00 00  57 00 00 00    ........V...W...
0016: 38 00 00 00  02 00 00 00  0B 04 00 00  01 00 00 00    8...............
0032: 2F 01 00 00  03 00 00 00  03 00 00 00  09 00 00 00    /...............
0048: 23 00 00 00  05 00 00 00  02 00 00 00  01 00 00 00    #...............
0064: 01 00 00 00  00 00 00 00  11 00 00 00                 ............


Received 28 bytes from TCP: [127.0.0.1]:57381
0000: 01 12 00 00  07 00 00 00  56 00 00 00  57 00 00 00    ........V...W...
0016: 08 00 00 00  00 00 00 00  00 00 00 00                 ............


Sending 20 bytes to TCP: [127.0.0.1]:57381
0000: 01 09 00 00  07 00 00 00  56 00 00 00  58 00 00 00    ........V...X...
0016: 00 00 00 00                                           ....


Received 49 bytes from UDP: [127.0.0.1]:36620
0000: 30 2F 02 01  00 04 03 67  73 73 A3 25  02 04 40 15    0/.....gss.%..@.
0016: D4 79 02 01  00 02 01 00  30 17 30 15  06 10 2B 06    .y......0.0...+.
0032: 01 04 01 82  2F 03 03 09  23 05 02 01  01 00 02 01    ..../...#.......
0048: *11*                                                    .

Received SNMP packet(s) from UDP: [127.0.0.1]:36620
  SET message
    -- SNMPv2-SMI::enterprises.303.3.3.9.35.5.2.1.1.0

Received 28 bytes from TCP: [127.0.0.1]:57381
0000: 01 12 00 00  07 00 00 00  56 00 00 00  58 00 00 00    ........V...X...
0016: 08 00 00 00  00 00 00 00  00 00 00 00                 ............


Sending 20 bytes to TCP: [127.0.0.1]:57381
0000: 01 0B 00 00  07 00 00 00  56 00 00 00  5A 00 00 00    ........V...Z...
0016: 00 00 00 00                                           ....


Sending 49 bytes to UDP: [127.0.0.1]:36620
0000: 30 2F 02 01  00 04 03 67  73 73 A2 25  02 04 40 15    0/.....gss.%..@.
0016: D4 79 02 01  00 02 01 00  30 17 30 15  06 10 2B 06    .y......0.0...+.
0032: 01 04 01 82  2F 03 03 09  23 05 02 01  01 00 02 01    ..../...#.......
0048: *11*                                                    .


Sending 76 bytes to TCP: [127.0.0.1]:57381
0000: 01 08 00 00  07 00 00 00  59 00 00 00  5B 00 00 00    ........Y...[...
0016: 38 00 00 00  02 00 00 00  0B 04 00 00  01 00 00 00    8...............
0032: 2F 01 00 00  03 00 00 00  03 00 00 00  09 00 00 00    /...............
0048: 23 00 00 00  05 00 00 00  02 00 00 00  01 00 00 00    #...............
0064: 01 00 00 00  00 00 00 00  11 00 00 00                 ............


Received 28 bytes from TCP: [127.0.0.1]:57381
0000: 01 12 00 00  07 00 00 00  56 00 00 00  5A 00 00 00    ........V...Z...
0016: 08 00 00 00  00 00 00 00  00 00 00 00                 ............


Received 28 bytes from TCP: [127.0.0.1]:57381
0000: 01 12 00 00  07 00 00 00  59 00 00 00  5B 00 00 00    ........Y...[...
0016: 08 00 00 00  00 00 00 00  00 00 00 00                 ............


Sending 20 bytes to TCP: [127.0.0.1]:57381
0000: 01 09 00 00  07 00 00 00  59 00 00 00  5C 00 00 00    ........Y...\...
0016: 00 00 00 00                                           ....


Received 28 bytes from TCP: [127.0.0.1]:57381
0000: 01 12 00 00  07 00 00 00  59 00 00 00  5C 00 00 00    ........Y...\...
0016: 08 00 00 00  00 00 00 00  00 00 00 00                 ............


Sending 20 bytes to TCP: [127.0.0.1]:57381
0000: 01 0B 00 00  07 00 00 00  59 00 00 00  5D 00 00 00    ........Y...]...
0016: 00 00 00 00                                           ....


Sending 49 bytes to UDP: [127.0.0.1]:36620
0000: 30 2F 02 01  00 04 03 67  73 73 A2 25  02 04 40 15    0/.....gss.%..@.
0016: D4 79 02 01  00 02 01 00  30 17 30 15  06 10 2B 06    .y......0.0...+.
0032: 01 04 01 82  2F 03 03 09  23 05 02 01  01 00 02 01    ..../...#.......
0048: 11                                                    .


Received 28 bytes from TCP: [127.0.0.1]:57381
0000: 01 12 00 00  07 00 00 00  59 00 00 00  5D 00 00 00    ........Y...]...
0016: 08 00 00 00  00 00 00 00  00 00 00 00                 ............


Received 20 bytes from TCP: [127.0.0.1]:57381
0000: 01 0D 00 00  07 00 00 00  00 00 00 00  0E CF ED 2E    ................
0016: 00 00 00 00                                           ....


Sending 28 bytes to TCP: [127.0.0.1]:57381
0000: 01 12 00 00  07 00 00 00  00 00 00 00  0E CF ED 2E    ................
0016: 08 00 00 00  DC 0B 01 00  00 00 00 00                 ............


Received 20 bytes from TCP: [127.0.0.1]:57381
0000: 01 0D 00 00  07 00 00 00  00 00 00 00  0F CF ED 2E    ................
0016: 00 00 00 00                                           ....


Sending 28 bytes to TCP: [127.0.0.1]:57381
0000: 01 12 00 00  07 00 00 00  00 00 00 00  0F CF ED 2E    ................
0016: 08 00 00 00  B8 11 01 00  00 00 00 00

Thanks
Awadhesh.
On Jan 16, 2008 3:15 PM, Dave Shield <[email protected]> wrote:

> On 16/01/2008, Awadhesh Kumar <[email protected]> wrote:
> > I have mib module object which has type READ/WRITE. If I do snmp set
> request
> > then it apply the information in the database and apply it also on
> device.
> > So it takes some time and then in result master agent send the same SET
> > request again. I have added
> > agentXRetries 1
>
> Try with "agentXRetries 0"
>
> > agentXTimeout 1200
> >
> > in /usr/local/share/snmp/snmpd.conf file but seems that
> > master agent is not understanding the configuration because It is again
> > sending the same SET request multiple time to my sub-agent application.
>
> Is it the master agent which is resending the request, or is it the
> original "snmpset" command?
>
> Try running the command with the -d option.
> This will display raw packet dumps for the requests and responses.
>
> Also try running "snmpset -r 0 ...."  to turn off client-side retries.
>
> Dave
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.