On Wed, 15 Jun 2005 20:38:48 -0700 (PDT) Mihir wrote:
ML> However if I run the same command with an enterprise ID such as 666666,
ML> then the output is as:
ML> 
ML> SNMPv2-SMI::enterprise.66666.2.4.2.0.1
ML> 
ML> I see that snmptranslate.c uses read_objid() to lookup the name from
ML> the tree that is loaded.
ML> 
ML> What I'd like to do is to get an "Unknown OID" in the second case;
ML> basically having read_objid() return a failure.
ML> 
ML> Is this possible? 

No. The functionality of read_objid is well documented, and can't change.
However, you could write your own version to do what you want.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to