com.adventnet.snmp.corba
Interface SnmpTarget

All Superinterfaces:
org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.Object, java.io.Serializable
All Known Subinterfaces:
SnmpPoller, SnmpTable
All Known Implementing Classes:
_SnmpPollerImplBase, _SnmpPollerStub, _SnmpTableImplBase, _SnmpTableStub, _SnmpTargetImplBase, _SnmpTargetStub

public interface SnmpTarget
extends org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity


Field Summary
static byte AUTH_NO_PRIV
          v3 only Used to specify that authenticated message be sent to the peer.
static byte AUTH_PRIV
          v3 only Used to specify that authentication and privacy are used in the communication with the peer.
static int CBC_3DES
          v3 only Constant for the SNMPv3 usmUserPrivProtocol CBC_3DES.
static int CBC_DES
          v3 only Constant for the SNMPv3 usmUserPrivProtocol CBC_DES.
static int CFB_AES_128
          v3 only Constant for the SNMPv3 usmUserPrivProtocol CFB_AES_128.
static int CFB_AES_192
          v3 only Constant for the SNMPv3 usmUserPrivProtocol CFB_AES_192.
static int CFB_AES_256
          v3 only Constant for the SNMPv3 usmUserPrivProtocol CFB_AES_256.
static int MD5_AUTH
          v3 only Constant for SNMPv3 usmHMACMD5AuthProtocol.
static int NO_AUTH
          v3 only Constant for SNMPv3 usmNoAuthProtocol.
static byte NO_AUTH_NO_PRIV
          v3 only Used to specify that both authentication and privacy should not be used.
static int NO_PRIV
          v3 only Constant for SNMPv3 usmNoPrivProtocol.
static int SHA_AUTH
          v3 only Constant for SNMPv3 usmHMACSHAAuthProtocol.
static byte SNMPGET
          Constant for SNMP Get Request.
static byte SNMPGETBULK
          v2c and v3 only Constant for SNMP GetBulk Request.
static byte SNMPGETNEXT
          Constant for SNMP GetNext Request.
static byte SNMPINFORM
          v2c and v3 only Constant for SNMP Inform Request.
static byte SNMPREPORT
          v2c and v3 only Constant for SNMP Report.
static byte SNMPRESPONSE
          Constant for SNMP Response
static byte SNMPSET
          Constant for SNMP Set Request.
static byte SNMPTRAP
          Constant for SNMP Trap.
static byte SNMPV2TRAP
          v2c and v3 only Constant for SNMPv2 Trap.
static int VERSION1
          v2c and v3 only Constant for SNMP version 1.
static int VERSION2C
          v2c and v3 only Constant for SNMP version 2C.
static int VERSION3
          v3 only Constant for SNMP version 3.
 
Method Summary
 int addObjectID(java.lang.String oid)
           
 void addResultListener(ResultListener l)
           
 void create_v3_tables()
          v3 only
 boolean getAttemptComplete()
           
 boolean getAttemptPartial()
           
 java.lang.String getAuthPassword()
          v3 only
 int getAuthProtocol()
          v3 only
 java.lang.String getCommunity()
           
 java.lang.String getContextID()
          v3 only
 java.lang.String getContextName()
          v3 only
 boolean getDebug()
           
 int getErrorCode()
           
 java.lang.String getErrorString()
           
 int getMaxNumRows()
           
 int getMaxRepetitions()
          v2c and v3 only
 java.lang.String getMibModules()
           
 java.lang.String getName()
           
 int getNonRepeaters()
          v2c and v3 only
 java.lang.String getObjectID(int index)
           
 java.lang.String[] getObjectIDList()
           
 java.lang.String getPrincipal()
          v3 only
 java.lang.String getPrivPassword()
          v3 only
 int getPrivProtocol()
          v3 only
 int getRetries()
           
 int getSecurityModel()
          v3 only
 boolean getSendTimeoutEvents()
           
 int getSnmpVersion()
          v2c and v3 only
 java.lang.String getTargetHost()
           
 int getTargetPort()
           
 int getTimeout()
           
 int getVarBindCount()
           
 java.lang.String getWriteCommunity()
           
 void initSecurityProvider()
          v3 only
 boolean isSupportedSecurityModel(int securityModel)
          v3 only
 void loadMibs(java.lang.String mibs)
           
 void removeResultListener(ResultListener l)
           
 void setAttemptComplete(boolean completeState)
           
 void setAttemptPartial(boolean partialState)
           
 void setAuthPassword(java.lang.String password)
          v3 only
 void setAuthProtocol(int protocol)
          v3 only
 void setCommunity(java.lang.String community)
           
 void setContextID(java.lang.String ctxtID)
          v3 only
 void setContextName(java.lang.String cName)
          v3 only
 void setDebug(boolean debug)
           
 void setMaxNumRows(int maxRows)
           
 void setMaxRepetitions(int maxVal)
          v2c and v3 only
 void setMibModules(java.lang.String mibs)
           
 void setNonRepeaters(int maxVal)
          v2c and v3 only
 void setObjectID(java.lang.String oid)
           
 void setObjectIDAtIndex(int index, java.lang.String oid)
           
 void setObjectIDList(java.lang.String[] oidList)
           
 void setPrincipal(java.lang.String s)
          v3 only
 void setPrivPassword(java.lang.String password)
          v3 only
 void setPrivProtocol(int privProtocol)
          v3 only
 void setRetries(int retryVal)
           
 void setSecurityModel(int securityModel)
          v3 only
 void setSendTimeoutEvents(boolean flag)
           
 void setSnmpVersion(int version)
          v2c and v3 only
 void setTargetHost(java.lang.String host)
           
 void setTargetPort(int port)
           
 void setTimeout(int timeoutval)
           
 void setVarBindCount(int count)
           
 void setWriteCommunity(java.lang.String community)
           
 java.lang.String snmpGet()
           
 java.lang.String[][] snmpGetAllList()
           
 java.lang.String[][] snmpGetBulkList()
          v2c and v3 only
 java.lang.String[] snmpGetList()
           
 java.lang.String snmpGetNext()
           
 java.lang.String[] snmpGetNextList()
           
 void snmpSendTrap(java.lang.String enterprise, java.lang.String agenthost, int genericType, int specificType, int uptime, java.lang.String[] values)
           
 java.lang.String snmpSet(java.lang.String val)
           
 java.lang.String[] snmpSetList(java.lang.String[] val)
           
 java.lang.String snmpSetWithType(java.lang.String val, byte type)
           
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Field Detail

SNMPGET

public static final byte SNMPGET
Constant for SNMP Get Request.

See Also:
Constant Field Values

SNMPGETNEXT

public static final byte SNMPGETNEXT
Constant for SNMP GetNext Request.

See Also:
Constant Field Values

SNMPRESPONSE

public static final byte SNMPRESPONSE
Constant for SNMP Response

See Also:
Constant Field Values

SNMPSET

public static final byte SNMPSET
Constant for SNMP Set Request.

See Also:
Constant Field Values

SNMPTRAP

public static final byte SNMPTRAP
Constant for SNMP Trap.

See Also:
Constant Field Values

SNMPGETBULK

public static final byte SNMPGETBULK
v2c and v3 only Constant for SNMP GetBulk Request.

See Also:
Constant Field Values

SNMPINFORM

public static final byte SNMPINFORM
v2c and v3 only Constant for SNMP Inform Request.

See Also:
Constant Field Values

SNMPV2TRAP

public static final byte SNMPV2TRAP
v2c and v3 only Constant for SNMPv2 Trap.

See Also:
Constant Field Values

SNMPREPORT

public static final byte SNMPREPORT
v2c and v3 only Constant for SNMP Report.

See Also:
Constant Field Values

VERSION1

public static final int VERSION1
v2c and v3 only Constant for SNMP version 1.

See Also:
Constant Field Values

VERSION2C

public static final int VERSION2C
v2c and v3 only Constant for SNMP version 2C.

See Also:
Constant Field Values

VERSION3

public static final int VERSION3
v3 only Constant for SNMP version 3.

See Also:
Constant Field Values

NO_PRIV

public static final int NO_PRIV
v3 only Constant for SNMPv3 usmNoPrivProtocol.

See Also:
Constant Field Values

NO_AUTH

public static final int NO_AUTH
v3 only Constant for SNMPv3 usmNoAuthProtocol.

See Also:
Constant Field Values

MD5_AUTH

public static final int MD5_AUTH
v3 only Constant for SNMPv3 usmHMACMD5AuthProtocol.

See Also:
Constant Field Values

SHA_AUTH

public static final int SHA_AUTH
v3 only Constant for SNMPv3 usmHMACSHAAuthProtocol.

See Also:
Constant Field Values

CBC_DES

public static final int CBC_DES
v3 only Constant for the SNMPv3 usmUserPrivProtocol CBC_DES.

See Also:
Constant Field Values

CFB_AES_128

public static final int CFB_AES_128
v3 only Constant for the SNMPv3 usmUserPrivProtocol CFB_AES_128.

See Also:
Constant Field Values

CFB_AES_192

public static final int CFB_AES_192
v3 only Constant for the SNMPv3 usmUserPrivProtocol CFB_AES_192.

See Also:
Constant Field Values

CFB_AES_256

public static final int CFB_AES_256
v3 only Constant for the SNMPv3 usmUserPrivProtocol CFB_AES_256.

See Also:
Constant Field Values

CBC_3DES

public static final int CBC_3DES
v3 only Constant for the SNMPv3 usmUserPrivProtocol CBC_3DES.

See Also:
Constant Field Values

NO_AUTH_NO_PRIV

public static final byte NO_AUTH_NO_PRIV
v3 only Used to specify that both authentication and privacy should not be used.

See Also:
Constant Field Values

AUTH_NO_PRIV

public static final byte AUTH_NO_PRIV
v3 only Used to specify that authenticated message be sent to the peer.

See Also:
Constant Field Values

AUTH_PRIV

public static final byte AUTH_PRIV
v3 only Used to specify that authentication and privacy are used in the communication with the peer.

See Also:
Constant Field Values
Method Detail

getDebug

public boolean getDebug()

getErrorCode

public int getErrorCode()

setAttemptComplete

public void setAttemptComplete(boolean completeState)

setVarBindCount

public void setVarBindCount(int count)

getVarBindCount

public int getVarBindCount()

getAttemptComplete

public boolean getAttemptComplete()

getName

public java.lang.String getName()

loadMibs

public void loadMibs(java.lang.String mibs)
              throws SnmpException
SnmpException

snmpGet

public java.lang.String snmpGet()

snmpGetList

public java.lang.String[] snmpGetList()

snmpGetNext

public java.lang.String snmpGetNext()

snmpGetNextList

public java.lang.String[] snmpGetNextList()

snmpSet

public java.lang.String snmpSet(java.lang.String val)
                         throws SnmpException
SnmpException

snmpSetWithType

public java.lang.String snmpSetWithType(java.lang.String val,
                                        byte type)
                                 throws SnmpException
SnmpException

snmpSetList

public java.lang.String[] snmpSetList(java.lang.String[] val)
                               throws SnmpException
SnmpException

snmpSendTrap

public void snmpSendTrap(java.lang.String enterprise,
                         java.lang.String agenthost,
                         int genericType,
                         int specificType,
                         int uptime,
                         java.lang.String[] values)
                  throws SnmpException
SnmpException

addObjectID

public int addObjectID(java.lang.String oid)

getObjectID

public java.lang.String getObjectID(int index)

setObjectID

public void setObjectID(java.lang.String oid)

getObjectIDList

public java.lang.String[] getObjectIDList()

setObjectIDAtIndex

public void setObjectIDAtIndex(int index,
                               java.lang.String oid)

setObjectIDList

public void setObjectIDList(java.lang.String[] oidList)

setDebug

public void setDebug(boolean debug)

setMibModules

public void setMibModules(java.lang.String mibs)

getMibModules

public java.lang.String getMibModules()

getTargetHost

public java.lang.String getTargetHost()

setTargetHost

public void setTargetHost(java.lang.String host)

getTargetPort

public int getTargetPort()

setTargetPort

public void setTargetPort(int port)

getCommunity

public java.lang.String getCommunity()

setCommunity

public void setCommunity(java.lang.String community)

getWriteCommunity

public java.lang.String getWriteCommunity()

setWriteCommunity

public void setWriteCommunity(java.lang.String community)

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeoutval)

getRetries

public int getRetries()

setRetries

public void setRetries(int retryVal)

getMaxRepetitions

public int getMaxRepetitions()
v2c and v3 only


setMaxRepetitions

public void setMaxRepetitions(int maxVal)
v2c and v3 only


getNonRepeaters

public int getNonRepeaters()
v2c and v3 only


setNonRepeaters

public void setNonRepeaters(int maxVal)
v2c and v3 only


snmpGetBulkList

public java.lang.String[][] snmpGetBulkList()
v2c and v3 only


getSnmpVersion

public int getSnmpVersion()
v2c and v3 only


setSnmpVersion

public void setSnmpVersion(int version)
v2c and v3 only


getErrorString

public java.lang.String getErrorString()

getAttemptPartial

public boolean getAttemptPartial()

setAttemptPartial

public void setAttemptPartial(boolean partialState)

getSendTimeoutEvents

public boolean getSendTimeoutEvents()

setSendTimeoutEvents

public void setSendTimeoutEvents(boolean flag)

addResultListener

public void addResultListener(ResultListener l)

removeResultListener

public void removeResultListener(ResultListener l)

snmpGetAllList

public java.lang.String[][] snmpGetAllList()

getMaxNumRows

public int getMaxNumRows()

setMaxNumRows

public void setMaxNumRows(int maxRows)

create_v3_tables

public void create_v3_tables()
v3 only


getContextName

public java.lang.String getContextName()
v3 only


setContextName

public void setContextName(java.lang.String cName)
v3 only


getContextID

public java.lang.String getContextID()
v3 only


setContextID

public void setContextID(java.lang.String ctxtID)
v3 only


getPrincipal

public java.lang.String getPrincipal()
v3 only


setPrincipal

public void setPrincipal(java.lang.String s)
v3 only


getAuthProtocol

public int getAuthProtocol()
v3 only


setAuthProtocol

public void setAuthProtocol(int protocol)
v3 only


getAuthPassword

public java.lang.String getAuthPassword()
v3 only


setAuthPassword

public void setAuthPassword(java.lang.String password)
v3 only


getPrivProtocol

public int getPrivProtocol()
v3 only


setPrivProtocol

public void setPrivProtocol(int privProtocol)
v3 only


getPrivPassword

public java.lang.String getPrivPassword()
v3 only


setPrivPassword

public void setPrivPassword(java.lang.String password)
v3 only


initSecurityProvider

public void initSecurityProvider()
                          throws SnmpException
v3 only

SnmpException

getSecurityModel

public int getSecurityModel()
v3 only


setSecurityModel

public void setSecurityModel(int securityModel)
v3 only


isSupportedSecurityModel

public boolean isSupportedSecurityModel(int securityModel)
v3 only



Copyright (c)ZOHO Corp. 1996-2012