Re: how to add MIB through the C API
Wes Hardaker <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Sparta |
| Message-ID | <[email protected]> |
>>>>> On Tue, 23 Sep 2008 16:05:33 +0400, "Alexander Bubnov" <[email protected]> said: AB> But, unfortunately I have not found similar API for MIB files. AB> Is there a way to add MIB file as in case of environment variable called AB> MIBS or ~/.snmp/snmp.conf? Which API function should I use to do? The easiest way (which I haven't tested) is probably: read_config("mibs MIB-NUM-ONE:MIB-NUM-TWO"); Which should be called before init_snmp(). I think. (There may be a timing problem here; you may need to call init_read_config() first) -- Wes Hardaker Sparta, Inc. ------------------------------------------------------------------------- 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