|
snmp_init_mibReset the MIB tree Description
void snmp_init_mib(stringnull
$mibdirs)Unloads the whole MIB tree of the Net-SNMP library, including the MIB files read with snmp_read_mib, sets the list of directories in which MIB files are searched, and then loads the MIB tree again.
When the tree is loaded again, the MIB modules listed in
the MIBS environment variable, or else the default modules,
are read from these directories, as well as the files listed in the
MIBFILES environment variable.
The MIB directories are also searched when an
OID such as This is useful to load a different set of MIB modules, for instance when two vendor MIBs define conflicting objects for the same OID. At the end of the request, the default MIB directories and tree are restored. Parameters
Return ValuesNo value is returned. ExamplesExample #1 Loading MIB files from other directories See Also
|