RE: Re: Re: sourceforge tutorial sample code problem

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC08C70979@mailserver.metatv-ds.metatv.com>
> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of xiao ren
> Sent: Tuesday, June 24, 2008 2:07 AM

> And yes, I do install net-snmp lib from source, so I guess I 
> have installed the MIB files already.

	Part of "installed" involves locatability.  This is usually done by setting the environment variables MIBDIRS and MIBS in a startup file (.bashrc, Windows "environment variables" dialog, etc.), but one can set those locally or use -M/-m flags.

> And read_objid function doesn't report error after I changed 
> the oids structure according to your advice. Maybe I should 
> always explicitly write the MIB name from which the oid originated?

	You should always fully qualify your OIDs so the library can find them.  Generally, the MIB::name reliably, produces fully qualified OIDs, but you can also use full numeric OIDs, depending on the situation.


	HTH,

Mike

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

_______________________________________________
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.