|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdevices.SNMPDevice
A device that contains the information and functionality needed to talk SNMP.
| Field Summary | |
static java.lang.String |
ifDescr
|
static java.lang.String |
ifIndex
|
static java.lang.String |
ifNumber
|
static java.lang.String |
ifOperStatus
|
static java.lang.String |
ifSpeed
|
static java.lang.String |
sysContact
|
static java.lang.String |
sysDescr
|
static java.lang.String |
sysLocation
|
static java.lang.String |
sysName
|
static java.lang.String |
sysServices
|
static java.lang.String |
sysUpTime
|
| Constructor Summary | |
SNMPDevice(Device device)
Create an SNMPDevice given a Device. |
|
SNMPDevice(Device device,
int port)
Create an SNMPDevice given a Device. |
|
SNMPDevice(java.lang.String deviceIpAddress,
java.lang.String deviceCommunityString)
Create an SNMPDevice given an IP address and a community string. |
|
SNMPDevice(java.lang.String deviceIpAddress,
java.lang.String deviceCommunityString,
int port)
Create an SNMPDevice given an IP address and a community string. |
|
| Method Summary | |
java.lang.Object |
getAttributeValue(java.lang.String OID)
Gets an attribute value given an OID. |
java.lang.Object[] |
getAttributeValues(java.lang.String[] OID)
Retrieve the attributes for an array of Interface OIDs |
Device |
getDevice()
|
DeviceInterface |
getInterface(int index)
Gets an active interface on the SNMPDevice. |
DeviceInterface[] |
getInterfaces(int ifNumber)
Using the GetNext requests, retrieve all interfaces from a device. |
int |
getNumberOfInterfaces()
Gets the number of active interfaces on the SNMPDevice. |
long |
getSysUpTime()
|
boolean |
isActiveDevice()
Determines whether the SNMPDevice is active and talking SNMP. |
void |
stop()
Stop an SNMP connection and free its resources. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String sysDescr
public static final java.lang.String sysUpTime
public static final java.lang.String sysContact
public static final java.lang.String sysName
public static final java.lang.String sysLocation
public static final java.lang.String sysServices
public static final java.lang.String ifNumber
public static final java.lang.String ifIndex
public static final java.lang.String ifDescr
public static final java.lang.String ifSpeed
public static final java.lang.String ifOperStatus
| Constructor Detail |
public SNMPDevice(Device device)
throws java.io.IOException
device - the Device.
java.io.IOException - if the device does not have a valid IP address.
public SNMPDevice(Device device,
int port)
throws java.io.IOException
device - the Device.port - the port to talk SNMP on.
java.io.IOException - if the device does not have a valid IP address.
public SNMPDevice(java.lang.String deviceIpAddress,
java.lang.String deviceCommunityString)
throws java.io.IOException
deviceIpAddress - the device's IP address.deviceCommunityString - the device's community string.
java.io.IOException - if the IP address is not valid.
public SNMPDevice(java.lang.String deviceIpAddress,
java.lang.String deviceCommunityString,
int port)
throws java.io.IOException
deviceIpAddress - the device's IP address.deviceCommunityString - the device's community string.port - the port to talk SNMP on.
java.io.IOException - if the IP address is not valid.| Method Detail |
public void stop()
public boolean isActiveDevice()
public Device getDevice()
public long getSysUpTime()
public int getNumberOfInterfaces()
public DeviceInterface getInterface(int index)
index - the index of the interface.
null if it does not exist.public DeviceInterface[] getInterfaces(int ifNumber)
null values if the interface does not exist.public java.lang.Object getAttributeValue(java.lang.String OID)
OID - the OID to query.
public java.lang.Object[] getAttributeValues(java.lang.String[] OID)
OID - String array holding the OIDs to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||