Re: waring message when using libnetsnmp.a

Dirk Süsserott <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Am 23.07.2011 11:30 schrieb 黄心怡:
> hi,
>     I am on a project using libnetsnmp.a, and meets a problem, which
> seems easy to be solved, but I just cannot handle it, so I hope there
> would be any suggestion. Thank you.
> 
>     It seems that when I first run my program on a machine, there would
> be warning messages as blew:
> 
> Created directory: /var/net-snmp
> Created directory: /var/net-snmp/mib_indexes
> Cannot find module (IP-MIB): At line 0 in (none)
> Cannot find module (IF-MIB): At line 0 in (none)
[snip]
> Cannot find module (SNMPv2-TM): At line 0 in (none)
> Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
> 
>    I know it relates to the OS enviroment and the config file. But I
> just do not want to see these message on the screen.
> 
>    Is there any way I could turn off these message or log them to a file
> in stead of standard output.   I prefer API more than command line or
> configuration.
> 
>   Thank you very much.
> 

Have a look at the MIBS environment variable. It tells netsnmp where to
find the module files. Either point it to the location of them or set it
emtpy. Then netsnmp will not try to load the modules:

$ export MIBS=

HTH,
Dirk

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
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.