Thanxs Dave for addressing my problem. 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 . Which has demo.c & Makefile which i am using for generating the executable. Also in the code i am using SNMP version 1. So please give ur valuable suggestion & improvements for this. --- Regards, Peeyush Bishnoi [EMAIL PROTECTED] C-DAC KP Bangalore India On Mon, 16 Apr 2007 Dave Shield wrote : >On 13 Apr 2007 12:46:26 -0000, Peeyush Bishnoi ><[EMAIL PROTECTED]> wrote: >> I have developed the small code in C using Net-SNMP API's for fetching >> the OID data from CISCO 3750 router . But each time when i run the code it >> is >>giving output "TimeOut" . But not the output intended. >> >> But same OID data output i m getting when i submit this through Command >> Line Interface either using the snmpget or snmpwalk on same router. > >What is the exact (working) snmpget command that you are using? >What does the (non-working) code look like? > >Dave
snmpdemo.tar
Description: Unix tar archive
------------------------------------------------------------------------- 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
