|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is the interface for the SnmpTargetEJB. The client of this EJB would use this interface to invoke methods on the EJB. This a session bean, useful for deploying in a clustered configuration. Most methods mirror the methods in com.adventnet.snmp.beans.SnmpTarget.
| Field Summary | |
static int |
MD5_AUTH
Constant for SNMPV3 usmUserAuthProtocol |
static int |
NO_AUTH
Constant for SNMPV3 usmNoAuthProtocol |
static int |
SHA_AUTH
Constant for SNMPV3 usmUserAuthProtocol |
static byte |
SNMPGET
Constant for SNMP get request. |
static byte |
SNMPGETBULK
Constant for SNMP V2 Get Bulk request. |
static byte |
SNMPGETNEXT
Constant for SNMP get next request. |
static byte |
SNMPINFORM
Constant for SNMP V2 INFORM request. |
static byte |
SNMPREPORT
Constant for SNMP V2 Report request. |
static byte |
SNMPRESPONSE
Constant for SNMP response request |
static byte |
SNMPSET
Constant for SNMP set request request. |
static byte |
SNMPTRAP
Constant for SNMP trap request. |
static byte |
SNMPV2TRAP
Constant for SNMP V2 Trap request. |
static int |
VERSION1
Constant for SNMP Version 1. |
static int |
VERSION2C
Constant for SNMP Version 2C. |
static int |
VERSION3
Constant for SNMP Version 3. |
| Method Summary | |
int |
addObjectID(java.lang.String s)
Add an OID specified by string to the OID list and return the index of the entry |
void |
addResultListener(ResultListener l)
Add a listener for events from this target. |
int |
addSnmpOID(SnmpOID oid)
Add an OID to the list of OIDs and return theSnmpTarget.the index of the added entry |
void |
create_v3_tables()
|
boolean |
getAttemptPartial()
Returns the boolean state of whether this target will try to get partial data from an agent if a multiple variable request. |
java.lang.String |
getAuthPassword()
Get the SNMP Auth Password |
int |
getAuthProtocol()
Get the SNMP Auth Protocol |
java.lang.String |
getCommunity()
Get the SNMP target Community |
java.lang.String |
getContextID()
Get the SNMP V3 contextID |
java.lang.String |
getContextName()
Get the SNMP V3 Context name |
int |
getErrorCode()
get the error code from the last request. |
java.lang.String |
getErrorString()
Get the error string from the last request. |
int |
getExceptionCode()
Gets the exception code for the last request. |
int |
getMaxNumRows()
Gets the maximum number of rows that can be processed. |
int |
getMaxRepetitions()
Get the SNMP target max repetitions value for a getbulk request |
java.lang.String |
getMibModules()
Get the MIBs loaded in this applet/application - a white-space separated list of mib files. |
MibOperations |
getMibOperations()
Get the MibOperations object reference. |
int |
getNonRepeaters()
Get the SNMP target non-repeaters value for a getbulk request |
java.lang.String |
getObjectID()
Return the first object ID as a string |
java.lang.String |
getObjectID(int index)
Return the object ID at index as a string |
java.lang.String[] |
getObjectIDList()
Return the list of object IDs as a string array |
java.lang.String |
getPrincipal()
Get the SNMP Principal |
java.lang.String |
getPrivPassword()
Get the SNMP Privacy Password \ |
int |
getRetries()
Get the SNMP target retries value. |
java.lang.String |
getSecurityLevel()
get the SNMP V3 SecurityLevel |
int |
getSecurityModel()
get the SNMP V3 securityModel |
boolean |
getSendTimeoutEvents()
Returns the boolean state of whether this target will send timeout events to a registered listener. |
SnmpOID |
getSnmpOID()
Return the first SnmpOID from the list of object IDs. |
SnmpOID[] |
getSnmpOIDList()
Return the list of object IDs as an array of SnmpOID instances |
int |
getSnmpVersion()
Get the SNMP target SNMP Version. |
java.lang.String |
getTargetHost()
Get the SNMP target hostname |
int |
getTargetPort()
Get the SNMP target port number |
int |
getTimeout()
Get the SNMP target timeout value |
java.lang.String |
getWriteCommunity()
Get the SNMP target write Community to be used for set requests |
void |
initSecurityProvider()
Initialise the SNMPv3 Security provider |
boolean |
isInSubTree(SnmpOID rootoid,
SnmpOID objid)
Check if objid has rootoid as an ancestor. |
boolean |
isSerialize()
return the status of Serialization of v3 tables ( USMUserTable
and SnmpEngineTable ) |
boolean |
isSupportedSecurityModel(int secModel)
Specifies if a particular security model is supported or not. |
void |
loadMibs(java.lang.String mibs)
Load the mibs specified by white-space separated list of mibs. |
void |
manage_v3_tables()
Method to create new users and add them to userTable in
USMUserTable. |
void |
releaseResources()
Though the resources will be cleaned up by the garbage collector, if the application is no more using the SnmpTarget bean instances, this method can be used to immediately release the resources. |
void |
removeResultListener(ResultListener l)
Remove a listener for events from this target. |
void |
setAttemptPartial(boolean b)
Sets the boolean state of whether this target will try to get partial data from an agent if a multiple variable request. |
void |
setAuthPassword(java.lang.String password)
Set the SNMP Auth Password |
void |
setAuthProtocol(int protocol)
Set the SNMP Auth Protocol |
void |
setCommunity(java.lang.String s)
Set the SNMP target Community |
void |
setContextID(java.lang.String ctxtID)
Set the SNMP V3 contextID |
void |
setContextName(java.lang.String cName)
Set the SNMP V3 Context name |
void |
setDebug(boolean debug)
determine is debug output will be printed |
void |
setMaxNumRows(int maxRows)
Sets the maximum number of rows that can be processed. |
void |
setMaxRepetitions(int i)
Set the SNMP target max repetitions value for a getbulk request |
void |
setMibModules(java.lang.String mibs)
Set the MIBs loaded in this applet/application - a white-space separated list of mib files. |
void |
setNonRepeaters(int i)
Set the SNMP target non-repeaters value for a getbulk request |
void |
setObjectID(int index,
java.lang.String s)
Set the object ID value at index based on specified string |
void |
setObjectID(java.lang.String oid)
Set the first Object ID for this SNMP target session. |
void |
setObjectIDList(java.lang.String[] s)
Set the list of object IDs based on the specified string array |
void |
setPrincipal(java.lang.String s)
Set the SNMP Principal |
void |
setPrivPassword(java.lang.String password)
set the SNMP Privacy Password |
void |
setRetries(int i)
Set the SNMP target retries value. |
void |
setSecurityLevel(byte sLevel)
set the SNMP V3 SecurityLevel |
void |
setSecurityModel(int secModel)
Set the SNMPv3 Security Model |
void |
setSendTimeoutEvents(boolean b)
Sets the boolean state of whether this target will send timeout events to a registered listener. |
void |
setSnmpOID(SnmpOID oid)
Set the first SnmpOID in the list of object IDs. |
void |
setSnmpOIDList(SnmpOID[] list)
Set the list of object IDs as the given array of SnmpOID instances |
void |
setSnmpVersion(int i)
Set the SNMP target SNMP Version. |
void |
setTargetHost(java.lang.String hostname)
Set the hostname for this SNMP target session. |
void |
setTargetPort(int i)
Set the SNMP target port number |
void |
setTimeout(int i)
Set the SNMP target timeout value |
void |
setTimeoutInMilliSec(int time)
Sets the timeout value which should be given in milliseconds. |
void |
setWriteCommunity(java.lang.String s)
Set the SNMP target write Community to be used for set requests |
java.lang.String |
snmpGet()
Performs an SNMP get and returns the value as a string. |
SnmpVar |
snmpGet(SnmpOID oid)
Gets the SNMP variable identified by specified Object Identifier. |
java.lang.String[][] |
snmpGetAllList()
Get all instances of variables in the OID list. |
SnmpVarBind[][] |
snmpGetAllVariableBindings()
Get all instances of variables in the OID list. |
SnmpVar[][] |
snmpGetAllVariables()
Get all instances of variables in the OID list. |
java.lang.String[][] |
snmpGetBulkList()
Get bulk on list of variables in the OID list. |
SnmpVarBind[][] |
snmpGetBulkVariableBindings()
Get bulk on list of variables in the OID list. |
SnmpVar[][] |
snmpGetBulkVariables()
Get bulk on list of variables in the OID list. |
java.lang.String[] |
snmpGetList()
Queries the agent and returns the list of SNMP variable bindings from the agent using the Object Identifier list previously set in this SnmpTarget instance. |
SnmpVar[] |
snmpGetList(SnmpOID[] oids)
Gets the list of SNMP variables identified by the Object Identifier list stored in this SnmpTarget instance. |
java.lang.String |
snmpGetNext()
Performs an SNMP getNext and returns the value as a string. |
SnmpVar |
snmpGetNext(SnmpOID oid)
Gets the SNMP variable identified by specified Object Identifier. |
java.lang.String[] |
snmpGetNextList()
Queries the agent and returns the list of SNMP variable bindings from the agent using the Object Identifier list previously set in this SnmpTarget instance. |
SnmpVar[] |
snmpGetNextList(SnmpOID[] oids)
Gets the list of SNMP variables identified by the Object Identifier list stored in this SnmpTarget instance. |
SnmpVar |
snmpGetNextVariable()
Queries the target and returns the SNMP variable identified by the first Object Identifier stored in this SnmpTarget instance. |
SnmpVarBind |
snmpGetNextVariableBinding()
Queries the target and returns the SNMP variable identified by the first Object Identifier stored in this SnmpTarget instance. |
SnmpVarBind[] |
snmpGetNextVariableBindings()
Queries the agent and returns the list of SNMP variable bindings from the agent using the Object Identifier list previously set in this SnmpTarget instance. |
SnmpVar[] |
snmpGetNextVariables()
Queries the agent and returns the list of SNMP variable bindings from the agent using the Object Identifier list previously set in this SnmpTarget instance. |
SnmpVar |
snmpGetVariable()
Queries the target and returns the SNMP variable identified by the first Object Identifier stored in this SnmpTarget instance. |
SnmpVarBind |
snmpGetVariableBinding()
Queries the target and returns the SNMP variable identified by the first Object Identifier stored in this SnmpTarget instance. |
SnmpVarBind[] |
snmpGetVariableBindings()
Queries the agent and returns the list of SNMP variable bindings from the agent using the Object Identifier list previously set in this SnmpTarget instance. |
SnmpVar[] |
snmpGetVariables()
Queries the agent and returns the list of SNMP variable bindings from the agent using the Object Identifier list previously set in this SnmpTarget instance. |
SnmpVarBind[] |
snmpSendInformRequest(long uptime,
SnmpOID trapOid,
SnmpVar[] values)
Send an SNMPV2 inform pdu with parameters specified and variable
bindings using object ids from the Object Identifier list previously
set in this SnmpTarget instance, and the values specified. |
java.lang.String[] |
snmpSendInformRequest(long uptime,
java.lang.String trapOid,
java.lang.String[] values)
Send an SNMPV2 inform pdu with parameters specified and variable
bindings using object ids from the Object Identifier list previously
set in this SnmpTarget instance, and the values specified. |
void |
snmpSendNotification(long uptime,
SnmpOID trapOid,
SnmpVar[] values)
Send an SNMPV2 notification pdu with parameters specified and variable bindings using object ids from the Object Identifier list previously set in this SnmpTarget instance, and the values specified. |
void |
snmpSendTrap(java.lang.String enterprise,
java.lang.String agenthost,
int genericType,
int specificType,
long uptime,
java.lang.String[] values)
Send an SNMP trap, with parameters specified and variable bindings using object ids from the Object Identifier list previously set in * this SnmpTarget instance, and the values specified. |
java.lang.String |
snmpSet(java.lang.String value)
Does an SNMP set to the target using value specified of the first variable on the variable list. |
java.lang.String |
snmpSet(java.lang.String value,
byte type)
Does an SNMP set to the target of the first variable on the variable list using value specified. |
java.lang.String[] |
snmpSetList(java.lang.String[] values)
Set the list of SNMP variable bindings on the agent using the Object Identifier list previously set in this SnmpTarget instance. |
SnmpVar |
snmpSetVariable(SnmpVar var)
Does an SNMP set with specified value to the target and returns the SNMP variable identified by the first Object Identifier stored in this SnmpTarget instance. |
SnmpVar[] |
snmpSetVariables(SnmpVar[] values)
Do an SNMP set, with values specified, the list of SNMP variable bindings on the agent, using the Object Identifier list previously set in this SnmpTarget instance. |
| Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
| Field Detail |
public static final byte SNMPGET
public static final byte SNMPGETNEXT
public static final byte SNMPRESPONSE
public static final byte SNMPSET
public static final byte SNMPTRAP
public static final byte SNMPGETBULK
Constant for SNMP V2 Get Bulk request.
public static final byte SNMPINFORM
Constant for SNMP V2 INFORM request.
public static final byte SNMPV2TRAP
Constant for SNMP V2 Trap request.
public static final byte SNMPREPORT
Constant for SNMP V2 Report request.
public static final int VERSION1
Constant for SNMP Version 1.
public static final int VERSION2C
Constant for SNMP Version 2C.
public static final int VERSION3
Constant for SNMP Version 3.
public static final int NO_AUTH
Constant for SNMPV3 usmNoAuthProtocol
public static final int MD5_AUTH
Constant for SNMPV3 usmUserAuthProtocol
public static final int SHA_AUTH
Constant for SNMPV3 usmUserAuthProtocol
| Method Detail |
public void setTargetHost(java.lang.String hostname)
throws java.rmi.RemoteException
hostname - String SNMP agent host name
java.rmi.RemoteException - if there is
a communications or systems failure
public void setObjectID(java.lang.String oid)
throws java.rmi.RemoteException
java.rmi.RemoteException - if there is
a communications or systems failure
public java.lang.String snmpGet()
throws java.rmi.RemoteException
java.rmi.RemoteException - if there is
a communications or systems failure
public void loadMibs(java.lang.String mibs)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String snmpGetNext()
throws java.rmi.RemoteException
java.rmi.RemoteException - if there is
a communications or systems failure
public SnmpVar snmpGetVariable()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVarBind snmpGetVariableBinding()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVar snmpGet(SnmpOID oid)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] snmpGetList()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVar[] snmpGetVariables()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVarBind[] snmpGetVariableBindings()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVar[] snmpGetList(SnmpOID[] oids)
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVar snmpGetNextVariable()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVarBind snmpGetNextVariableBinding()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVar snmpGetNext(SnmpOID oid)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] snmpGetNextList()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVar[] snmpGetNextVariables()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVarBind[] snmpGetNextVariableBindings()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVar[] snmpGetNextList(SnmpOID[] oids)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String snmpSet(java.lang.String value)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String snmpSet(java.lang.String value,
byte type)
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVar snmpSetVariable(SnmpVar var)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] snmpSetList(java.lang.String[] values)
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVar[] snmpSetVariables(SnmpVar[] values)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void snmpSendTrap(java.lang.String enterprise,
java.lang.String agenthost,
int genericType,
int specificType,
long uptime,
java.lang.String[] values)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void snmpSendNotification(long uptime,
SnmpOID trapOid,
SnmpVar[] values)
throws java.rmi.RemoteException
uptime - The sysUptime value. This is the first oid sent with the
notification. The corresponding oid need not be present
in the oidList.values - Contains an array of SnmpVar values corresponding to the
oids in the oidList.trapOid - This should contain the oid corresponding to the snmpTrapOID.
DataException - is thrown for invalid values.
java.rmi.RemoteException
public java.lang.String[] snmpSendInformRequest(long uptime,
java.lang.String trapOid,
java.lang.String[] values)
throws java.rmi.RemoteException
Send an SNMPV2 inform pdu with parameters specified and variable
bindings using object ids from the Object Identifier list previously
set in this SnmpTarget instance, and the values specified.
uptime - The sysUptime value. This is the first oid sent with the
notification. The corresponding oid need not be present
in the oidList.values - Contains an array of string values corresponding to the
oids in the oidList.trapOid - This should contain the oid string corresponding to the snmpTrapOID.
DataException - is thrown for invalid values.
java.rmi.RemoteException
public SnmpVarBind[] snmpSendInformRequest(long uptime,
SnmpOID trapOid,
SnmpVar[] values)
throws java.rmi.RemoteException
Send an SNMPV2 inform pdu with parameters specified and variable
bindings using object ids from the Object Identifier list previously
set in this SnmpTarget instance, and the values specified.
uptime - The sysUptime value. This is the first oid sent with the
notification. The corresponding oid need not be present
in the oidList.values - Contains an array of SnmpVar values corresponding to the
oids in the oidList.trapOid - This should contain the oid corresponding to the snmpTrapOID.
DataException - is thrown for invalid values.
java.rmi.RemoteException
public int addObjectID(java.lang.String s)
throws java.rmi.RemoteException
java.rmi.RemoteException
public int addSnmpOID(SnmpOID oid)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getObjectID(int index)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getObjectID()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setObjectID(int index,
java.lang.String s)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] getObjectIDList()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setObjectIDList(java.lang.String[] s)
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpOID getSnmpOID()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setDebug(boolean debug)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getMibModules()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setMibModules(java.lang.String mibs)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setSnmpOID(SnmpOID oid)
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpOID[] getSnmpOIDList()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setSnmpOIDList(SnmpOID[] list)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getTargetHost()
throws java.rmi.RemoteException
java.rmi.RemoteException
public int getTargetPort()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setTargetPort(int i)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getCommunity()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setCommunity(java.lang.String s)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getWriteCommunity()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setWriteCommunity(java.lang.String s)
throws java.rmi.RemoteException
java.rmi.RemoteException
public int getTimeout()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setTimeout(int i)
throws java.rmi.RemoteException
java.rmi.RemoteException
public int getRetries()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setRetries(int i)
throws java.rmi.RemoteException
java.rmi.RemoteException
public int getMaxRepetitions()
throws java.rmi.RemoteException
Get the SNMP target max repetitions value for a getbulk request
java.rmi.RemoteException
public void setMaxRepetitions(int i)
throws java.rmi.RemoteException
Set the SNMP target max repetitions value for a getbulk request
java.rmi.RemoteException
public int getNonRepeaters()
throws java.rmi.RemoteException
Get the SNMP target non-repeaters value for a getbulk request
java.rmi.RemoteException
public void setNonRepeaters(int i)
throws java.rmi.RemoteException
Set the SNMP target non-repeaters value for a getbulk request
java.rmi.RemoteException
public int getSnmpVersion()
throws java.rmi.RemoteException
Get the SNMP target SNMP Version. 0 is Version 1 (default) and
1 is Version V2C.
java.rmi.RemoteException
public void setSnmpVersion(int i)
throws java.rmi.RemoteException
Set the SNMP target SNMP Version. 0 is Version 1 (default) and
1 is Version V2C.
java.rmi.RemoteException
public java.lang.String getErrorString()
throws java.rmi.RemoteException
java.rmi.RemoteException
public int getErrorCode()
throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean getAttemptPartial()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setAttemptPartial(boolean b)
throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean getSendTimeoutEvents()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setSendTimeoutEvents(boolean b)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void addResultListener(ResultListener l)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void removeResultListener(ResultListener l)
throws java.rmi.RemoteException
java.rmi.RemoteException
public MibOperations getMibOperations()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[][] snmpGetAllList()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVar[][] snmpGetAllVariables()
throws java.rmi.RemoteException
java.rmi.RemoteException
public SnmpVarBind[][] snmpGetAllVariableBindings()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[][] snmpGetBulkList()
throws java.rmi.RemoteException
Get bulk on list of variables in the OID list. Available only
for SNMPv2c
and SNMPv3 cases.
Returns String-valued variables as a two dimensional array of String's.
Returns null if no OIDs
specified earlier or in case of errors. See error data for
details, i.e. use getErrorString() to see the reason for failure.
Please see RFC 1905 if you're not familiar with getbulk. Beyond the first set of non-repeater OIDS, i.e. OIDs that want only a single next value, the data can be viewed a table, where we're getting rows upto "max repetitions" rows. The returned data is composed of a two-dimensional array where the first "nonRepeaters" columns have only the first data element filled in. The remaining have the rows filled in as expected. Typically, non-repeaters is 0, and we'd be returning a completely filled-in 2-D array of values.
The OID List after this request is set to the last set of OIDs in the returned bulk data, except for the initial non-repeaters for which it is set to the first and only returned OID.
java.rmi.RemoteException
public SnmpVarBind[][] snmpGetBulkVariableBindings()
throws java.rmi.RemoteException
Get bulk on list of variables in the OID list. Available only
for SNMPv2c
and SNMPv3 cases.
Returns variable bindings as a two dimensional array of SnmpVarBind's.
Returns null if no OIDs
specified earlier or in case of errors. See error data for
details, i.e. use getErrorString() to see the reason for failure.
Please see RFC 1905 if you're not familiar with getbulk. Beyond the first set of non-repeater OIDS, i.e. OIDs that want only a single next value, the data can be viewed a table, where we're getting rows upto "max repetitions" rows. The returned data is composed of a two-dimensional array where the first "nonRepeaters" columns have only the first data element filled in. The remaining have the rows filled in as expected. Typically, non-repeaters is 0, and we'd be returning a completely filled-in 2-D array of values.
The OID List after this request is set to the last set of OIDs in the returned bulk data, except for the initial non-repeaters for which it is set to the first and only returned OID.
java.rmi.RemoteException
public SnmpVar[][] snmpGetBulkVariables()
throws java.rmi.RemoteException
Get bulk on list of variables in the OID list. Available only
for SNMPv2c
and SNMPv3 cases.
Returns variables as a two dimensional array of SnmpVar's.
Returns null if no OIDs
specified earlier or in case of errors. See error data for
details, i.e. use getErrorString() to see the reason for failure.
Please see RFC 1905 if you're not familiar with getbulk. Beyond the first set of non-repeater OIDS, i.e. OIDs that want only a single next value, the data can be viewed a table, where we're getting rows upto "max repetitions" rows. The returned data is composed of a two-dimensional array where the first "nonRepeaters" columns have only the first data element filled in. The remaining have the rows filled in as expected. Typically, non-repeaters is 0, and we'd be returning a completely filled-in 2-D array of values.
The OID List after this request is set to the last set of OIDs in the returned bulk data, except for the initial non-repeaters for which it is set to the first and only returned OID.
java.rmi.RemoteException
public boolean isInSubTree(SnmpOID rootoid,
SnmpOID objid)
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getSecurityLevel()
throws java.rmi.RemoteException
get the SNMP V3 SecurityLevel
java.rmi.RemoteException
public void setSecurityLevel(byte sLevel)
throws java.rmi.RemoteException
set the SNMP V3 SecurityLevel
java.rmi.RemoteException
public boolean isSerialize()
throws java.rmi.RemoteException
return the status of Serialization of v3 tables ( USMUserTable
and SnmpEngineTable )
java.rmi.RemoteException
public void create_v3_tables()
throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getPrincipal()
throws java.rmi.RemoteException
Get the SNMP Principal
java.rmi.RemoteException
public void setPrincipal(java.lang.String s)
throws java.rmi.RemoteException
Set the SNMP Principal
java.rmi.RemoteException
public int getSecurityModel()
throws java.rmi.RemoteException
get the SNMP V3 securityModel
java.rmi.RemoteException
public void setSecurityModel(int secModel)
throws java.rmi.RemoteException
Set the SNMPv3 Security Model
java.rmi.RemoteException
public void initSecurityProvider()
throws java.rmi.RemoteException
Initialise the SNMPv3 Security provider
java.rmi.RemoteException
public int getAuthProtocol()
throws java.rmi.RemoteException
Get the SNMP Auth Protocol
java.rmi.RemoteException
public void setAuthProtocol(int protocol)
throws java.rmi.RemoteException
Set the SNMP Auth Protocol
java.rmi.RemoteException
public java.lang.String getAuthPassword()
throws java.rmi.RemoteException
Get the SNMP Auth Password
java.rmi.RemoteException
public void setAuthPassword(java.lang.String password)
throws java.rmi.RemoteException
Set the SNMP Auth Password
java.rmi.RemoteException
public java.lang.String getPrivPassword()
throws java.rmi.RemoteException
Get the SNMP Privacy Password \
java.rmi.RemoteException
public void setPrivPassword(java.lang.String password)
throws java.rmi.RemoteException
set the SNMP Privacy Password
java.rmi.RemoteException
public java.lang.String getContextName()
throws java.rmi.RemoteException
Get the SNMP V3 Context name
java.rmi.RemoteException
public void setContextName(java.lang.String cName)
throws java.rmi.RemoteException
Set the SNMP V3 Context name
java.rmi.RemoteException
public java.lang.String getContextID()
throws java.rmi.RemoteException
Get the SNMP V3 contextID
java.rmi.RemoteException
public void setContextID(java.lang.String ctxtID)
throws java.rmi.RemoteException
Set the SNMP V3 contextID
java.rmi.RemoteException
public void setMaxNumRows(int maxRows)
throws java.rmi.RemoteException
java.rmi.RemoteException
public int getMaxNumRows()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void releaseResources()
throws java.rmi.RemoteException
java.rmi.RemoteException
public int getExceptionCode()
throws java.rmi.RemoteException
Gets the exception code for the last request.
Before sending any request the exception code will be -1.
java.rmi.RemoteException
public void setTimeoutInMilliSec(int time)
throws java.rmi.RemoteException
time - The timeout value to be set in milliseconds.
java.rmi.RemoteException
public boolean isSupportedSecurityModel(int secModel)
throws java.rmi.RemoteException
Specifies if a particular security model is supported or not.
Returns true if the security model is supported. False otherwise.
secModel - The secuirty model number which needs to be checked
if it is supported.
java.rmi.RemoteException
public void manage_v3_tables()
throws java.rmi.RemoteException
Method to create new users and add them to userTable in
USMUserTable. If the v3 parameters specified are already
present in the userTable, it modifies the entry. However the
UserName cannot be modified.
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||