problems with read_objid

This is a discussion on problems with read_objid within the SNMP Coders forums, part of the Networking and Network Related category; I follow the snmpdemoapp.c and modify the code a litle to get more than one oid. All works fine ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-09-2008
Carlos Rubio
 
Posts: n/a
Default problems with read_objid

I follow the snmpdemoapp.c and modify the code a litle to get more
than one oid. All works fine so I add more oids but I get errors with
this oid ".1.3.6.1.2.1.33.1.3.3.1.2.1". The error says that oid is not
defined in the mib file, so I try an snmpget command :



snmpget =96v 1 =96c public 192.168.x.x .1.3.6.1.2.1.33.1.3.3.1.2.1



and works fine. So the question is =85 any have any idea why the program
is crashing?



This is the code I change from the tutorial



/*

* Create the PDU for the data for our request.

* 1) We're going to GET the system.sysDescr.0 node.

*/

pdu =3D snmp_pdu_create(SNMP_MSG_GET);

read_objid(".1.3.6.1.2.1.33.1.1.1.0", anOID, &anOID_len);

snmp_add_null_var(pdu, anOID, anOID_len);

read_objid(".1.3.6.1.2.1.33.1.1.2.0", anOID, &anOID_len);

snmp_add_null_var(pdu, anOID, anOID_len);

read_objid("1.3.6.1.2.1.33.1.3.3.1.2.1", anOID, &anOID_len);

snmp_add_null_var(pdu, anOID, anOID_len);



thanks for all

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216...et/marketplace
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0