This is a multipart mime message


--===============1682667496==
Content-type: multipart/alternative;
boundary="Next_1178538829---0-203.199.83.217-27868"

This is a multipart mime message


--Next_1178538829---0-203.199.83.217-27868
Content-type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hello Dave & All ,=0A=0AAs per suggestion i put up the function in my code =
& recompile it. =0AAfter execution i got the following output of my code. =
=0A=0AIt looks that my code keeps on resending the PDU but no recieve of PD=
U from router being agent is running on that. =0A=0ACan you please explain =
me why it is so.. how to avoid this so that i can recieve the PDU data .& p=
rint the intended data.=0A=0A=0A-------------------------------------------=
--------------------=0A[peeyush@peeyush snmpdemoapp]$ ./demo 10.11.2.5 SiLs=
nmpRO=0A=0A Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens ce@perens.com>=0ASession Peername:10.11.2.5=0A=0ASending 46 bytes to UDP: [=
10.11.2.5]:161=0A0000: 30 2C 02 01 00 04 09 53 69 4C 73 6E 6D 70 52 4F =
0,.....SiLsnmpRO=0A0016: A0 1C 02 04 20 40 93 D6 02 01 00 02 01 00 30 =
0E .... @........0.=0A0032: 30 0C 06 08 2B 06 01 02 01 01 01 00 05 00=
0...+.........=0A=0A=0AResending 46 bytes to UDP: [10.11.2.5]:161=
=0A0000: 30 2C 02 01 00 04 09 53 69 4C 73 6E 6D 70 52 4F 0,.....SiLsn=
mpRO=0A0016: A0 1C 02 04 20 40 93 D6 02 01 00 02 01 00 30 0E .... @..=
.......0.=0A0032: 30 0C 06 08 2B 06 01 02 01 01 01 00 05 00 0...=
+.........=0A=0A=0AResending 46 bytes to UDP: [10.11.2.5]:161=0A0000: 30 2C=
02 01 00 04 09 53 69 4C 73 6E 6D 70 52 4F 0,.....SiLsnmpRO=0A0016: A=
0 1C 02 04 20 40 93 D6 02 01 00 02 01 00 30 0E .... @........0.=0A003=
2: 30 0C 06 08 2B 06 01 02 01 01 01 00 05 00 0...+.........=0A=
=0A=0AResending 46 bytes to UDP: [10.11.2.5]:161=0A0000: 30 2C 02 01 00 04=
09 53 69 4C 73 6E 6D 70 52 4F 0,.....SiLsnmpRO=0A0016: A0 1C 02 04 2=
0 40 93 D6 02 01 00 02 01 00 30 0E .... @........0.=0A0032: 30 0C 06 0=
8 2B 06 01 02 01 01 01 00 05 00 0...+.........=0A=0A=0AResendin=
g 46 bytes to UDP: [10.11.2.5]:161=0A0000: 30 2C 02 01 00 04 09 53 69 4C =
73 6E 6D 70 52 4F 0,.....SiLsnmpRO=0A0016: A0 1C 02 04 20 40 93 D6 02=
01 00 02 01 00 30 0E .... @........0.=0A0032: 30 0C 06 08 2B 06 01 02=
01 01 01 00 05 00 0...+.........=0A=0AStatus Value:2=0Asnmpget:=
Timeout=0A----------------------------------------------------------------=
---- =0A=0APlease give ur valuable suggestions.=0A=0A=0A---=0ARegards=0APe=
eyush Bishnoi=0A=0A=0AOn Thu, 19 Apr 2007 Dave Shield wrote :=0A>On 16 Apr =
2007 13:43:05 -0000, Peeyush Bishnoi=0A> wr=
ote:=0A>> SNMPGET Which i am shooting on Router is=0A>> snmpget -v1 -c Si=
LsnmpRO 10.11.2.5 sysDescr.0=0A>> Correct output is coming.=0A>>=0A>> Co=
de File Name: Attached with this mail.=0A>> ./demo 10.11.2.5 SilsnmpRO=0A>=
>=0A>> I have attached the tar file with this mail .=0A>=0A>I've had a qui=

ck look at this code, and can't see anything obviously wrong.=0A>=0A>Have y=
ou got access to the SNMP agent on the router?=0A>If you can, I'd be inclin=
ed to stop this, and restart it using something like=0A>=0A> snmpd -f -=
Le -d=0A>=0A>then query it first using "snmpget" and then using your applic=
ation.=0A>What do you see in each case?=0A>=0A>=0A>If you can't do this, th=
en try running=0A>=0A> snmpget -d .....=0A>=0A>to get a packet dump from=
the snmpget command.=0A>Add the statement:=0A>=0A> netsnmp_ds_s=
et_boolean(NETSNMP_DS_LIBRARY_ID,=0A> NETSNM=
P_DS_LIB_DUMP_PACKET, 1);=0A>=0A>to your code and recompile, to get a packe=
t dump of this request.=0A>=0A>Again, what do you see?=0A>=0A>Dave=0A
--Next_1178538829---0-203.199.83.217-27868
Content-type: text/html;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=0AHello Dave & All ,
=0A
=0AAs per suggestion i put up the fu=
nction in my code & recompile it.
=0AAfter execution i got the foll=
owing output of my code.
=0A
=0AIt looks that my code keeps on resen=
ding the PDU but no recieve of PDU from router being agent is running on th=
at.
=0A
=0ACan you please explain me why it is so.. how to avoid thi=
s so that i can recieve the PDU data .& print the intended data.
=0A=

=0A
=0A-------------------------------------------------------------=
--
=0A[peeyush@peeyush snmpdemoapp]$ ./demo 10.11.2.5 SiLsnmpRO
=0A R>=0A  Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens <b=
ruce@perens.com>
=0ASession Peername:10.11.2.5
=0A
=0ASending 4=
6 bytes to UDP: [10.11.2.5]:161
=0A0000: 30 2C 02 01  00 04 09 53&n=
bsp; 69 4C 73 6E  6D 70 52 4F    0,.....SiLsnmpRO
=0A0016=
: A0 1C 02 04  20 40 93 D6  02 01 00 02  01 00 30 0E  &=
nbsp; .... @........0.
=0A0032: 30 0C 06 08  2B 06 01 02  01 0=
1 01 00  05 00          0...+.........
=0A=

=0A
=0AResending 46 bytes to UDP: [10.11.2.5]:161
=0A0000: 30 2C =
02 01  00 04 09 53  69 4C 73 6E  6D 70 52 4F    0,=
......SiLsnmpRO
=0A0016: A0 1C 02 04  20 40 93 D6  02 01 00 02&=
nbsp; 01 00 30 0E    .... @........0.
=0A0032: 30 0C 06 08&nbs=
p; 2B 06 01 02  01 01 01 00  05 00        &nb=
sp; 0...+.........
=0A
=0A
=0AResending 46 bytes to UDP: [10.11.2.=
5]:161
=0A0000: 30 2C 02 01  00 04 09 53  69 4C 73 6E  6D=
70 52 4F    0,.....SiLsnmpRO
=0A0016: A0 1C 02 04  20 40=
93 D6  02 01 00 02  01 00 30 0E    .... @........0.
>=0A0032: 30 0C 06 08  2B 06 01 02  01 01 01 00  05 00 =
        0...+.........
=0A
=0A
=0AResending 4=
6 bytes to UDP: [10.11.2.5]:161
=0A0000: 30 2C 02 01  00 04 09 53&n=
bsp; 69 4C 73 6E  6D 70 52 4F    0,.....SiLsnmpRO
=0A0016=
: A0 1C 02 04  20 40 93 D6  02 01 00 02  01 00 30 0E  &=
nbsp; .... @........0.
=0A0032: 30 0C 06 08  2B 06 01 02  01 0=
1 01 00  05 00          0...+.........
=0A=

=0A
=0AResending 46 bytes to UDP: [10.11.2.5]:161
=0A0000: 30 2C =
02 01  00 04 09 53  69 4C 73 6E  6D 70 52 4F    0,=
......SiLsnmpRO
=0A0016: A0 1C 02 04  20 40 93 D6  02 01 00 02&=
nbsp; 01 00 30 0E    .... @........0.
=0A0032: 30 0C 06 08&nbs=
p; 2B 06 01 02  01 01 01 00  05 00        &nb=
sp; 0...+.........
=0A
=0AStatus Value:2
=0Asnmpget: Timeout
=
=0A--------------------------------------------------------------------&nbs=
p;
=0A
=0APlease give ur valuable suggestions.
=0A
=0A
=0A-=
--
=0ARegards
=0APeeyush Bishnoi
=0A
=0A
=0AOn Thu, 19 Apr 2=
007 Dave Shield wrote :
=0A>On 16 Apr 2007 13:43:05 -0000, Peeyush&nb=
sp; Bishnoi
=0A><peeyushvishnoi@rediffmail.com> wrote:
=0A&g=
t;>  SNMPGET Which i am shooting on Router is
=0A>>  =
snmpget -v1 -c SiLsnmpRO 10.11.2.5  sysDescr.0
=0A>>  Co=
rrect output is coming.
=0A>>
=0A>>  Code File Name:=
Attached with this mail.
=0A>>  ./demo 10.11.2.5 SilsnmpRO R>=0A>>
=0A>>  I have attached the tar file with this m=
ail .
=0A>
=0A>I've had a quick look at this code, and can't se=
e anything obviously wrong.
=0A>
=0A>Have you got access to the=
SNMP agent on the router?
=0A>If you can, I'd be inclined to stop th=
is, and restart it using something like
=0A>
=0A>    =
snmpd -f -Le -d
=0A>
=0A>then query it first using "snmpg=
et" and then using your application.
=0A>What do you see in each=
case?
=0A>
=0A>
=0A>If you can't do this, then try runni=
ng
=0A>
=0A>    snmpget -d .....
=0A>
=0A&gt=
;to get a packet dump from the snmpget command.
=0A>Add the statement=
:
=0A>
=0A>            netsnmp_ds=
_set_boolean(NETSNMP_DS_LIBRARY_ID,
=0A>        &=
nbsp;                    =
  NETSNMP_DS_LIB_DUMP_PACKET, 1);
=0A>
=0A>to your code a=
nd recompile, to get a packet dump of this request.
=0A>
=0A>Ag=
ain, what do you see?
=0A>
=0A>Dave
=0A=0A

=0A

=0A=
tyle=3D'font-family:Verdana;font-size:11px;line-height:15px;'>
ef=3D'http://adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/si=
gnature-home.htm/1050715198@Middle5/1105834_1100164/1105050/1?PARTNER=3D3&O=
AS_QUERY=3Dnull target=3Dnew '> bin/AdWorks/adimage.cgi/1105834_1100164/creative_1105050.gif alt=3D'578x38=
_salary.gif' border=3D0>

--Next_1178538829---0-203.199.83.217-27868--



--===============1682667496==
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--===============1682667496==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============1682667496==--