Hi
I have been using tethereal Version 0.8.16 on Linux 2.2.14-12 for
capturing All SNMP Packets to a particular Destination IP Address.
This tethereal has the following version :-
tethereal 0.8.16, with libpcap 0.4, with libz 1.1.3 out SNMP.
I am presently facing 2 problems:-
1) It was noticed that as the number of SNMP Request to be captured by
tethreal increases over a period of time, tethereal under such a case
EXITS.
I have written a simple C Program (tester.c) that Will read from a File
"/tmp/Set" all the SNMP request to be sent and send these request one
after another continously.There are about 17 SNMP request to be sent .
The C Program Will ask the user to enter the number of times this set of
17 request is to be sent and accordignly iterate that many number of
times .
Note: For every iteration, 17 SNMP request will be sent .
It was discovered that after about 170 iterations tethereal exits
abruptly.
2)Another problem I encountered was the value printed for a snmpset
request involving HEXSTRING (ucd's snmpset) is a junk value.Although
this problem was not encountered in tethereal 0.8.9
The Command I have been using for tethereal is
tethereal -V -n dst port 161 and dst host 10.3.0.25
Could someone suggest something for solving the above 2 problems.
Is this problem noticed in the higher version as well.
I am attaching the tester.c and Set file.
Note For running tester.c .Copy Set file to the /tmp area and then
compile the file tester.c. Run the executable .
Regards
Sameer Gaunekar
*********************************************************
Disclaimer
This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com
Attachment:
tester.c
Description: application/unknown-content-type-c_auto_file
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 i 42
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 u 87
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 t 42404240
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 a 10.3.0.25
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 o .1.3.6.1.2.1
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 s "hello"
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 x "ab"
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 D 65
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 U "65"
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 I "89"
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 F 23.11
snmpset 10.3.0.25 public .1.3.6.1.2.1.1.1 D 12.34
snmpget -p 161 10.3.0.25 .1.3.6.1.2.1.1.1.0 .1.3.6.1.2.1.6.9.0
snmpget -p 161 10.3.0.25 public .1.3.6.1.2.1.1.1.0 .1.3.6.1.2.1.6.9.0
snmpgetnext -p 161 10.3.0.25 public .1.3.6.1.2.1.1.1.0 .1.3.6.1.2.1.6.9.0
snmpwalk -p 161 10.3.0.25 public .1.3.6.1.2.1.1
snmpbulkget -v 2c -B 1 10 10.3.0.25 public system interfaces