com.outbackinc.services.protocol.snmp.mib
Class MibUtils

java.lang.Object
  |
  +--com.outbackinc.services.protocol.snmp.mib.MibUtils

public class MibUtils
extends java.lang.Object

A series of general-purpose utility methods supporting the use of MIB Services and MIB Dictionaries with jSNMP.


Method Summary
static void mibServiceChanged()
          Alert the MibUtils module that the default mib service has changed.
static boolean namesMatch(java.lang.String name1, java.lang.String name2)
          Determine if two names resolve to the same OID.
static java.lang.String resolveObjectName(java.lang.String objectName)
          Convert an object name into its corresponding OID, using the default MIB service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

mibServiceChanged

public static void mibServiceChanged()
Alert the MibUtils module that the default mib service has changed.

resolveObjectName

public static java.lang.String resolveObjectName(java.lang.String objectName)
Convert an object name into its corresponding OID, using the default MIB service.

Usage: The following code snippet provides an example of its use:

      String oid = MibUtils.resolveObjectName("sysUpTime");
      if (oid != null) {
          SysInfo.getLog().info("The oid for sysUpTime is: " + oid);
      }
 
Parameters:
objectName - object name to resolve to an OID
Returns:
OID or null if not found

namesMatch

public static boolean namesMatch(java.lang.String name1,
                                 java.lang.String name2)
Determine if two names resolve to the same OID.
Parameters:
name1 - first name
name2 - second name
Returns:
true if name1 and name2 resolve to the same OID, false if not


Home  Services  Products  Purchase  Contact Us  About Us  Legal  Ceramics
Copyright © 2003-2008 jSNMP Enterprises All rights reserved.