String host = InetAddress.getLocalHost().getCanonicalHostName();
// Initialize the SNMP Manager API.
// Specify the OidTable containing all the MIB II knowledge.
// Use the OidTable generated by mibgen when compiling MIB II.
//
final SnmpOidTableSupport oidTable = new
DIRECTORY_SERVER_MIBOidTable();
SnmpOid.setSnmpOidTable(oidTable);
// At any time, it is possible to add knowledge in the OidTable