public interface SNMPSession
SNMPClient.getSession(java.lang.String, java.lang.Integer, java.lang.String, org.rhq.plugins.www.snmp.SNMPClient.SNMPVersion, long, int) to get an instance of a
class that implements this interface.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the session and all underlying resources.
|
List<SNMPValue> |
getBulk(String mibName)
TODO
|
List<SNMPValue> |
getColumn(String mibName)
Retrieves all values from a column of an SNMP table (i.e.
|
SNMPValue |
getNextValue(String mibName)
Retrieve the variable that logically next after the specified MIB name or OID.
|
SNMPValue |
getSingleValue(String mibName)
Retrieves the variable with the the specified MIB name or OID.
|
Map<String,SNMPValue> |
getTable(String mibName,
int index)
TODO
|
boolean |
ping()
Pings the agent associated with this session to see if it is responsive.
|
@NotNull SNMPValue getSingleValue(String mibName) throws SNMPException
mibName - the name of the variable to retrieveSNMPException - if an error occurs communicating with the SNMP agent.@NotNull SNMPValue getNextValue(String mibName) throws SNMPException
mibName - the name of the MIB variable at which to start lookingSNMPException - if an error occurs communicating with the SNMP agent.@NotNull List<SNMPValue> getColumn(String mibName) throws SNMPException
mibName - The name of the column of the SNMP table.SNMPException - if an error occurs communicating with the SNMP agent.@NotNull Map<String,SNMPValue> getTable(String mibName, int index) throws SNMPException
mibName - the MIB name of the tableindex - SNMPException - if an error occurs communicating with the SNMP agent.@NotNull List<SNMPValue> getBulk(String mibName) throws SNMPException
mibName - the MIB name of the starting OIDSNMPException - if an error occurs communicating with the SNMP agent.boolean ping()
void close()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.