|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MIB
This interface provides methods for accessing MIB module information via the "mib" context of the MIB Explorer script API. The MIB context provides services to load/unload MIB modules, retrieve and exploit MIB object definitions, and manipulating OID values.
Method Summary | |
---|---|
IModule |
getModule(java.lang.String moduleName)
Gets the module with the given module name. |
java.util.List |
getModuleNamesInRepository()
Gets the MIB module names of all MIBs in the current MIB repository. |
java.util.Vector |
getModules()
Gets all currently loaded MIB modules. |
java.lang.Boolean |
loadModule(java.lang.String moduleName)
Loads a MIB module from the MIB repository of MIB Explorer unless the module is already loaded. |
IObjectID |
makeOID(java.lang.String oid)
Makes a new IObjectID instance from an OID String. |
java.lang.String |
trimOID(java.lang.String oid)
Trims the given OID by one subidentifier and returns the resulting OID. |
void |
unloadModule(java.lang.String moduleName)
Unload the given MIB module. |
Method Detail |
---|
java.lang.Boolean loadModule(java.lang.String moduleName)
moduleName
- the module name of a MIB, for example IF-MIB.
true
if the module has been loaded successfully or if it had
been already loaded, false
if moduleName
does not
denote a MIB module of the current repository.IModule getModule(java.lang.String moduleName)
moduleName
-
null
otherwise.java.util.Vector getModules()
java.util.List getModuleNamesInRepository()
List
of strings representing MIB module names.void unloadModule(java.lang.String moduleName)
moduleName
- the name of the MIB module to unload.java.lang.String trimOID(java.lang.String oid)
oid
- a String representing an OID.
oid
. If n is 1 or 0, an empty String is
returned.IObjectID makeOID(java.lang.String oid)
IObjectID
instance from an OID String.
oid
- a String representing an OID, for example "ifDescr.1".
IObjectID
instance if oid
is a valid OID,
null
otherwise.
|
Copyright 2003-2011, Frank Fock, All Rights Reserved. http://www.mibexplorer.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |