version 1.1, 2005/11/16 18:48:38
|
version 1.2, 2005/12/08 00:06:34
|
|
|
char *errStr; | char *errStr; |
String exceptionStr; | String exceptionStr; |
| |
|
// Defined default MIB modules (in net-snmp-config.h) do not need to be |
|
// loaded and loading them can cause some stderr; |
|
// use environment variable MIBS to override the default MIB modules. |
|
// If there is no MIBS environment variable, add it in. |
|
|
|
char *envVar; |
|
envVar = getenv("MIBS"); |
|
|
|
if (envVar == NULL) |
|
{ |
|
putenv("MIBS="); |
|
} |
|
|
// Initialize the mib reader | // Initialize the mib reader |
netsnmp_set_mib_directory(""); | netsnmp_set_mib_directory(""); |
init_mib(); | init_mib(); |