"WEBNMS_5 API Docs"

com.adventnet.nms.jsp
Class MibBrowserMain

java.lang.Object
  extended by com.adventnet.nms.jsp.MibBrowserMain

public class MibBrowserMain
extends java.lang.Object


Constructor Summary
MibBrowserMain()
           
 
Method Summary
 java.util.Hashtable getLoadedMib()
          This method returns hashtable of loaded mib.
static com.adventnet.snmp.mibs.MibOperations getMibOperations()
          This method returns current MibOperation .
 com.adventnet.snmp.mibs.MibModule getModule()
          This method returns Current Module .
 java.lang.String getModuleName()
          This method returns Current Module Name.
 com.adventnet.snmp.mibs.MibNode getNode()
          This method returns Root node of the currently loaded MibModule .
 com.adventnet.snmp.mibs.MibNode getNodeForString(java.lang.String node)
          This method returns MibNode for the give MibNode Name.
static com.adventnet.snmp.beans.SnmpTarget getTarget(java.lang.String remoteAddress)
          This method returns SnmpTarget for the given user session id .
 java.util.Properties getTargetDetail(java.lang.String remoteaddress)
          This method returns the TargetDetails as properties.
 java.lang.String isTableString(java.lang.String node)
           
static com.adventnet.snmp.mibs.MibModule loadMib(java.lang.String urlname, java.lang.String key)
          This method returns the MibModule if the Module is already loaded or else parse the mib and make an entry in loaded mib
 java.lang.String reloadMib(java.lang.String remoteaddress, java.lang.String mibName, java.lang.String compiledFile, java.lang.String overWrite)
          This method returns Output of the operation as string.
 java.lang.String setTargetDetail(java.lang.String remoteaddress, java.util.Properties snmpDetail)
           
 java.util.Properties snmpGet(java.util.Properties snmpDetail, java.lang.String remoteaddress)
           
 java.util.Properties snmpGetBulk(java.util.Properties snmpDetail, java.lang.String remoteaddress)
           
 java.util.Properties snmpGetNext(java.util.Properties snmpDetail, java.lang.String remoteaddress)
           
 java.util.Properties snmpSet(java.util.Properties snmpDetail, java.lang.String remoteaddress)
           
 java.util.Properties snmpTable(java.util.Properties snmpDetail, java.lang.String remoteaddress)
           
 java.lang.String unLoad(java.util.Properties prop)
          This method removes the LoadedMib .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MibBrowserMain

public MibBrowserMain()
Method Detail

loadMib

public static com.adventnet.snmp.mibs.MibModule loadMib(java.lang.String urlname,
                                                        java.lang.String key)
This method returns the MibModule if the Module is already loaded or else parse the mib and make an entry in loaded mib

Parameters:
urlname - specifies the directory of the mib
key - the name of MibModule to be loaded
Returns:
MibModule for the given MibModule name

reloadMib

public java.lang.String reloadMib(java.lang.String remoteaddress,
                                  java.lang.String mibName,
                                  java.lang.String compiledFile,
                                  java.lang.String overWrite)
This method returns Output of the operation as string. If user session id is not registered then Default Mib RFC1213 is loaded else the specific mib is loaded.

Parameters:
remoteaddress - usaer session id
mibName - MibModule name to be loaded
compiledFile - To use CompileFile MibModule or not
overWrite - To overWrite the CompileFile MibModule or not
Returns:
output of reloadmib as string

unLoad

public java.lang.String unLoad(java.util.Properties prop)
This method removes the LoadedMib . If their is only one Mib to be unloaded. The unload mib removes it and the load the default Mib.

Parameters:
properties - containing mib to be unloaded.
Returns:
output of unload mib as string

setTargetDetail

public java.lang.String setTargetDetail(java.lang.String remoteaddress,
                                        java.util.Properties snmpDetail)

getTargetDetail

public java.util.Properties getTargetDetail(java.lang.String remoteaddress)
This method returns the TargetDetails as properties.

Parameters:
remoteaddress - user session id
Returns:
properties of targetdetails like its version,timeout,retries etc

snmpGet

public java.util.Properties snmpGet(java.util.Properties snmpDetail,
                                    java.lang.String remoteaddress)

snmpGetNext

public java.util.Properties snmpGetNext(java.util.Properties snmpDetail,
                                        java.lang.String remoteaddress)

snmpGetBulk

public java.util.Properties snmpGetBulk(java.util.Properties snmpDetail,
                                        java.lang.String remoteaddress)

snmpSet

public java.util.Properties snmpSet(java.util.Properties snmpDetail,
                                    java.lang.String remoteaddress)

snmpTable

public java.util.Properties snmpTable(java.util.Properties snmpDetail,
                                      java.lang.String remoteaddress)

getLoadedMib

public java.util.Hashtable getLoadedMib()
This method returns hashtable of loaded mib.

Returns:
Hashtable of loaded Mibs.

getNodeForString

public com.adventnet.snmp.mibs.MibNode getNodeForString(java.lang.String node)
This method returns MibNode for the give MibNode Name.

Parameters:
String - name of the MibNode .
Returns:
MibNode for the give Name .

isTableString

public java.lang.String isTableString(java.lang.String node)

getModuleName

public java.lang.String getModuleName()
This method returns Current Module Name.

Returns:
Module Name of the MibModule .

getModule

public com.adventnet.snmp.mibs.MibModule getModule()
This method returns Current Module .

Returns:
current MibModule .

getNode

public com.adventnet.snmp.mibs.MibNode getNode()
This method returns Root node of the currently loaded MibModule .

Returns:
root MibNode .

getTarget

public static com.adventnet.snmp.beans.SnmpTarget getTarget(java.lang.String remoteAddress)
This method returns SnmpTarget for the given user session id .

Parameters:
remoteaddress - user session id
Returns:
SNMPTarget .

getMibOperations

public static com.adventnet.snmp.mibs.MibOperations getMibOperations()
This method returns current MibOperation .

Returns:
MibOperation .

"WEBNMS_5 API Docs"

Copyright © 2011 ZOHO Corp., All Rights Reserved.