All Packages Class Hierarchy This Package Previous Next Index
For every kind of method, there are two types. One that accepts a
SnmpPeer object and another that does not require it,
meaning that the implementation will use a default peer object.
get request on the varbind list.
getbulk request on the varbind list.
getnext request on the varbind list.
varbind list.
varbind list.
set request on the peer for the
specified varbind list.
public abstract SnmpRequest snmpGet(SnmpPeer peer,
SnmpHandlerIf cb,
SnmpVarbindList vblst) throws SnmpStatusException
get request on the varbind list.
When the command completes, the appropriate callback method is invoked.
varbinds.
public abstract SnmpRequest snmpGet(SnmpHandlerIf cb,
SnmpVarbindList vblst) throws SnmpStatusException
varbinds.
public abstract SnmpRequest snmpGetNext(SnmpPeer peer,
SnmpHandlerIf cb,
SnmpVarbindList vblst) throws SnmpStatusException
getnext request on the varbind list.
When the command completes, the appropriate callback method is invoked.
varbinds.
public abstract SnmpRequest snmpGetNext(SnmpHandlerIf cb,
SnmpVarbindList vblst) throws SnmpStatusException
public abstract SnmpRequest snmpGetBulk(SnmpPeer peer,
SnmpHandlerIf cb,
SnmpVarbindList vblst,
int nonRepeat,
int maxRepeat) throws SnmpStatusException
getbulk request on the varbind list.
When the command completes, the appropriate callback method is invoked.
varbinds.
varbind to get one time.
varbind to get multiple time.
public abstract SnmpRequest snmpGetBulk(SnmpHandlerIf cb,
SnmpVarbindList vblst,
int nonRepeat,
int maxRepeat) throws SnmpStatusException
public abstract SnmpRequest snmpSet(SnmpPeer peer,
SnmpHandlerIf cb,
SnmpVarbindList vblst) throws SnmpStatusException
set request on the peer for the
specified varbind list. Because retries on set
operations are not performed, the user needs to specify the timeout value
within which a response is requested.
varbinds.
public abstract SnmpRequest snmpSet(SnmpHandlerIf cb,
SnmpVarbindList vblst) throws SnmpStatusException
public abstract SnmpRequest snmpGetPoll(SnmpPeer peer,
SnmpHandlerIf cb,
SnmpVarbindList vblst,
int intrvl) throws SnmpStatusException
varbind list.
It does a SNMP get request on the varbind list.
After each poll, the appropriate callback method is invoked.
varbinds.
public abstract SnmpRequest snmpGetPoll(SnmpHandlerIf cb,
SnmpVarbindList vblst,
int intrvl) throws SnmpStatusException
public abstract SnmpRequest snmpGetNextPoll(SnmpPeer peer,
SnmpHandlerIf cb,
SnmpVarbindList vblst,
int intrvl) throws SnmpStatusException
varbind list.
It saves the original varbind list that is used during each poll.
It performs an SNMP getnext request on the saved original
varbind list and provides the response to the user via the callback
mechanism.
This method is similar to snmpGetPoll except that it uses
getnext on the original varbind list instead of
get.
varbinds.
public abstract SnmpRequest snmpGetNextPoll(SnmpHandlerIf cb,
SnmpVarbindList vblst,
int intrvl) throws SnmpStatusException
public abstract SnmpRequest snmpWalkUntil(SnmpPeer peer,
SnmpHandlerIf cb,
SnmpVarbindList vblst,
SnmpOid key) throws SnmpStatusException
varbind list and continues until the OID key
specified as a parameter is no longer a subset of the first variable in the
response varbind list or an error occurred.
Typically, this feature is used to walk an arbitrary table and obtain
all rows satisfying a specific condition. The condition may be
a specific instance combination for a MIB variable or a MIB variable
OID entry object.
String var[] = {"ifDescr", "ifSpeed" } ;
vblst = new SnmpVarbindList(var) ;
snmpWalkUntil(vblst, new SnmpOid("ifIndex")) ;
This example walks through the interface table and get all the rows
in ifTable.
snmpWalkUntil(vblst, new SnmpOid(".1.3")) ;
This example walks through the entire agent MIB starting at ifDescr
and ifSpeed.
SnmpVarbindList.
SnmpVarbindList. Walk terminates if this condition is false.
public abstract SnmpRequest snmpWalkUntil(SnmpHandlerIf cb,
SnmpVarbindList vblst,
SnmpOid key) throws SnmpStatusException
All Packages Class Hierarchy This Package Previous Next Index