Deprecated API


Contents
Deprecated Interfaces
com.adventnet.snmp.snmp2.agent.AccessPolicy
          This class is deprecated as the AccessControlSnmpAgent class which uses this class is also deprecated. 
com.adventnet.snmp.snmp2.agent.GetNextSupported
          As of AdventNet Agent Toolkit 3.0 This interface may not be supported in future releases of Agent Toolkit.

The GetNextSupported class is used by the implementor of Interpretted Agent. This class is implemented when you are interested in GETNEXT requests especially for columnar objects.

Classes which implement this interface along with SnmpAgentData can use their getNextRequest method .

For scalar MIB objects this wouldnt be required.

 

com.adventnet.snmp.snmp2.agent.ProxyPduListener
          As the ProxyPduEvent is deprecated this interface is no longer supported. 
com.adventnet.snmp.snmp2.agent.RecorderRegistrationListener
          The API no longer uses this interface. 
com.adventnet.snmp.snmp2.agent.SnmpAgentData
          As of AdventNet Agent Toolkit 3.0 This interface may not be supported in future releases of Agent Toolkit.

The SnmpAgentData class is used by the implementor of Agent. Classes which implement this interface can be used in CLASS-COMMAND's CLASS-NAME field. To use getNextReqMesg you have to implement GetNextSupported. 

com.adventnet.snmp.snmp2.agent.StatusListener
          The API no longer uses this interface. 
com.adventnet.snmp.snmp2.agent.TrapPolicy
          The API no longer uses this class since the AccessControlSnmpAgent is deprecated. 
 

Deprecated Classes
com.adventnet.utils.agent.DynamicFileToVector
          The SubAgent.txt is now converted to XML format. 
com.adventnet.utils.agent.DynamicWithCommunityFileToVector
          The SubAgentWithCommunity.txt is now converted to XML format. 
com.adventnet.utils.agent.DynamicWithInstanceFileToVector
          The SubAgentWithInstance.txt is now converted to XML format. 
com.adventnet.snmp.snmp2.agent.FileToVector
          As now the XMLToVector persistency is used. 
com.adventnet.snmp.mibs.MibModuleCompliance
          This class incorrectly assumes that the ModuleCompliance construct can have only one Module. Instead, the classes ModuleCompliance and ModuleComplianceModule can be used. 
com.adventnet.snmp.snmp2.agent.NativeSnmpTrap
          - as Aeadll.dll is not used. This class is used to implement native Trap

Aeadll.dll invokes this class to get the trap varibles to send it across to the managers configured in the box. 

com.adventnet.utils.agent.ProxyByHost
          This class is no longer used by the API. 
com.adventnet.snmp.snmp2.agent.ProxyPduEvent
          The RecorderRegistrationEvent is deprecated. 
com.adventnet.snmp.snmp2.agent.RecorderRegistrationEvent
          The API no longer uses this class. 
com.adventnet.utils.agent.RegistrationFile
          As the DynamicRegistration now uses XML Parser approach. 
com.adventnet.snmp.snmp2.agent.SimulateNodeInfo
          The API no longer uses this class. 
com.adventnet.snmp.snmp2.agent.Simulation
          The API no longer uses this class. 
com.adventnet.snmp.snmp2.agent.StatusEvent
          The API no longer uses this class. 
com.adventnet.snmp.snmp2.agent.SysORTableFileToVector
          The API no longer uses this class as the persistence is converted to XML format. 
com.adventnet.tl1.message.TL1ParamValue
          Since AdventNetTL1 API Release 2.0.
Since the value part of the TL1Param object is a String object, this class is not required. To get the value of a TL1Param object, use the TL1Param.getParamValueString () .
 
com.adventnet.snmp.snmp2.agent.Transaction
          The API no longer uses this class. 
com.adventnet.snmp.snmp2.agent.TransactionProperty
          The API no longer uses this class. 
com.adventnet.snmp.snmp2.agent.V3FileToVector
          The persistence now uses XML format hence this class is deprecated. 
 

Deprecated Exceptions
com.adventnet.snmp.snmp2.agent.AgentNoNextObject
          Since the GetNextSupported is deprecated. 
 

Deprecated Fields
com.adventnet.snmp.snmp2.SnmpAPI.BITSTRING
          This variable has been deprecated in SNMPv2 protocol. 
com.adventnet.utils.agent.utils.CRITICAL
          this will be no longer needed due to logging. Constant for critical debug messages. 
com.adventnet.utils.agent.utils.debugLevel
          this will be no longer needed due to logging. variable having debugLevel , by defaullt FATAL. 
com.adventnet.utils.agent.utils.FATAL
          this will be no longer needed due to logging. Constant for fatal debug messages. 
com.adventnet.snmp.snmp2.SnmpSession.IP
          Since all the SNMP communications go through a single transport provider, this is not needed. 
com.adventnet.utils.agent.utils.MESSAGE_TRACE
          this will be no longer needed due to logging. Constant for message tracing debug messages. API users doesn't need to use this. 
com.adventnet.utils.agent.utils.METHOD_TRACE
          this will be no longer needed due to logging. Constant for method tracing debug messages. API users doesn't need to use this. 
com.adventnet.utils.agent.utils.NON_CRITICAL
          this will be no longer needed due to logging. Constant for non-critical debug messages. 
com.adventnet.snmp.snmp2.SnmpAPI.NSAP
          This variable has been deprecated in SNMPv2 protocol 
com.adventnet.snmp.snmp2.SnmpAPI.Standard_Prefix
          instead use the setOIDPrefix(SnmpOID oid) and getOIDPrefix() methods. 
com.adventnet.snmp.snmp2.SnmpSession.TRANSPORT_PROVIDER
          Since all the SNMP communications go through a single transport provider, this is not needed. 
com.adventnet.snmp.snmp2.SnmpAPI.UINTEGER32
          This variable has been deprecated in SNMP protocol. 
 

Deprecated Methods
com.adventnet.adaptors.html.HtmlAdaptor.addHttpServerListener(Object)
          Now the HttpServerInterface is used to plug-in WebServers to HTML Adaptor. 
com.adventnet.utils.agent.DynamicRegistrationWithInstance.addRegistrationListener(RegistrationListener)
          - use the other method. Add RegistrationListener (agent) to the Listener table. Registration Listener methods 
com.adventnet.utils.agent.DynamicRegistrationWithCommunity.addRegistrationListener(RegistrationListener)
          - use the other method. Add RegistrationListener(agent) to the Listener table. Registration Listener methods 
com.adventnet.utils.agent.DynamicRegistration.addRegistrationListener(RegistrationListener)
          - use the other method. Add RegistrationListener (agent) to the Listener table.

Registration Listener methods

 

com.adventnet.snmp.snmp2.agent.TrapTableRequestHandler.createAndAddTrapFilteringEntry(String, Integer, String, Integer)
          - make use of the method with extra argument as the index has been changed. To Create TrapEntry for the TrapFilteringTable with the corresponding values. 
com.adventnet.snmp.snmp2.agent.TrapTableRequestHandler.createAndAddTrapFilteringEntry(String, int, String)
          use the other method To Create TrapEntry for the TrapFilteringTable with the corresponding values. 
com.adventnet.utils.agent.DynamicRegistrationWithCommunity.createDynamicRegistrationEntry(String, String, String, long, int)
          - Make use of the new method with the additional argumnets. This is static method for creating a DynamicRegistrationEntry. 
com.adventnet.utils.agent.DynamicRegistration.createDynamicRegistrationEntry(String, String, String, long, int)
          use the other method with additional parameters. This is static method for creating a DynamicRegistrationEntry. 
com.adventnet.utils.agent.DynamicRegistrationWithInstance.createDynamicRegistrationEntry(String, String, String, String, long, int)
          - make use of the other method with additional parameters. This is static method for creating a DynamicRegistrationEntry. 
com.adventnet.snmp.snmp2.agent.SimpleTrapForwardingTable.createForwardingEntry(int, String, int)
          - use the other method. Creates a ForwardingEntry object for the SimpleTrapForwardingTable 
com.adventnet.snmp.snmp2.agent.BaseTrapForwardingTable.createForwardingEntry(String, Integer, Integer, String, Long, Long)
          - make use of the method with extra argument as the index has been changed. Creates a ForwardingEntry object for the V1V2ForwardingTable with RowStatus Value as Active. 
com.adventnet.snmp.snmp2.agent.BaseTrapForwardingTable.createForwardingEntry(String, Integer, Integer, String, Long, Long, Integer)
          - make use of the method with extra argument as the index has been changed. Creates a ForwardingEntry object for the V1V2ForwardingTable. 
com.adventnet.snmp.snmp2.agent.BaseSnmpAgent.createStatusEvent(String)
            
com.adventnet.snmp.snmp2.agent.TrapTableRequestHandler.createTrapFilteringEntry(String, Integer, String, Integer)
          - make use of the method with extra argument as the index has been changed. To Create TrapEntry for the TrapFilteringTable with the corresponding values. 
com.adventnet.snmp.snmp2.agent.TrapTableRequestHandler.createTrapFilteringEntry(String, int, String)
          - make use of the method with extra argument as the index has been changed. To Create TrapEntry for the TrapFilteringTable with the corresponding values with the RowStatus value as Active(1). 
com.adventnet.utils.agent.utils.debugPrintHigh(Object)
          this will be no longer needed due to logging. debugPrint method for FATAL messages. 
com.adventnet.utils.agent.utils.debugPrintLow(Object)
          this will be no longer needed due to logging. debugPrint method for NON_CRITICAL messages. 
com.adventnet.utils.agent.utils.debugPrintMedium(Object)
          this will be no longer needed due to logging. debugPrint method for CRITICAL messages. 
com.adventnet.snmp.snmp2.SnmpEngineEntry.discoverEngineID(SnmpSession)
          This method doesn't throw any Exception and hence doesn't inform the user, in case of any error. As of AdventNet SNMP API 4 SP2 ( Release 4.0.2 ), replaced by SnmpEngineEntry.discoverSnmpEngineID(SnmpSession) 
com.adventnet.snmp.snmp2.SnmpSession.get(SnmpOID)
          use the following instead

SnmpPDU pdu = new SnmpPDU();
pdu.addNull(oid);
pdu.setCommand(SnmpAPI.GET_REQ_MSG);
SnmpPDU response_pdu = snmpSession.syncSend(pdu);

SnmpVar var = null;
if(response_pdu != null)
{
var = response_pdu.getVariable(0);
}
 

com.adventnet.snmp.snmp2.SnmpSession.get(String)
          use the following instead

SnmpPDU pdu = new SnmpPDU();
pdu.addNull(new SnmpOID(oidString));
pdu.setCommand(SnmpAPI.GET_REQ_MSG);
SnmpPDU response_pdu = snmpSession.syncSend(pdu);

SnmpVar var = null;
if(response_pdu != null)
{
var = response_pdu.getVariable(0);
}
 

com.adventnet.snmp.mibs.AgentCapabilitiesModule.getAccess()
          Since 3.0. Instead you can use getAccess() in ACVariation class. 
com.adventnet.snmp.snmp2.agent.BaseAclTableRequestHandler.getAclEntryInstance()
          this has been moved to the AclTable class. API users can override this method to have their own AclEntryInterface. This method will be called for all AclEntry instance creation. 
com.adventnet.snmp.snmp2.SnmpPDU.getAddress()
          use the following instead.

UDPProtocolOptions opt = (UDPProtocolOptions)SnmpPDU.getProtocolOptions();
InetAddress address = opt.getRemoteAddress();
 

com.adventnet.snmp.mibs.MibModule.getAgentCapabilities()
          since 4.0. Instead you can use the method getDefinedAgentCapabilities 
com.adventnet.aclparser.ASCII_CharStream.getColumn()
            
com.adventnet.utils.agent.AgentParamOptions.getCommunity()
          this will be no Longer used. Getter of community. Default Value is null. 
com.adventnet.snmp.snmp2.SnmpAPI.getCommunityTable()
          use the following instead
getSecurityProvider().getTable(1); // where 1 stands for v1 security model.
 
com.adventnet.snmp.mibs.AgentCapabilitiesModule.getCreationRequires()
          Since 3.0. Instead you can use getCreationObjects() in ACVariation class. 
com.adventnet.utils.agent.utils.getDebug()
          this will be no longer needed due to logging. Gets the debug flag. 
com.adventnet.utils.agent.utils.getDebugLevel()
          this will be no longer needed due to logging. Gets the value of debugLevel whether FATAL(1) or CRITICAL(2) or NON_CRITICAL(3). 
com.adventnet.utils.agent.utils.getDebugLevelString()
          this will be no longer needed due to logging. Getter for the debugLevel in String. 
com.adventnet.snmp.mibs.AgentCapabilitiesModule.getDefval()
          Since 3.0. Instead you can use getDefVal() in ACVariation class. 
com.adventnet.snmp.mibs.MibModule.getFilename()
          since 2.1 . Instead you can use the method getFileName() 
com.adventnet.snmp.snmp2.agent.AclTableRequestHandler.getFileName()
          fileNames can also be specified in the AclTable class. Getter for the fileName string of the file storing acl entries. 
com.adventnet.aclparser.ASCII_CharStream.getLine()
            
com.adventnet.snmp.snmp2.SnmpSession.getLocalAddresses()
          use the following instead.
UDPProtocolOptions opt = (UDPProtocolOptions)snmpSession.getProtocolOptions();
String[] local_address = opt.getLocalAddresses();
 
com.adventnet.utils.agent.AgentParamOptions.getLocalAddresses()
          No longer used. getter of Agent Local Addresses. default value is null. 
com.adventnet.snmp.snmp2.SnmpSession.getLocalPort()
          use the following instead.

UDPProtocolOptions opt = (UDPProtocolOptions)snmpSession.getProtocolOptions();
int local_port = opt.getLocalPort();
 

com.adventnet.utils.agent.AgentParamOptions.getMibFile()
          this is no longer used. getter of MibFileName. default value is null. 
com.adventnet.snmp.snmp2.agent.TrapTableRequestHandler.getMibVarHash()
          - use getObjectHash() for getting the details of Sub-Ids Method to retrun the HashTable of MibVars. 
com.adventnet.snmp.snmp2.agent.SnmpAgentInfoRequestHandler.getMibVarHash()
          - use getObjectHash() for getting the details of Sub-Ids Method to retrun the HashTable of MibVars. 
com.adventnet.snmp.snmp2.agent.SimpleRequestHandler.getMibVarHash()
          - use getObjectHash() for getting the details of Sub-Ids This method will be overridden in the generated handler files to return the Hashtable which has the details of the Subid List. 
com.adventnet.tl1.message.TL1Param.getName()
          Since AdventNetTL1 API 2.0. Use getParamName() 
com.adventnet.snmp.snmp2.SnmpSession.getnext(SnmpOID)
          use the following instead

SnmpPDU pdu = new SnmpPDU();
pdu.addNull(oid);
pdu.setCommand(SnmpAPI.GETNEXT_REQ_MSG);
SnmpPDU response_pdu = snmpSession.syncSend(pdu);

SnmpVar var = null;
if(response_pdu != null)
{
var = response_pdu.getVariable(0);
}
 

com.adventnet.snmp.snmp2.SnmpSession.getnext(String)
          use the following instead

SnmpPDU pdu = new SnmpPDU();
pdu.addNull(new SnmpOID(oidString));
pdu.setCommand(SnmpAPI.GETNEXT_REQ_MSG);
SnmpPDU response_pdu = snmpSession.syncSend(pdu);

SnmpVar var = null;
if(response_pdu != null)
{
var = response_pdu.getVariable(0);
}
 

com.adventnet.snmp.mibs.MibNode.getObjectNames()
          use the getObjects method instead. 
com.adventnet.snmp.mibs.MibOperations.getOverwriteCMI()
          since 4.0, replaced by MibOperations.isOverwriteCMI() 
com.adventnet.tl1.message.TL1Param.getParamValue()
          Since AdventNetTL1 API 2.0. Use getParamValueString(). 
com.adventnet.snmp.snmp2.SnmpSession.getPeername()
          use the following instead.
UDPProtocolOptions opt = (UDPProtocolOptions)snmpSession.getProtocolOptions(); opt.getRemoteHost();
 
com.adventnet.snmp.snmp2.SnmpSession.getProtocol()
          since all SNMP communications go through only a transportProvider, this method is not at all necessary. 
com.adventnet.snmp.snmp2.SnmpSession.getReceiveBufferSize()
          instead use the getReceiveBufferSize method available in UDPProtocolOptions. 
com.adventnet.snmp.snmp2.SnmpPDU.getRemoteHost()
          use the following instead.

UDPProtocolOptions opt = (UDPProtocolOptions)SnmpPDU.getProtocolOptions();
String remoteHost = opt.getRemoteHost();
 

com.adventnet.snmp.snmp2.SnmpPDU.getRemotePort()
          use the following instead.

UDPProtocolOptions opt = (UDPProtocolOptions)SnmpPDU.getProtocolOptions();
int remotePort = opt.getRemotePort();
 

com.adventnet.snmp.snmp2.SnmpSession.getRemotePort()
          use the following instead.

UDPProtocolOptions opt = (UDPProtocolOptions)snmpSession.getProtocolOptions();
opt.getRemotePort();
 

com.adventnet.snmp.mibs.MibNode.getRevdescription()
          since 4.0. Instead you can use the method getRevisionDescriptions() 
com.adventnet.snmp.mibs.MibNode.getRevision()
          since 4.0. Instead you can use the method getRevisions() 
com.adventnet.snmp.snmp2.SnmpSession.getSASClient()
          use the following instead
SASProtocolOptions opt = (SASProtocolOptions)snmpSession.getProtocolOptions();
SASClient sasclient = opt.getSASClient();
 
com.adventnet.snmp.snmp2.SnmpSession.getSASProtocol()
          use the following instead.

SASProtocolOptions opt = (SASProtocolOptions)snmpSession.getProtocolOptions();
int sasprotocol = opt.getProtocol();
 

com.adventnet.snmp.snmp2.SnmpSession.getSnmpClientsSize()
          use the following instead

int snmpClientsSize = (snmpSession.getSnmpClients()).size();  

com.adventnet.snmp.snmp2.SnmpSession.getStartLocalPort()
          now the "open(Applet)" method will throw an SnmpException if it is unable to connect to the SAServer. When such an exception is received, the user should decide whether "open(void)" method should be called or not. 
com.adventnet.snmp.mibs.MibNode.getSubid()
          since 4.0. Instead you can use the method getSubID() 
com.adventnet.snmp.mibs.AgentCapabilitiesModule.getSyntax()
          Since 3.0. Instead you can use getSyntax() in ACVariation class 
com.adventnet.snmp.snmp2.agent.BaseTrapForwardingTable.getTableVector()
          use the method in BaseForwardingTable. Getter of the Table Vector of the BaseTrapForwardingTable 
com.adventnet.snmp.snmp2.agent.vacm.VacmAccessTableRequestHandler.getTableVector()
          - This method has some limitations.Use getTableValues() The method to return the Vector of VacmAccessEntries present in the VacmGroupAccessControlTable. 
com.adventnet.snmp.mibs.MibOperations.getThrowFileNotFound()
            
com.adventnet.snmp.snmp2.agent.SnmpTrapService.getTrapFlag()
          - as this method is no longer needed. This trapFlag is especially useful in sending trap if the agent registered as sub-agent with Windows master agent.

If sendTrap method is called when the agent is running as WindowsSubAgent, then trap should be send through the master agent.So when sendTrap method is called this flag is set .The Aeadll.dll polls for this flag,if it is set, then the Aeadll calls the getTrapObject() ,by which it gives the trap information to the master agent and resets this flag. 

com.adventnet.snmp.snmp2.agent.SnmpTrapService.getTrapObject()
          - as this method is no longer needed. gets the NativeSnmpTrap object

If sendTrap method is called when the agent is running as WindowsSubAgent, then trap should be send through the master agent.So when sendTrap method is called this trapflag is set .The Aeadll.dll polls for this trapflag,if it is set, then the Aeadll calls the getTrapObject() ,by which it gives the trap information to the master agent and resets this trapflag. 

com.adventnet.snmp.snmp2.agent.SnmpTrapService.getTrapPathName()
          - persistence has been moved to Table files. Getter for the trapPathName . By Default the SnmpTrapService will take the managers from this trapTable path specified. 
com.adventnet.snmp.snmp2.agent.SnmpTrapService.getTrapTableName()
          use the method in ForwardingTable. Getter for the trapTableName . By Default the SnmpTrapService will take the managers from this trapTable fileName specified. 
com.adventnet.snmp.snmp2.SnmpAPI.getUSMTable()
          use the following instead.
 SnmpApi.getSecurityProvider().getTable(USM_SECURITY_MODEL); // where USM_SECURITY_MODEL = 3
 
com.adventnet.snmp.snmp2.agent.SnmpTrapService.getV3TrapTableName()
          Make use of the V3ForwardingTable methods. Getter for the v3TrapTableName . By Default the SnmpTrapService will take the managers from this v3TrapTable fileName specified. 
com.adventnet.snmp.mibs.AgentCapabilitiesModule.getVariation()
          Since 3.0 
com.adventnet.snmp.mibs.AgentCapabilitiesModule.getVariationDescription()
          Since 3.0. Instead you can use getDescription() in ACVariation class. 
com.adventnet.utils.agent.AgentParamOptions.getWriteCommunity()
          this will be no Longer used. Getter of write community. default value is null. 
com.adventnet.snmp.mibs.AgentCapabilitiesModule.getWriteSyntax()
          Since 3.0. Instead you can use getWriteSyntax() in ACVariation class. 
com.adventnet.snmp.snmp2.SnmpProxyEntry.ifProxyEntryMatches(SnmpPDU, SnmpTargetParamsTable)
          instead use the isProxyEntryMatches method. 
com.adventnet.snmp.snmp2.usm.USMUtils.init_v3_params(String, int, String, String, String, int, SnmpSession)
          This method doesn't throw any Exception and hence doesn't inform the user, in case of any error. As of AdventNet SNMP API 4 SP2 ( Release 4.0.2 ), replaced by USMUtils.init_v3_parameters(String,int,String,String,String,int,SnmpSession) 
com.adventnet.snmp.snmp2.usm.USMUtils.init_v3_params(String, int, String, String, String, SnmpSession)
          This method doesn't throw any Exception and hence doesn't inform the user, in case of any error. As of AdventNet SNMP API 4 SP2 ( Release 4.0.2 ), replaced by USMUtils.init_v3_parameters(String,int,String,String,String,SnmpSession) 
com.adventnet.snmp.snmp2.agent.SnmpV3Handler.initialiseV3Settings()
          - As now all the Tables will be registered from the Generated Agent Main File itself. This method is responsible for initialising the V3 tables used by the agent. By default, the V3 tables are populated by reading the snmpv3.ser file in the agent directory. If the user wants to read from his own storage, it should be specified in the SnmpAgent through the V3Initialiser interface. 
com.adventnet.snmp.snmp2.agent.VaclTableRequestHandler.isFToVPersistence()
          persistence has been moved to VaclTable. Gettter for fToV Persistence flag. 
com.adventnet.snmp.snmp2.agent.AclTableRequestHandler.isPersistence()
          Persistence can be set and got from the AclTable. Gettter for file persistence of Access Control values in the fileSystem 
com.adventnet.snmp.snmp2.agent.VaclTableRequestHandler.isPersistence()
          persistence has been moved to VaclTable. Getter of the persistence flag. 
com.adventnet.snmp.snmp2.agent.SnmpTrapService.isPersistence()
          - persistence has been moved to Table files. Getter for Flag isPersistence which specifies the Persistency of the values of Trap Forwarding Table. By Default the Persistence to the fileSystem is turned ON. 
com.adventnet.utils.agent.utils.messageTrace(Object)
          this will be no longer needed due to logging. debugPrint method for MESSAGE_TRACE messages. API users doesn't need to call this. 
com.adventnet.utils.agent.utils.methodTrace(Object)
          this will be no longer needed due to logging. debugPrint method for METHOD_TRACE messages. API users doesn't need to call this. 
com.adventnet.snmp.snmp2.agent.SnmpAgent.nativeStdOutErr(String)
          - as logging is included. Setter for standard out and standard error messges. 
com.adventnet.snmp.snmp2.SnmpSession.open(Applet)
          use the following instead

SnmpAPI api = new SnmpAPI();
SnmpSession ses = new SnmpSession(api);
SASProtocolOptions opt = new SASProtocolOptions();
opt.setApplet(applet);
ses.setProtocolOptions(opt);
ses.open();
 

com.adventnet.snmp.snmp2.usm.USMUtils.password_to_key(int, byte[], int, byte[])
          This method cannot be used to generate localized privacy key if the privacy protocol is other than CBC_DES and CFB_AES_128. As of AdventNet SNMP API 4 SP5 ( Release 4.0.5 ), replaced by USMUtils.password_to_key(int, byte[], int, byte[], int) 
com.adventnet.utils.agent.DynamicRegistrationWithInstance.removeSubAgent(DynamicRegistrationEntry)
          Use the other method. 
com.adventnet.snmp.snmp2.agent.V3FileToVector.run()
          Since the AdventNet Agent Toolkit (Java Edition) 4.2 release 
com.adventnet.snmp.snmp2.SnmpSession.set(SnmpOID, SnmpVar)
          use the following instead

SnmpPDU pdu = new SnmpPDU();
SnmpVarBind varbind = new SnmpVarBind(oid, var);
pdu.addVariableBinding(varbind);
pdu.setCommand(SnmpAPI.SET_REQ_MSG);
SnmpPDU response_pdu = snmpSession.syncSend(pdu);

SnmpVar response_var = null;
if(response_pdu != null)
{
response_var = response_pdu.getVariable(0);
}
 

com.adventnet.snmp.snmp2.SnmpSession.set(String, String, byte)
          use the following instead

SnmpPDU pdu = new SnmpPDU();
SnmpVar variable = SnmpVar.createVariable(setString, type);
SnmpOID oid = new SnmpOID(oidString);
SnmpVarBind varbind = new SnmpVarBind(oid, variable);
pdu.addVariableBinding(varbind);
pdu.setCommand(SnmpAPI.SET_REQ_MSG);
SnmpPDU response_pdu = snmpSession.syncSend(pdu);

SnmpVar var = null;
if(response_pdu != null)
{
var = response_pdu.getVariable(0);
}
 

com.adventnet.snmp.snmp2.SnmpPDU.setAddress(InetAddress)
          use the following instead.

UDPProtocolOptions opt = (UDPProtocolOptions)SnmpPDU.getProtocolOptions();
opt.setRemoteAddress(address);
 

com.adventnet.snmp.snmp2.agent.SnmpAgent.setDebug(boolean)
          - use Logging Setter for debug flag. Sets the debug mode as on or off. 
com.adventnet.snmp.snmp2.agent.BaseSnmpTrapService.setDebug(boolean)
          use Logging. sets the debug messages true for SnmpAPI. 
com.adventnet.utils.agent.utils.setDebug(boolean)
          this will be no longer needed due to logging. Sets debug ON/OFF. 
com.adventnet.utils.agent.utils.setDebugLevel(int)
          this will be no longer needed due to logging. Sets debugLevel FATAL or CRITICAL or NON_CRITICAL. 
com.adventnet.utils.agent.utils.setDebugLevelByString(String)
          this will be no longer needed due to logging. Setter for debugLevel by means of String. 
com.adventnet.snmp.snmp2.agent.SnmpAgent.setDebugOff()
          - use Logging. Sets debug flag of the agent as false 
com.adventnet.snmp.snmp2.agent.SnmpAgent.setDebugOn()
          - use the Logging. Sets debug flag of the agent as true. 
com.adventnet.snmp.snmp2.SnmpPDU.setDNSLookup(boolean)
          since no lookup will be done unnecessarily. 
com.adventnet.snmp.snmp2.agent.AclTableRequestHandler.setFileName(String)
          as file names can be specified in the AclTable constructor itself. Setter for fileName to store the acl entries 
com.adventnet.snmp.snmp2.agent.AclTableRequestHandler.setFToVPersistence(boolean)
          use the AclTable to set the persistence options. Setter for FToV persistence of AccessControlTable.txt. 
com.adventnet.snmp.snmp2.agent.VaclTableRequestHandler.setFToVPersistence(boolean)
          - use the method in the VaclTable. Setter of File To Vector persistence flag. 
com.adventnet.snmp.snmp2.agent.SnmpTrapService.setFToVPersistence(boolean)
          - persistence has been moved to ForwardingTable files. 
com.adventnet.snmp.snmp2.SnmpSession.setLocalAddresses(String[])
          use the following instead.
UDPProtocolOptions opt = (UDPProtocolOptions)snmpSession.getProtocolOptions(); opt.setLocalAddresses(local_addrs);
 
com.adventnet.snmp.snmp2.SnmpSession.setLocalPort(int)
          use the following instead.

UDPProtocolOptions opt = (UDPProtocolOptions)snmpSession.getProtocolOptions();
opt.setLocalPort(local_port);
 

com.adventnet.utils.agent.SubAgentPoller.setManagerHost(String)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.utils.agent.DynamicRegistrationWithInstance.setManagerHost(String)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.utils.agent.DynamicRegistrationWithCommunity.setManagerHost(String)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.utils.agent.DynamicRegistration.setManagerHost(String)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.tl1.message.TL1Param.setName(String)
          Since AdventNetTL1 API 2.0. Use setParamName (java.lang.String name) 
com.adventnet.tl1.message.TL1Param.setParamValue(TL1ParamValue)
          Since AdventNetTL1 API 2.0. Use setParamValueString(java.lang.String value). 
com.adventnet.snmp.snmp2.SnmpSession.setPeername(String)
          use the following instead.
UDPProtocolOptions opt = (UDPProtocolOptions)snmpSession.getProtocolOptions(); opt.setRemoteHost(peername);
 
com.adventnet.snmp.snmp2.agent.AclTableRequestHandler.setPersistence(boolean)
          as persistence can be set with the AclTable itself. Setter for persistence of Community Access values in fileSystem 
com.adventnet.snmp.snmp2.agent.VaclTableRequestHandler.setPersistence(boolean)
          use the method in the VaclTable. Setter for the persistence flag. 
com.adventnet.snmp.snmp2.agent.SnmpTrapService.setPersistence(boolean)
          use the method in ForwardingTable and V3TrapForwardingTable. Sets whether or not persistence storage to be used or not. By default this will be true 
com.adventnet.adaptors.tl1.TL1Adaptor.setPort(int)
          Since AdventNet AgentToolkit Release 4.2. Use setPorts(int[]) method instead. 
com.adventnet.snmp.snmp2.SnmpSession.setProtocol(int)
          Since all the SNMP communications go through a single transport provider, this is not needed. 
com.adventnet.snmp.snmp2.SnmpSession.setReceiveBufferSize(int)
          instead use the setReceiveBufferSize method available in UDPProtocolOptions. 
com.adventnet.snmp.snmp2.SnmpPDU.setRemoteHost(String)
          use the following instead.

UDPProtocolOptions opt = (UDPProtocolOptions)SnmpPDU.getProtocolOptions();
opt.setRemoteHost(host);
 

com.adventnet.snmp.snmp2.SnmpPDU.setRemotePort(int)
          use the following instead.

UDPProtocolOptions opt = (UDPProtocolOptions)SnmpPDU.getProtocolOptions();
opt.setRemotePort(port);
 

com.adventnet.snmp.snmp2.SnmpSession.setRemotePort(int)
          use the following instead.

UDPProtocolOptions opt = (UDPProtocolOptions)snmpSession.getProtocolOptions();
opt.setRemotePort(port);
 

com.adventnet.snmp.snmp2.SnmpSession.setSASProtocol(int)
          use the following instead.

SASProtocolOptions opt = new SASProtocolOptions();
opt.setApplet(applet);
opt.setProtocol(SASClient.TCP_PROTOCOL); //or SASClient.HTTP_PROTOCOL
snmpSession.setProtocolOptions(opt);
snmpSession.open();
 

com.adventnet.snmp.snmp2.SnmpSession.setSocketParms(int, int)
          since a new transportProvider implementation for udp has been added, this method no longer becomes necessary. 
com.adventnet.snmp.snmp2.SnmpSession.setStartLocalPort(int)
          now the "open(Applet)" method will throw an SnmpException if it is unable to connect to the SAServer. When such an exception is received, the user should decide whether "open(void)" method should be called or not. 
com.adventnet.snmp.snmp2.agent.AclTableRequestHandler.setTableVector(Vector)
          use the method in the AclTable Setter for TableVector 
com.adventnet.snmp.snmp2.agent.BaseTrapForwardingTable.setTableVector(Vector)
          use the method in BaseForwardingTable. Setter for the Table Vector of the BaseTrapForwardingTable 
com.adventnet.snmp.snmp2.agent.BaseAclTableRequestHandler.setTableVector(Vector)
          use the method in the AclTable Setter for TableVector 
com.adventnet.snmp.snmp2.agent.vacm.VacmAccessTableRequestHandler.setTableVector(Vector)
          - This method has some limitations.Use setTableValues() The method to set the Vector of VacmAccessEntries. 
com.adventnet.snmp.mibs.MibOperations.setThrowFileNotFound(boolean)
            
com.adventnet.tl1.TL1ServerSession.setTL1Client(TL1Client)
          Since AdventNetTL1 API 2.0. Use addTL1Client(..) 
com.adventnet.snmp.snmp2.agent.SnmpTrapService.setTrapFlag(boolean)
          - as this method is no longer needed. Sets the Trap Flag.

This trapFlag is especially useful in sending trap if the agent registered as sub-agent with Windows master agent.

If sendTrap method is called when the agent is running as WindowsSubAgent, then trap should be send through the master agent.So when sendTrap method is called this flag is set .The Aeadll.dll polls for this flag,if it is set, then the Aeadll calls the getTrapObject() ,by which it gives the trap information to the master agent and resets this flag. 

com.adventnet.snmp.snmp2.agent.SnmpTrapService.setTrapObject(NativeSnmpTrap)
          - as this method is no longer needed. sets the NativeSnmpTrap which holds the trap information when the trap is to be send through the windows master agent. 
com.adventnet.snmp.snmp2.agent.SnmpTrapService.setTrapPathName(String)
          - persistence has been moved to Table files. Setter for the trapPathName . By Default the SnmpTrapService will take the managers from this trapTable path specified. 
com.adventnet.utils.agent.SubAgentPoller.setTrapPort(int)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.utils.agent.DynamicRegistrationWithInstance.setTrapPort(int)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.utils.agent.DynamicRegistrationWithCommunity.setTrapPort(int)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.utils.agent.DynamicRegistration.setTrapPort(int)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.snmp.snmp2.agent.SnmpAgent.setTrapSourceDefault(boolean)
          Make use of the method setDefaultTrap(boolean isDefault) This method switches the trapSource (DEFAULT/TFTABLE) ie, specifies whether the manager to which the trap to be sent must be taken from TFTABLE / DEFAULT. In the case of default, the traps can be sent to only one manager and by default , it is Users should set this flag to false to use the TrapForwardingTable. localhost - port number 162. 
com.adventnet.snmp.snmp2.agent.BaseSnmpTrapService.setTrapSourceDefault(boolean)
          use the method setDefaultTrap(boolean isDefault) Setter for the TrapSourceDefault value. 
com.adventnet.snmp.snmp2.agent.SnmpTrapService.setTrapTableName(String)
          Make use of the ForwardingTable methods. Setter for the trapTableName . By Default the SnmpTrapService will take the managers from this trapTable fileName specified. 
com.adventnet.utils.agent.SubAgentPoller.setTrapVersion(int)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.utils.agent.DynamicRegistrationWithInstance.setTrapVersion(int)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.utils.agent.DynamicRegistrationWithCommunity.setTrapVersion(int)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.utils.agent.DynamicRegistration.setTrapVersion(int)
          The method is no Longer used. The Traps will be sent to the Entries in the ForwardingTable. 
com.adventnet.snmp.snmp2.SnmpAPI.setupStdOutErr()
          please use the logging framework instead. 
com.adventnet.utils.agent.utils.setupStdOutErr()
          this will be no longer needed due to logging. Makes logs directory for standardoutput and standarderror files. 
com.adventnet.utils.agent.utils.setupStdOutErr(OutputStream)
          this will be no longer needed due to logging. redirects output to specified output stream 
com.adventnet.snmp.snmp2.SnmpAPI.setupStdOutErr(String)
          please use the logging framework instead. 
com.adventnet.utils.agent.utils.setupStdOutErr(String)
          this will be no longer needed due to logging. Makes specified directory for standard output and standard error files. 
com.adventnet.utils.agent.utils.setupStdOutErr(String, String, String)
          this will be no longer needed due to logging. Makes the specified directory and writes the outputs and errors to the specified fileNames. 
com.adventnet.snmp.snmp2.agent.SnmpTrapService.setV3TrapTableName(String)
          Make use of the V3ForwardingTable methods. Setter for the v3TrapTableName . By Default the SnmpTrapService will take the managers from this v3TrapTable fileName specified. 
com.adventnet.snmp.snmp2.usm.USMUserEntry.timeSync(SnmpSession)
          This method does not throw any exception and hence does not inform the user, in case of any error. As of AdventNet SNMP API 4 SP2 ( Release 4.0.2 ), replaced by USMUserEntry.timeSynchronize(SnmpSession,ProtocolOptions) 
com.adventnet.tl1.message.TL1Time.toString(byte)
          Since AdventNetTL1 API 2.0. Use toString() 
 

Deprecated Constructors
com.adventnet.snmp.snmp2.agent.AclTableRequestHandler(SnmpAgent, boolean)
          As persistence details are handled in the AclTable. Make use of the AclTable arg constructor. This constructor gets the agent reference to which this community table should associate with. 
com.adventnet.snmp.snmp2.agent.AclTableRequestHandler(SnmpAgent, String, String)
          Make use of the AclTable arg constructor. This constructor gets the agent reference to which this community table should associate with. The communityTableDirName and the communityTableFileName specifies the path of community table by which the agent gets initialised during start-up 
com.adventnet.snmp.snmp2.agent.AclTableRequestHandler(SnmpAgent, String, String, boolean)
          Make use of the AclTable arg constructor. This constructor gets the agent reference to which this community table should associate with. 
com.adventnet.snmp.snmp2.agent.SnmpTrapService(boolean)
          - persistence options can be set from the ForwardingTable classes. Secondary constructor which uses the separate SnmpSession and turns ON/OFF Persistence storage of TrapForwardingTable. API users can have a separate session by calling setUsesSeperateSession(true) 
com.adventnet.snmp.snmp2.agent.SnmpTrapService(String, String, boolean)
          - persistence options can be set from the ForwardingTable classes. Secondary constructor which uses the separate SnmpSession and specifies the persistence of TFTable parameters and type of persistence(FToV or XML Format). API users can have a separate session by calling setUsesSeperateSession(true) 
com.adventnet.tl1.message.TL1Param(String)
          Since AdventNetTL1 API 2.0. Use Constructor with arguments type,parameter name and parameter value. 
com.adventnet.snmp.snmp2.agent.VaclTableRequestHandler(SnmpAgent, boolean)
          persistence has been moved to VaclTable. Primary construtor with Agent Reference and persistence flag. 
com.adventnet.snmp.snmp2.agent.VaclTableRequestHandler(SnmpAgent, String, String, boolean)
          persistence has been moved to VaclTable. Primary construtor with Agent Reference and directory & fileName of persistence to the FileSystem.