snmp |
SNMP package
The snmp package defines classes used to communicate with SNMP
devices. Classes corresponding to each of the basic SNMP data types are
defined, each extending the SNMPObject abstarct class. In addition, some
utility classes provide additional functionality.
Each of the SNMPObject subclasses defines methods to create an object,
either from a "reasonable" representation (e.g., Java.lang.Integer for
an SNMPInteger object, or a suitable String such as "1.2.1.1.3.2.1.1.0"
for an SNMPObjectIdentifier), or from a byte array presumed to contain
a valid ASN.1 Basic Encoding Rules (BER) encoding of a value of the appropriate
type. The objects also define methods that permit their values to be set,
and generate their BER encodings.
SNMPSequence subclasses, in particular, contain Vectors of other SNMPObject
subclasses. They can be created "manually", with objects added as desired,
or can be created from a BER encoding of the sequence contents, recursively
creating the contained objects. BER generation also recursively generates
the BER for each contained component; thus calling mySequence.getBerEncoding()
automatically generates the encoding for the entire sequence, including
the contained components. SNMPBERCodec contains a number of static utility
methods for converting to and from BER encodings, as well as constants
used by the various classes.
Finally, SNMPv1CommunicationsInterface defines methods for sending SNMP
Get and Set requests to devices; this class handles all of the communication
tasks needed for developing simple SNMP applications.
|
Java Source File Name | Type | Comment |
SNMPBadValueException.java | Class | |
SNMPBERCodec.java | Class | SNMPBERCodec defines methods for converting from ASN.1 BER encoding to SNMPObject subclasses. |
SNMPBitString.java | Class | Class representing a general string of bits. |
SNMPCounter32.java | Class | Defines a 32-bit counter, whose value wraps if initialized with a larger
value. |
SNMPCounter64.java | Class | Defines a 64-bit counter, whose value wraps if initialized with a larger
value. |
SNMPException.java | Class | Exception thrown when attempt to set or get value of SNMP OID fails. |
SNMPGauge32.java | Class | Defines a 32-bit gauge, whose value "pegs" at the maximum if initialized with a larger
value. |
SNMPGetException.java | Class | Exception thrown when attempt to get value of SNMP OID from device fails. |
SNMPInformRequestSenderInterface.java | Class | The class SNMPInformRequestSenderInterface implements an interface for sending SNMPv2 inform request
messages to a remote SNMP manager. |
SNMPInteger.java | Class | Defines an arbitrarily-sized integer value; there is no limit on size due to the use
of Java.lang.BigInteger to store the value internally. |
SNMPIPAddress.java | Class | Class to hold IP addresses; special case of SNMP Octet String. |
SNMPMessage.java | Class | Defines the SNMPMessage class as a special case of SNMPSequence. |
SNMPNSAPAddress.java | Class | Defines class for holding physical 6-byte addresses. |
SNMPNull.java | Class | Object representing the SNMP Null data type. |
SNMPObject.java | Class | Abstract base class of all SNMP data type classes. |
SNMPObjectIdentifier.java | Class | Class representing ASN.1 object identifiers. |
SNMPOctetString.java | Class | Class representing a general string of octets. |
SNMPPDU.java | Class | The SNMPPDU class represents an SNMP PDU from RFC 1157, as indicated below. |
SNMPRequestException.java | Class | Exception thrown when request to get or set the value of an SNMP OID on a device fails. |
SNMPRequestListener.java | Interface | SNMPRequestListener is an interface that must be implemented by any class which wishes
to act as a handler for request messages sent from remote SNMP management entities. |
SNMPSequence.java | Class | One of the most important SNMP classes. |
SNMPSetException.java | Class | Exception thrown when attempt to set the value of an SNMP OID on a device fails. |
SNMPTimeTicks.java | Class | SNMP datatype used to represent time value. |
SNMPTLV.java | Class | Utility class holding components of an ASN.1 (type, length, value) triple. |
SNMPTrapReceiverInterface.java | Class | The class SNMPTrapListenerInterface implements a server which listens for trap and inform request
messages sent from remote SNMP entities. |
SNMPTrapSenderInterface.java | Class | The class SNMPTrapSenderInterface implements an interface for sending SNMPv1 and SNMPv2 trap messages to a
remote SNMP manager. |
SNMPUInteger32.java | Class | Defines a 32-bit unsigned integer value; wraps if initialized with a larger value. |
SNMPUnknownObject.java | Class | Used when an unknown SNMP object type is encountered. |
SNMPv1AgentInterface.java | Class | The class SNMPv1AgentInterface implements an interface for responding to requests sent from a remote SNMP
manager. |
SNMPv1CommunicationInterface.java | Class | The class SNMPv1CommunicationInterface defines methods for communicating with SNMP entities.
The approach is that from version 1 of SNMP, using no encryption of data. |
SNMPv1TrapListener.java | Interface | SNMPv1TrapListener is an interface that must be implemented by any class which wishes to act as a
"listener" for trap messages sent from remote SNMP entities to an instance of the SNMPTrapListenerInterface
class. |
SNMPv1TrapPDU.java | Class | The SNMPTrapPDU class represents an SNMPv1 Trap PDU from RFC 1157, as indicated below. |
SNMPv2BulkRequestPDU.java | Class | The SNMPv2BulkRequestPDU class represents an SNMPv2 Bulk Request PDU from RFC 1905, as indicated below. |
SNMPv2InformRequestListener.java | Interface | SNMPv2InformRequestListener is an interface that must be implemented by any class which wishes to act as
a "listener" for SNMPv2 inform request messages sent from remote SNMP entities to an instance of the
SNMPTrapListenerInterface class. |
SNMPv2InformRequestPDU.java | Class | The SNMPv2InformRequestPDU class represents an SNMPv2 Trap PDU from RFC 1448, as indicated below. |
SNMPv2TrapListener.java | Interface | SNMPv2TrapListener is an interface that must be implemented by any class which wishes to act as
a "listener" for SNMPv2 trap messages sent from remote SNMP entities to an instance of the
SNMPTrapListenerInterface class. |
SNMPv2TrapPDU.java | Class | The SNMPv2TrapPDU class represents an SNMPv2 Trap PDU from RFC 1448, as indicated below. |
SNMPVarBindList.java | Class | The SNMPVarBindList class is a specialization of SNMPSequence that contains a list of
SNMPVariablePair objects. |
SNMPVariablePair.java | Class | The SNMPVariablePair class implements the VarBind specification detailed below from RFC 1157.
It is a specialization of SNMPSequence, defining a 2-element sequence containing a single
(object identifier, value) pair. |