On 16 Apr 2007 13:43:05 -0000, Peeyush Bishnoi
<[EMAIL PROTECTED]> wrote:
> SNMPGET Which i am shooting on Router is
> snmpget -v1 -c SiLsnmpRO 10.11.2.5 sysDescr.0
> Correct output is coming.
>
> Code File Name: Attached with this mail.
> ./demo 10.11.2.5 SilsnmpRO
>
> I have attached the tar file with this mail .
I've had a quick look at this code, and can't see anything obviously wrong.
Have you got access to the SNMP agent on the router?
If you can, I'd be inclined to stop this, and restart it using something like
snmpd -f -Le -d
then query it first using "snmpget" and then using your application.
What do you see in each case?
If you can't do this, then try running
snmpget -d .....
to get a packet dump from the snmpget command.
Add the statement:
netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID,
NETSNMP_DS_LIB_DUMP_PACKET, 1);
to your code and recompile, to get a packet dump of this request.
Again, what do you see?
Dave
-------------------------------------------------------------------------
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/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders