All Packages Class Hierarchy This Package Previous Next Index
Class jsnmp.SnmpSession
java.lang.Object
|
+----jsnmp.SnmpSession
- public class SnmpSession
- extends Object
The SnmpSession class implements the SNMP Version 1 protocol through the
methods get and getNext.
-
agentAddress
-
-
community
-
-
ipAddress
-
-
remotePort
-
-
retries
-
-
socket
-
-
timeout
-
-
SnmpSession()
-
-
SnmpSession(String, int, int)
-
-
authenticate(SnmpPDU, String)
-
Default authenticate which compares the PDU and Session community strings
-
get(String, String[], boolean)
-
-
getNext(String, String[])
-
-
groupOids(String[])
-
-
handlePDU(DatagramPacket)
-
-
hexDump(byte[], int)
-
-
open()
-
-
set(String, String[], SnmpVar[])
-
-
setCommunity(String)
-
-
setPort(int)
-
-
setRetries(int)
-
-
setTimeOut(int)
-
-
singleOids(String[])
-
-
transaction(SnmpPDU)
-
community
private String community
retries
private int retries
timeout
private int timeout
agentAddress
private InetAddress agentAddress
ipAddress
private String ipAddress
remotePort
private int remotePort
socket
private DatagramSocket socket
SnmpSession
public SnmpSession()
SnmpSession
public SnmpSession(String community,
int retries,
int timeout)
setPort
public void setPort(int port)
setTimeOut
public void setTimeOut(int timeOut)
setRetries
public void setRetries(int retries)
setCommunity
public void setCommunity(String community)
set
public Object[] set(String ipAddr,
String oids[],
SnmpVar values[])
get
public Object[] get(String ipAddr,
String oids[],
boolean oneAtaTime)
open
private boolean open()
singleOids
private Object[] singleOids(String oids[])
groupOids
private Object[] groupOids(String oids[])
getNext
public Vector getNext(String ipAddr,
String oids[])
transaction
private SnmpPDU transaction(SnmpPDU pdu) throws SnmpException
handlePDU
private SnmpPDU handlePDU(DatagramPacket packet) throws SnmpException
authenticate
public boolean authenticate(SnmpPDU pdu,
String community)
- Default authenticate which compares the PDU and Session community strings
hexDump
private void hexDump(byte buffer[],
int length)
All Packages Class Hierarchy This Package Previous Next Index