com.adventnet.snmp.rmi
Interface MibOperations

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
MibOperationsImpl_Stub

public interface MibOperations
extends java.rmi.Remote

The MibOperations RMI interface provides remote MIB support via RMI for RMI clients using the SNMP libraries. It enables using information in MIB modules to support SNMP operations.

Use the methods of this class to remotely load MIBs and perform remote MIB related operations. Once a MIB is loaded on the server, it will be available until the server is shutdown. Clients need not load the MIBs again the next time the client is used.


Method Summary
 void addChecks(byte[] checks, byte parsingLevel)
           
 void addLabel(java.lang.String addLabel)
          To add label which should not be treated as a reserved word by the parser.
 void createCompiledMibs(java.lang.String mibs)
          This method is used to create compiled mibs namely the cmi and cds files.
 SnmpVarBind createVariableBinding(java.lang.String varName, java.lang.String[] indexes, java.lang.String value)
          Create an SnmpVarBind instance with supplied parameters.
 void enableDisplayHint(boolean flag)
           
 byte[] getChecks(byte parsingLevel)
           
 java.util.Vector getErrorMessages(java.lang.String module)
          Returns Vector of MibErrorMessages object for the module specified.
 java.util.Vector getErrorModuleNames()
          Returns the names of modules which are having parsing errors.
 java.lang.String getErrorString(SnmpPDU pdu)
          For display or printing, this method returns detailed error information on the PDU, including any errored variable bindings using information from the loaded MIBs.
 byte getImportsParsingLevel()
           
 java.lang.String getInstanceString(SnmpOID oid)
          Get the Instance portion of OID as a String, e.g, ".0" for a scalar.
 java.lang.String getInstanceString(SnmpOID oid, MibNode node)
          Get the Instance portion of OID as a String, e.g, ".0" for a scalar.
 LeafSyntax getLeafSyntax(SnmpOID oid)
          This does a search of all MIB modules and returns the syntax for this SnmpOID instance if found and is a leaf node
 MibModule getMibModule(MibNode node)
          Get the first MIB Module that contains the specified MibNode.
 MibModule getMibModule(java.lang.String name)
          Get a MIB Module from list of already loaded MIBs.
 java.util.Enumeration getMibModuleNames()
          Deprecated. Instead use getModuleNames() method.
 java.util.Enumeration getMibModules()
          Deprecated. Instead use getModules() method.
 MibNode getMibNode(SnmpOID oid)
          This does a search of all MIB modules and gets the MibNode for this SnmpOID instance if found
 MibNode getMibNode(java.lang.String nodeLabel)
          Returns MibNode Object corresponding to the node .
 MibNode getMibNode(java.lang.String nodeLabel, java.lang.String mib)
          Returns MibNode Object corresponding to the node in a specific MIB.
 MibNode getMibNode(java.util.Vector oid)
          Return the MibNode per the Vector of Strings OID argument.
 MibTrap getMibTrap(SnmpOID enterprise, int genericType, int specificType)
          Get the trap definition matching the given enterprise, generic type and specific type values.
 java.lang.String getModuleNameDefinition(java.lang.String file)
          This method lets you know the module name contained in the file.
 java.util.Vector getModuleNames()
          Returns a Vector containing the MibModule names loaded in this instance.
 java.util.Vector getModules()
          Returns a Vector containing the MibModules loaded in this instance.
 int getModuleSize()
          Returns the number of modules loaded now
 MibNode getNearestNode(SnmpOID oid)
          This does a search of all MIB modules in SnmpAPI specified and fills in the Nearest MibNode for this SnmpOID instance if found.
 java.util.Vector getNodesFromNames(java.util.Vector nodes)
          Return as a Vector of MibNodes, the MIB nodes specified in Vector argument of Strings, i.e, names of nodes.
 java.util.Vector getNodesFromString(java.lang.String nodeList)
          Return as a Vector of MibNodes, the MIB nodes specified in String argument, i.e, space and/or comma-separated list of names of nodes.
 boolean getOverwriteCMI()
          Gets the overwrite compiled mibs boolean.
 byte getParsingLevel()
          Returns the parsingLevel.
 java.lang.String getSerializedMibFileName()
          Gets the Serialized MIB File Name
 SnmpOID getSnmpOID(java.lang.String s)
          Create an SnmpOID instance based on loaded MIBs.
 LeafSyntax getSyntaxByName(java.lang.String name)
          Return the LeafSyntax represented by the String argument, i.e, name
 boolean getThrowFileNotFound()
          Deprecated.  
 boolean isDisplayHintEnabled()
           
 boolean isLoadFromCompiledMibs()
          Gets the loadFromCompiledMibs boolean.
 boolean isLoadFromSerializedMibs()
          Gets the loadFromSerializedMibs boolean
 boolean isOverwriteCMI()
           
 boolean isReadDesc()
          Returns true if reading descriptions from compiled modules is enabled
 boolean isSerializeMibs()
          Gets the serializeMibs boolean
 MibModule loadMibModule(java.lang.String file)
          Load a MIB Module from file
 void loadMibModules(java.lang.String mibs)
          Load a set of MIB Modules from files, specified by a space separated list of files.
 void registerParsingLevel(byte parsingLevel, byte[] checks)
           
 void removeChecks(byte[] checks, byte parsingLevel)
           
 void setDebug(boolean debug)
          Defines whether debugging output should be generated to stdout.
 void setDebugMessageLevel(int level)
          Sets the debug message level.
 void setImportsParsingLevel(byte parsingLevel)
           
 void setLoadFromCompiledMibs(boolean flag)
          Defines whether to load mib from compiled MIBs.
 void setLoadFromSerializedMibs(boolean flag)
          Defines whether to load mib from serialized MIB file.
 void setOverwriteCMI(boolean overWrite)
          Defines whether to overwrite the existing compiled files.
 void setParsingLevel(byte parsingLevel)
           
 void setReadDesc(boolean readFlag)
          Sets the flag to read descriptions from compiled mib modules.
 void setSerializedMibFileName(java.lang.String fileName)
          Defines the name in which the serialized MIB file to be saved.
 void setSerializeMibs(boolean flag)
          Defines whether to serialize the MibModule.
 void setThrowFileNotFound(boolean value)
          Deprecated.  
 java.lang.String toShortString(SnmpOID oid)
          For display or printing, this method provides the short translated name (node label only, e.g, sysDescr.0) representation for the SnmpOID instance if found in loaded Mibs
 java.lang.String toString(SnmpOID oid)
          For display or printing, this method provides the translated name (from .iso as far as loaded MIBs allow, e.g, .iso.org.myVar.3.4) representation for the SnmpOID instance if found in loaded Mibs
 java.lang.String toString(SnmpPDU pdu)
          For display or printing, this method returns detailed information on the PDU, including variable bindings using information from the loaded MIBs.
 java.lang.String toString(SnmpVarBind varbind)
          For display or printing, this method provides a translated value for an SNMP variable binding using information from the loaded MIBs.
 java.lang.String toString(SnmpVar var, SnmpOID oid)
          For display or printing, this method provides a translated value for an SNMP variable using information from the loaded MIBs.
 java.lang.String toTagString(SnmpVarBind varbind)
          For display or printing, this method provides a translated value for an SNMP variable using information from the loaded MIBs.
 void unloadAllMibModules()
          Unload all the loaded MibModules
 boolean unloadMibModule(MibModule module)
          Unload the MibModule from the modules table
 MibModule unloadMibModule(java.lang.String name)
          Unload the MibModule from the modules table
 java.lang.String varBindsToString(SnmpPDU pdu)
          For display or printing, this method returns variable bindings in the PDU, using information from the loaded MIBs.
 

Method Detail

setThrowFileNotFound

public void setThrowFileNotFound(boolean value)
                          throws java.rmi.RemoteException
Deprecated.  

Throws a file not found exception if the corresponding import module was not found.

java.rmi.RemoteException

getThrowFileNotFound

public boolean getThrowFileNotFound()
                             throws java.rmi.RemoteException
Deprecated.  

Returns the status of the import exception for not found files.

java.rmi.RemoteException

setDebug

public void setDebug(boolean debug)
              throws java.rmi.RemoteException
Defines whether debugging output should be generated to stdout. Not fully implemented as of Release 3.0

java.rmi.RemoteException

setSerializeMibs

public void setSerializeMibs(boolean flag)
                      throws java.rmi.RemoteException
Defines whether to serialize the MibModule. This flag should be set before loading the MIBs. If this is set to true it will serialize the loaded MIBs. For ex: if RMON2-MIB is loaded, it will serialize this module along with the Imported Modules viz ., RFC1271-MIB,RFC1213-MIB,TOKEN-RING-RMON and saves it in a single file.The name of the serialized file can be set using the setSerializedMibFileName() method. In case,if serialized file name is not set,it will save the serialized file with the MIB file name along with ".ser" extention.Here, it will save it as RMON2-MIB.ser. Serialization is not supported in applets.

java.rmi.RemoteException

isSerializeMibs

public boolean isSerializeMibs()
                        throws java.rmi.RemoteException
Gets the serializeMibs boolean

java.rmi.RemoteException

setLoadFromSerializedMibs

public void setLoadFromSerializedMibs(boolean flag)
                               throws java.rmi.RemoteException
Defines whether to load mib from serialized MIB file. This flag should be set before loading the MIBs. If both serializeMibs and loadFromSerializedMibs is set to true, it will just try to load the MIB as a serialized file.

java.rmi.RemoteException

isLoadFromSerializedMibs

public boolean isLoadFromSerializedMibs()
                                 throws java.rmi.RemoteException
Gets the loadFromSerializedMibs boolean

java.rmi.RemoteException

setSerializedMibFileName

public void setSerializedMibFileName(java.lang.String fileName)
                              throws java.rmi.RemoteException
Defines the name in which the serialized MIB file to be saved. The Serialized MIB file will be saved with this filename in the directory from which the mib is loaded.

java.rmi.RemoteException

getSerializedMibFileName

public java.lang.String getSerializedMibFileName()
                                          throws java.rmi.RemoteException
Gets the Serialized MIB File Name

java.rmi.RemoteException

setLoadFromCompiledMibs

public void setLoadFromCompiledMibs(boolean flag)
                             throws java.rmi.RemoteException
Defines whether to load mib from compiled MIBs. This flag should be set before loading the MIBs (By default it is set to false). If this flag is set to true, it will load from compiled file( i.e; .cmi and .cds files). For ex: RMON2-MIB is loaded, it will automatically load RMON2-MIB.cmi if it exists. otherwise it creates compiled files by parsing and then loads from it. If this flag is set to false, the mib is loaded without creating .cmi and .cds files. This is recommended in case of applets where you have security restrictions for file creation. This is slightly slower than loading from precompiled mibs. In Applets, precompiled mibs can be loaded but it cannot create/write compiled files.

If both loadFromSerializedMibs and loadFromCompiledMibs is set to true, it will just try to load the MIB as a serialized file.

java.rmi.RemoteException

isLoadFromCompiledMibs

public boolean isLoadFromCompiledMibs()
                               throws java.rmi.RemoteException
Gets the loadFromCompiledMibs boolean.

java.rmi.RemoteException

setOverwriteCMI

public void setOverwriteCMI(boolean overWrite)
                     throws java.rmi.RemoteException
Defines whether to overwrite the existing compiled files. NOTE: This applies only when the setLoadFromCompiledMibs is set to true.

java.rmi.RemoteException

getOverwriteCMI

public boolean getOverwriteCMI()
                        throws java.rmi.RemoteException
Gets the overwrite compiled mibs boolean. NOTE: This applies only when the setLoadFromCompiledMibs is set to true.

java.rmi.RemoteException

loadMibModules

public void loadMibModules(java.lang.String mibs)
                    throws java.rmi.RemoteException
Load a set of MIB Modules from files, specified by a space separated list of files.

Throws:
MibException - is thrown upon parse errors.
java.io.IOException - is thrown upon IO errors.
java.io.FileNotFoundException - is thrown if the file is not found.
java.rmi.RemoteException

loadMibModule

public MibModule loadMibModule(java.lang.String file)
                        throws java.rmi.RemoteException
Load a MIB Module from file

Throws:
MibException - is thrown upon parse errors.
java.io.IOException - is thrown upon IO errors.
java.io.FileNotFoundException - is thrown if the file is not found.
java.rmi.RemoteException

createCompiledMibs

public void createCompiledMibs(java.lang.String mibs)
                        throws java.rmi.RemoteException
This method is used to create compiled mibs namely the cmi and cds files. Compiled mibs can be created for a single file or for a directory of mibs. When a file is being compiled, it tries to compile the imported modules. In this process if it finds the cmi file existing for the imported module it skips the compilation for that module. So before creating compiled mibs for a directory of mibs, you should make sure that no compiled mibs (i.e; cmi and cds files) exist in that directory, inorder to recompile all the mibs in that directory.

Throws:
MibException - is thrown upon parse errors.
java.io.IOException - is thrown upon IO errors.
java.io.FileNotFoundException - is thrown if the file is not found.
java.rmi.RemoteException

getMibModule

public MibModule getMibModule(java.lang.String name)
                       throws java.rmi.RemoteException
Get a MIB Module from list of already loaded MIBs.

java.rmi.RemoteException

getModuleNameDefinition

public java.lang.String getModuleNameDefinition(java.lang.String file)
                                         throws java.rmi.RemoteException
This method lets you know the module name contained in the file. checks for syntactical semantics only upto the the MIB module definiton and then stops parsing the MIB.

In most cases API users would not require this method as they would only need to load MIBs.

Returns:
MIB module label, null if no MIB has been loaded
Throws:
if - there are parse exceptions upto the MIB module definition
MibException - is thrown upon parse errors.
java.io.IOException - is thrown upon IO errors.
java.io.FileNotFoundException - is thrown if the file is not found.
java.rmi.RemoteException

getMibModule

public MibModule getMibModule(MibNode node)
                       throws java.rmi.RemoteException
Get the first MIB Module that contains the specified MibNode.

java.rmi.RemoteException

getMibModules

public java.util.Enumeration getMibModules()
                                    throws java.rmi.RemoteException
Deprecated. Instead use getModules() method.

Returns an enumeration of loaded MIB Modules.

java.rmi.RemoteException

getModules

public java.util.Vector getModules()
                            throws java.rmi.RemoteException
Returns a Vector containing the MibModules loaded in this instance. If the mibs are not loaded then null will be returned.

java.rmi.RemoteException

setDebugMessageLevel

public void setDebugMessageLevel(int level)
                          throws java.rmi.RemoteException
Sets the debug message level. The avialable debug levels are By default set to SERIOUS_MESSAGES.

java.rmi.RemoteException

createVariableBinding

public SnmpVarBind createVariableBinding(java.lang.String varName,
                                         java.lang.String[] indexes,
                                         java.lang.String value)
                                  throws java.rmi.RemoteException
Create an SnmpVarBind instance with supplied parameters. Handy for creating SNMP Requests which need encoding of instance values for tables. Supply the Snmp variable value when using for SNMP set. if value is null, SnmpNull is used as needed by get requests.

Parameters:
varName - The name, or numeric object ID, of MIB variable for which this request is being created
indexes - The ordered list of index values (of type String or SnmpVar values. Parameter can be null for non-tabular columns
value - The SnmpVar value to use for sets. Is null for gets.
Throws:
SnmpException - is thrown upon variable creation errors.
java.lang.IllegalArgumentException - is thrown if arguments are invalid.
java.rmi.RemoteException

getSnmpOID

public SnmpOID getSnmpOID(java.lang.String s)
                   throws java.rmi.RemoteException
Create an SnmpOID instance based on loaded MIBs. Requires the first argument to be an OID of the form .N.N.N..., or N.N.N..., in which case the static Standard_Prefix in the SnmpAPI class is used. N can be a number or a name. This does the search of MIB modules of the SnmpAPI specified and fills in the MibNode for the SnmpOID instance. Also supports simple "label" or "label.N" strings to create OIDs, where label is the label of a node in the MIB tree (and is a leaf node in the latter case).

java.rmi.RemoteException

getLeafSyntax

public LeafSyntax getLeafSyntax(SnmpOID oid)
                         throws java.rmi.RemoteException
This does a search of all MIB modules and returns the syntax for this SnmpOID instance if found and is a leaf node

java.rmi.RemoteException

varBindsToString

public java.lang.String varBindsToString(SnmpPDU pdu)
                                  throws java.rmi.RemoteException
For display or printing, this method returns variable bindings in the PDU, using information from the loaded MIBs.

java.rmi.RemoteException

getErrorString

public java.lang.String getErrorString(SnmpPDU pdu)
                                throws java.rmi.RemoteException
For display or printing, this method returns detailed error information on the PDU, including any errored variable bindings using information from the loaded MIBs.

java.rmi.RemoteException

toString

public java.lang.String toString(SnmpPDU pdu)
                          throws java.rmi.RemoteException
For display or printing, this method returns detailed information on the PDU, including variable bindings using information from the loaded MIBs.

java.rmi.RemoteException

toString

public java.lang.String toString(SnmpVarBind varbind)
                          throws java.rmi.RemoteException
For display or printing, this method provides a translated value for an SNMP variable binding using information from the loaded MIBs. (e.g. if MIB-II is loaded, ifType value will be "ethernet(2)" instead of the "2" that SnmpVar.toString() returns) representation for the SnmpOID instance if found in loaded Mibs

java.rmi.RemoteException

toTagString

public java.lang.String toTagString(SnmpVarBind varbind)
                             throws java.rmi.RemoteException
For display or printing, this method provides a translated value for an SNMP variable using information from the loaded MIBs. (e.g. if MIB-II is loaded, ifType value will be "ethernet(2)" instead of the "2" that SnmpVar.toString() returns) representation for the SnmpOID instance if found in loaded Mibs

java.rmi.RemoteException

toString

public java.lang.String toString(SnmpVar var,
                                 SnmpOID oid)
                          throws java.rmi.RemoteException
For display or printing, this method provides a translated value for an SNMP variable using information from the loaded MIBs. (e.g. if MIB-II is loaded, ifType value will be "ethernet(2)" instead of the "2" that SnmpVar.toString() returns) representation for the SnmpOID instance if found in loaded Mibs

java.rmi.RemoteException

toString

public java.lang.String toString(SnmpOID oid)
                          throws java.rmi.RemoteException
For display or printing, this method provides the translated name (from .iso as far as loaded MIBs allow, e.g, .iso.org.myVar.3.4) representation for the SnmpOID instance if found in loaded Mibs

java.rmi.RemoteException

toShortString

public java.lang.String toShortString(SnmpOID oid)
                               throws java.rmi.RemoteException
For display or printing, this method provides the short translated name (node label only, e.g, sysDescr.0) representation for the SnmpOID instance if found in loaded Mibs

java.rmi.RemoteException

getInstanceString

public java.lang.String getInstanceString(SnmpOID oid)
                                   throws java.rmi.RemoteException
Get the Instance portion of OID as a String, e.g, ".0" for a scalar. Will not get if MIB not loaded or MibNode not found.

java.rmi.RemoteException

getInstanceString

public java.lang.String getInstanceString(SnmpOID oid,
                                          MibNode node)
                                   throws java.rmi.RemoteException
Get the Instance portion of OID as a String, e.g, ".0" for a scalar. This version avoids having to search for node if already available.

java.rmi.RemoteException

getMibNode

public MibNode getMibNode(SnmpOID oid)
                   throws java.rmi.RemoteException
This does a search of all MIB modules and gets the MibNode for this SnmpOID instance if found

java.rmi.RemoteException

getNearestNode

public MibNode getNearestNode(SnmpOID oid)
                       throws java.rmi.RemoteException
This does a search of all MIB modules in SnmpAPI specified and fills in the Nearest MibNode for this SnmpOID instance if found. The mib node need not be a leaf node

java.rmi.RemoteException

getMibTrap

public MibTrap getMibTrap(SnmpOID enterprise,
                          int genericType,
                          int specificType)
                   throws java.rmi.RemoteException
Get the trap definition matching the given enterprise, generic type and specific type values.

java.rmi.RemoteException

getMibNode

public MibNode getMibNode(java.util.Vector oid)
                   throws java.rmi.RemoteException
Return the MibNode per the Vector of Strings OID argument. For something like system.1 it will return sysDescr and if the vector contains sysDescr and nothing else, the it will return the node for sysDescr This method always tries to retrieve a leaf node. If it it matches a non-leaf node, then that node is returned only if the match of oid elements is exact(i.e no undefined child components, so that system.1 will fail to return a Node if loaded MIB does not contain sysDescr node. But mib-2.1 will return system if the system node is available). This searches the available mibs successively and is not suited fr large number of MIBs.

Parameters:
oid - Vector of Strings OID
Returns:
the MibNode per the Vector of Strings OID argument
java.rmi.RemoteException

getMibNode

public MibNode getMibNode(java.lang.String nodeLabel)
                   throws java.rmi.RemoteException
Returns MibNode Object corresponding to the node . Searches all the modules Returns at the first hit.

java.rmi.RemoteException

getMibNode

public MibNode getMibNode(java.lang.String nodeLabel,
                          java.lang.String mib)
                   throws java.rmi.RemoteException
Returns MibNode Object corresponding to the node in a specific MIB.

java.rmi.RemoteException

getNodesFromNames

public java.util.Vector getNodesFromNames(java.util.Vector nodes)
                                   throws java.rmi.RemoteException
Return as a Vector of MibNodes, the MIB nodes specified in Vector argument of Strings, i.e, names of nodes. Vector element will be null if MibNode is not found. This is useful for converting node lists stored as names.

java.rmi.RemoteException

getNodesFromString

public java.util.Vector getNodesFromString(java.lang.String nodeList)
                                    throws java.rmi.RemoteException
Return as a Vector of MibNodes, the MIB nodes specified in String argument, i.e, space and/or comma-separated list of names of nodes. Vector element will be null if MibNode is not found. This is useful for converting index lists, object names lists, etc.

java.rmi.RemoteException

getModuleSize

public int getModuleSize()
                  throws java.rmi.RemoteException
Returns the number of modules loaded now

java.rmi.RemoteException

unloadMibModule

public boolean unloadMibModule(MibModule module)
                        throws java.rmi.RemoteException
Unload the MibModule from the modules table

Returns:
true if module is loaded
java.rmi.RemoteException

unloadMibModule

public MibModule unloadMibModule(java.lang.String name)
                          throws java.rmi.RemoteException
Unload the MibModule from the modules table

java.rmi.RemoteException

unloadAllMibModules

public void unloadAllMibModules()
                         throws java.rmi.RemoteException
Unload all the loaded MibModules

java.rmi.RemoteException

addLabel

public void addLabel(java.lang.String addLabel)
              throws java.rmi.RemoteException
To add label which should not be treated as a reserved word by the parser. So in case it happens that a particular reserved word in MIB's happens to be used in a different manner, then the conflict can be resolved using this.

java.rmi.RemoteException

setReadDesc

public void setReadDesc(boolean readFlag)
                 throws java.rmi.RemoteException
Sets the flag to read descriptions from compiled mib modules. Default is true. Set it to false if you don't need the descriptions. NOTE: This applies only when the setLoadFromCompiledMibs is set to true.

java.rmi.RemoteException

isReadDesc

public boolean isReadDesc()
                   throws java.rmi.RemoteException
Returns true if reading descriptions from compiled modules is enabled

java.rmi.RemoteException

getMibModuleNames

public java.util.Enumeration getMibModuleNames()
                                        throws java.rmi.RemoteException
Deprecated. Instead use getModuleNames() method.

Returns an enumeration containing the names of the Mib modules loaded.

java.rmi.RemoteException

getModuleNames

public java.util.Vector getModuleNames()
                                throws java.rmi.RemoteException
Returns a Vector containing the MibModule names loaded in this instance. If the mibs are not loaded then null will be returned.

java.rmi.RemoteException

getSyntaxByName

public LeafSyntax getSyntaxByName(java.lang.String name)
                           throws java.rmi.RemoteException
Return the LeafSyntax represented by the String argument, i.e, name

java.rmi.RemoteException

setParsingLevel

public void setParsingLevel(byte parsingLevel)
                     throws java.rmi.RemoteException
java.rmi.RemoteException

setImportsParsingLevel

public void setImportsParsingLevel(byte parsingLevel)
                            throws java.rmi.RemoteException
java.rmi.RemoteException

registerParsingLevel

public void registerParsingLevel(byte parsingLevel,
                                 byte[] checks)
                          throws java.rmi.RemoteException
java.rmi.RemoteException

addChecks

public void addChecks(byte[] checks,
                      byte parsingLevel)
               throws java.rmi.RemoteException
java.rmi.RemoteException

removeChecks

public void removeChecks(byte[] checks,
                         byte parsingLevel)
                  throws java.rmi.RemoteException
java.rmi.RemoteException

getParsingLevel

public byte getParsingLevel()
                     throws java.rmi.RemoteException
Returns the parsingLevel. If not set returns the default value, com.adventnet.snmp.mibs.MibOperations.NORMAL

Returns:
byte - the parsing level.
java.rmi.RemoteException
See Also:
setParsingLevel(byte)

getImportsParsingLevel

public byte getImportsParsingLevel()
                            throws java.rmi.RemoteException
java.rmi.RemoteException

getChecks

public byte[] getChecks(byte parsingLevel)
                 throws java.rmi.RemoteException
java.rmi.RemoteException

getErrorModuleNames

public java.util.Vector getErrorModuleNames()
                                     throws java.rmi.RemoteException
Returns the names of modules which are having parsing errors.

Returns:
Vector of errored modules
empty Vector, if there is no error in any modules.
java.rmi.RemoteException
See Also:
getErrorMessages(String)

getErrorMessages

public java.util.Vector getErrorMessages(java.lang.String module)
                                  throws java.rmi.RemoteException
Returns Vector of MibErrorMessages object for the module specified. From this MibErrorMessages object the error number and the error message associated with this parsing error can be obtained.

Returns:
Vector of MibErrorMessages object
empty Vector, if there is no error in the specified module.
java.rmi.RemoteException
See Also:
getErrorModuleNames

enableDisplayHint

public void enableDisplayHint(boolean flag)
                       throws java.rmi.RemoteException
java.rmi.RemoteException

isDisplayHintEnabled

public boolean isDisplayHintEnabled()
                             throws java.rmi.RemoteException
java.rmi.RemoteException

isOverwriteCMI

public boolean isOverwriteCMI()
                       throws java.rmi.RemoteException
java.rmi.RemoteException


Copyright (c)ZOHO Corp. 1996-2012