version 1.1, 2005/11/16 18:48:38
|
version 1.2.2.1, 2006/02/10 16:11:46
|
|
|
//%2005//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// EMC Corporation; VERITAS Software Corporation; The Open Group. | // EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
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(); |