Re: RE: Re: Re: sourceforge tutorial sample code problem
"xiao ren" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, Mike Thank you very much! ------------------ xiao ren 2008-06-26 ------------------------------------------------------------- 发件人:Mike Ayers 发送日期:2008-06-25 02:17:10 收件人:xiao ren; Dave Shield 抄送:Net-snmp-users 主题:RE: Re: Re: sourceforge tutorial sample code problem > 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