Bug#1250: snmptest not sending getnext requests after $N command
Package: snmp
Version: 2.1.2l3
Revision: 1
>From the snmptest(1) man page:
Upon startup, the program defaults to sending a GET
Request packet. This can be changed to a GET NEXT Request
or a SET Request by typing the commands "$N" or "$S"
repectively. Typing "$G" will go back to the GET Request
mode.
Script started on Mon Aug 14 16:20:48 1995
\h:\W$ snmptest -v 1 sun25i public
Variable: $D
Turned packet dump on
Variable: system.sysdescr.0
Variable:
sending 49 bytes to 138.242.27.90:
30 82 00 2D 02 01 00 04 06 70 75 62 6C 69 63 A0 0..-.....public.
20 02 04 56 04 E9 82 02 01 00 02 01 00 30 82 00 ..V.........0..
10 30 82 00 0C 06 08 2B 06 01 02 01 01 01 00 05 .0.....+........
00 .
sending 49 bytes to 138.242.27.90:
30 82 00 2D 02 01 00 04 06 70 75 62 6C 69 63 A0 0..-.....public.
20 02 04 56 04 E9 82 02 01 00 02 01 00 30 82 00 ..V.........0..
10 30 82 00 0C 06 08 2B 06 01 02 01 01 01 00 05 .0.....+........
00 .
received 106 bytes from 138.242.27.90:
30 68 02 01 00 04 06 70 75 62 6C 69 63 A2 5B 02 0h.....public.[.
04 56 04 E9 82 02 01 00 02 01 00 30 4D 30 4B 06 .V.........0M0K.
08 2B 06 01 02 01 01 01 00 04 3F 53 75 6E 20 53 .+........?Sun S
4E 4D 50 20 41 67 65 6E 74 2C 20 53 50 41 52 43 NMP Agent, SPARC
53 74 61 74 69 6F 6E 20 31 2B 2C 20 43 6F 6D 70 Station 1+, Comp
61 6E 79 20 50 72 6F 70 65 72 74 79 20 4E 75 6D any Property Num
62 65 72 20 31 32 33 34 35 36 ber 123456
Received Get Response from 138.242.27.90
requestid 0x5604E982 errstat 0x0 errindex 0x0
system.sysDescr.0 = "Sun SNMP Agent, SPARCStation 1+, Company Property Number 123456"
Variable: $N
Request type is Getnext Request
Variable:
Resending last PDU.
***
*** I believe that a GETNEXT_REQ_MSG should be sent at this point
*** Instead the last PDU, a GET_REQ_MSG, is resent
***
sending 49 bytes to 138.242.27.90:
30 82 00 2D 02 01 00 04 06 70 75 62 6C 69 63 A0 0..-.....public.
20 02 04 56 04 E9 83 02 01 00 02 01 00 30 82 00 ..V.........0..
10 30 82 00 0C 06 08 2B 06 01 02 01 01 01 00 05 .0.....+........
00 .
received 106 bytes from 138.242.27.90:
30 68 02 01 00 04 06 70 75 62 6C 69 63 A2 5B 02 0h.....public.[.
04 56 04 E9 82 02 01 00 02 01 00 30 4D 30 4B 06 .V.........0M0K.
08 2B 06 01 02 01 01 01 00 04 3F 53 75 6E 20 53 .+........?Sun S
4E 4D 50 20 41 67 65 6E 74 2C 20 53 50 41 52 43 NMP Agent, SPARC
53 74 61 74 69 6F 6E 20 31 2B 2C 20 43 6F 6D 70 Station 1+, Comp
61 6E 79 20 50 72 6F 70 65 72 74 79 20 4E 75 6D any Property Num
62 65 72 20 31 32 33 34 35 36 ber 123456
received 106 bytes from 138.242.27.90:
30 68 02 01 00 04 06 70 75 62 6C 69 63 A2 5B 02 0h.....public.[.
04 56 04 E9 83 02 01 00 02 01 00 30 4D 30 4B 06 .V.........0M0K.
08 2B 06 01 02 01 01 01 00 04 3F 53 75 6E 20 53 .+........?Sun S
4E 4D 50 20 41 67 65 6E 74 2C 20 53 50 41 52 43 NMP Agent, SPARC
53 74 61 74 69 6F 6E 20 31 2B 2C 20 43 6F 6D 70 Station 1+, Comp
61 6E 79 20 50 72 6F 70 65 72 74 79 20 4E 75 6D any Property Num
62 65 72 20 31 32 33 34 35 36 ber 123456
Received Get Response from 138.242.27.90
requestid 0x5604E983 errstat 0x0 errindex 0x0
system.sysDescr.0 = "Sun SNMP Agent, SPARCStation 1+, Company Property Number 123456"
Variable: $Q
Quitting, Goodbye
Script done on Mon Aug 14 16:21:47 1995
Reply to: