RE: snmp API: read_objid should not return an error in the case

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC08EB99C7@mailserver.metatv-ds.metatv.com>
> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of Alexander Bubnov
> Sent: Friday, July 18, 2008 3:16 AM

> I guess the cause is not in path of mib because snmptranslate works
> fine with that name:

	The snmptranslate -IR randomizes access, whicvh allows "system" to be recognized:

[SNIP]
lap> snmptranslate system
No log handling enabled - turning on stderr logging
system: Unknown Object Identifier (Sub-id not found: (top) -> system)
lap> snmptranslate -IR system
SNMPv2-MIB::system
lap> 
[/SNIP]

	In your code you should specify MIB and name, i.e. "SNMPv2-MIB::system".  You should *always* use fully qualified name in code - using the OID is best.


	HTH,

Mike

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.